14 lines
375 B
Go
14 lines
375 B
Go
package dbgen
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/jackc/pgx/v5/pgconn"
|
|
)
|
|
|
|
// ExecRaw executes raw SQL against the underlying sqlc DB connection.
|
|
// Use this sparingly for operational tasks that are not modelled by sqlc queries.
|
|
func (q *Queries) ExecRaw(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error) {
|
|
return q.db.Exec(ctx, sql, args...)
|
|
}
|