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)
| 309 | // The provided context is used for the preparation of the statement, not for |
| 310 | // the execution of the statement. |
| 311 | func (tx *Tx) PreparexContext(ctx context.Context, query string) (*Stmt, error) { |
| 312 | return PreparexContext(ctx, tx, query) |
| 313 | } |
| 314 | |
| 315 | // PrepareNamedContext returns an sqlx.NamedStmt |
| 316 | func (tx *Tx) PrepareNamedContext(ctx context.Context, query string) (*NamedStmt, error) { |
nothing calls this directly
no test coverage detected