You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
595 B
31 lines
595 B
// Code generated by sqlc. DO NOT EDIT. |
|
// versions: |
|
// sqlc v1.15.0 |
|
|
|
package db |
|
|
|
import ( |
|
"context" |
|
"database/sql" |
|
) |
|
|
|
type DBTX interface { |
|
ExecContext(context.Context, string, ...interface{}) (sql.Result, error) |
|
PrepareContext(context.Context, string) (*sql.Stmt, error) |
|
QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) |
|
QueryRowContext(context.Context, string, ...interface{}) *sql.Row |
|
} |
|
|
|
func New(db DBTX) *Queries { |
|
return &Queries{db: db} |
|
} |
|
|
|
type Queries struct { |
|
db DBTX |
|
} |
|
|
|
func (q *Queries) WithTx(tx *sql.Tx) *Queries { |
|
return &Queries{ |
|
db: tx, |
|
} |
|
}
|
|
|