Documentation
¶
Index ¶
- func Init(query string, parameters ...driver.Value) func() *Options
- func Named(name string) func() *Options
- func QueryRecord[Shape any](database Database, tx *sql.Tx, query string, params ...any) (*Shape, error)
- func QueryRecords[Shape any](database Database, tx *sql.Tx, query string, params ...any) ([]*Shape, error)
- func Record[Record any](rows *sql.Rows) (*Record, error)
- func Records[Record any](rows *sql.Rows) ([]*Record, error)
- func Tx[A any](database Database, handler func(*sql.Tx) (*A, error)) (*A, error)
- func TxStub(database Database, handler func(*sql.Tx) error) error
- func WithFunc(name string, impl any) func() *Options
- type Database
- type Migrator
- type Options
- type Query
- type Statement
- type VirtualFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryRecord ¶
func QueryRecords ¶
Types ¶
type Database ¶
Click to show internal directories.
Click to hide internal directories.