2024-03-11 01:25:15 +00:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// sqlc v1.25.0
|
|
|
|
|
2023-09-06 22:20:09 +01:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"database/sql"
|
|
|
|
)
|
|
|
|
|
2024-03-11 01:25:15 +00:00
|
|
|
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
|
2023-09-06 22:20:09 +01:00
|
|
|
}
|
|
|
|
|
2024-03-11 01:25:15 +00:00
|
|
|
func New(db DBTX) *Queries {
|
|
|
|
return &Queries{db: db}
|
2023-09-06 22:20:09 +01:00
|
|
|
}
|
|
|
|
|
2024-03-11 01:25:15 +00:00
|
|
|
type Queries struct {
|
|
|
|
db DBTX
|
2023-09-06 22:20:09 +01:00
|
|
|
}
|
2023-09-08 00:30:03 +01:00
|
|
|
|
2024-03-11 01:25:15 +00:00
|
|
|
func (q *Queries) WithTx(tx *sql.Tx) *Queries {
|
|
|
|
return &Queries{
|
|
|
|
db: tx,
|
|
|
|
}
|
2023-09-08 00:30:03 +01:00
|
|
|
}
|