Documentation ¶ Index ¶ func Exec(ctx context.Context, db DB, query string, args []interface{}) (sql.Result, error) func GetTable(m any) string func GetTableSingular(m any) string type DB type Read func NewRead(ctx context.Context, db DB) Read type Tabler type Update func NewUpdate(ctx context.Context, db DB) Update Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Exec ¶ added in v0.11.3 func Exec(ctx context.Context, db DB, query string, args []interface{}) (sql.Result, error) func GetTable ¶ func GetTable(m any) string func GetTableSingular ¶ func GetTableSingular(m any) string Types ¶ type DB ¶ added in v0.7.1 type DB interface { sqlx.QueryerContext sqlx.ExecerContext } type Read ¶ added in v0.10.2 type Read func(func(tx *sqlx.Tx) error) error func NewRead ¶ added in v0.11.3 func NewRead(ctx context.Context, db DB) Read type Tabler ¶ type Tabler interface { Table() string } type Update ¶ added in v0.10.2 type Update func(func(tx *sqlx.Tx) error) error func NewUpdate ¶ added in v0.11.3 func NewUpdate(ctx context.Context, db DB) Update Source Files ¶ View all Source files sqlx.go table.go Directories ¶ Show internal Expand all Path Synopsis builder databasedi dbtest dialects mysql postgres sqlite hooks migrate model modeldi schema Click to show internal directories. Click to hide internal directories.