Files
motr/internal/db/network/db.go
Prad Nukala 8ad936cfc7 feat/wasi plugins (#13)
* feat: migrate build system to Taskfile for improved automation

* refactor: consolidate build tasks for improved maintainability

* build: pin sqlc version to v1.28.0

* refactor: streamline local development environment
2025-06-06 01:33:09 -04:00

32 lines
600 B
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
package network
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,
}
}