Versions in this module Expand all Collapse all v0 v0.0.3 Aug 8, 2024 v0.0.2 Aug 8, 2024 Changes in this version + func Init(dataBase *bun.DB) v0.0.1 Aug 7, 2024 Changes in this version + func CheckColumnType(ctx context.Context, tx bun.Tx, model interface{}, column string) (string, error) + func DeleteUnusedRows(ctx context.Context, tx bun.Tx, model interface{}, ...) error + func InsertRowsIfNotExist(ctx context.Context, tx bun.Tx, model interface{}, columns []string) error + func RunInTx(ctx context.Context, db *bun.DB, fs ...txFunc) error + type ModelSelector interface + Select func(ctx context.Context, tx bun.Tx) error + type TableData struct + Column string + Key interface{} + Value interface{} + func (td *TableData) UpdateCell(ctx context.Context, db *bun.DB, model interface{}, pkColumn string, ...) error + type TableDataArray []*TableData + type UID struct + Delete []string + Insert TableDataArray + Update TableDataArray