Documentation ¶ Index ¶ type Wrapper func NewTx[T any, I comparable](ctx context.Context, db *sqlx.DB, tableInfo table.Info, driver string, ...) (*Wrapper[T, I], error) func (t *Wrapper[T, I]) Commit() error func (t *Wrapper[T, I]) Rollback() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Wrapper ¶ type Wrapper[T any, I comparable] struct { domain.SQLExecutor domain.CRUD[T, I] domain.PageResolver[T] // contains filtered or unexported fields } func NewTx ¶ func NewTx[T any, I comparable](ctx context.Context, db *sqlx.DB, tableInfo table.Info, driver string, debugFunc domain.DebugFunc, opts *sql.TxOptions, ) (*Wrapper[T, I], error) func (*Wrapper[T, I]) Commit ¶ func (t *Wrapper[T, I]) Commit() error func (*Wrapper[T, I]) Rollback ¶ func (t *Wrapper[T, I]) Rollback() error Source Files ¶ View all Source files transaction.go Click to show internal directories. Click to hide internal directories.