Yimaru-BackEnd/gen/db/raw_exec.go
2026-03-27 02:29:30 -07:00

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...)
}