mirror of https://github.com/rocboss/paopao-ce
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.
33 lines
565 B
33 lines
565 B
2 years ago
|
// Code generated by sqlc. DO NOT EDIT.
|
||
|
// versions:
|
||
|
// sqlc v1.16.0
|
||
|
|
||
|
package dbr
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/jackc/pgx/v5"
|
||
|
"github.com/jackc/pgx/v5/pgconn"
|
||
|
)
|
||
|
|
||
|
type DBTX interface {
|
||
|
Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
|
||
|
Query(context.Context, string, ...interface{}) (pgx.Rows, error)
|
||
|
QueryRow(context.Context, string, ...interface{}) pgx.Row
|
||
|
}
|
||
|
|
||
|
func New(db DBTX) *Queries {
|
||
|
return &Queries{db: db}
|
||
|
}
|
||
|
|
||
|
type Queries struct {
|
||
|
db DBTX
|
||
|
}
|
||
|
|
||
|
func (q *Queries) WithTx(tx pgx.Tx) *Queries {
|
||
|
return &Queries{
|
||
|
db: tx,
|
||
|
}
|
||
|
}
|