GraphQL API and utilities for the rpdata project
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.

29 lines
570 B

  1. // Code generated by sqlc. DO NOT EDIT.
  2. package psqlcore
  3. import (
  4. "context"
  5. "database/sql"
  6. )
  7. type DBTX interface {
  8. ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
  9. PrepareContext(context.Context, string) (*sql.Stmt, error)
  10. QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
  11. QueryRowContext(context.Context, string, ...interface{}) *sql.Row
  12. }
  13. func New(db DBTX) *Queries {
  14. return &Queries{db: db}
  15. }
  16. type Queries struct {
  17. db DBTX
  18. }
  19. func (q *Queries) WithTx(tx *sql.Tx) *Queries {
  20. return &Queries{
  21. db: tx,
  22. }
  23. }