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)
| 153 | // The provided context is used for the preparation of the statement, not for |
| 154 | // the execution of the statement. |
| 155 | func (db *DB) PreparexContext(ctx context.Context, query string) (*Stmt, error) { |
| 156 | return PreparexContext(ctx, db, query) |
| 157 | } |
| 158 | |
| 159 | // QueryxContext queries the database and returns an *sqlx.Rows. |
| 160 | // Any placeholder parameters are replaced with supplied args. |