Documentation ¶
Index ¶
- Variables
- func Up(ctx context.Context, db *DB, fsys fs.FS) error
- type DB
- func (db *DB) Begin() (*Tx, error)
- func (db *DB) Close() error
- func (db *DB) Exec(ctx context.Context, query string, args ...any) (int64, error)
- func (db *DB) Query(ctx context.Context, query string, args ...any) (ScanIterator, error)
- func (db *DB) QueryRow(ctx context.Context, query string, args ...any) Scanner
- type ReadWriter
- type Reader
- type ScanIterator
- type Scanner
- type Tx
- func (tx *Tx) Commit() error
- func (tx *Tx) Exec(ctx context.Context, query string, args ...any) (int64, error)
- func (tx *Tx) Query(ctx context.Context, query string, args ...any) (ScanIterator, error)
- func (tx *Tx) QueryRow(ctx context.Context, query string, args ...any) Scanner
- func (tx *Tx) Rollback() error
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRows = sql.ErrNoRows
)
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type ReadWriter ¶
Click to show internal directories.
Click to hide internal directories.