MCPcopy
hub / github.com/jmoiron/sqlx / PreparexContext

Method PreparexContext

sqlx_context.go:311–313  ·  view source on GitHub ↗

PreparexContext returns an sqlx.Stmt instead of a sql.Stmt. The provided context is used for the preparation of the statement, not for the execution of the statement.

(ctx context.Context, query string)

Source from the content-addressed store, hash-verified

309// The provided context is used for the preparation of the statement, not for
310// the execution of the statement.
311func (tx *Tx) PreparexContext(ctx context.Context, query string) (*Stmt, error) {
312 return PreparexContext(ctx, tx, query)
313}
314
315// PrepareNamedContext returns an sqlx.NamedStmt
316func (tx *Tx) PrepareNamedContext(ctx context.Context, query string) (*NamedStmt, error) {

Callers

nothing calls this directly

Calls 1

PreparexContextFunction · 0.85

Tested by

no test coverage detected