Documentation ¶
Index ¶
- type DB
- type Tx
- func (tx *Tx) Commit() error
- func (tx *Tx) CurTime() (time.Time, error)
- func (tx *Tx) DBType() Type
- func (tx *Tx) Exec(query string, args ...any) (sql.Result, error)
- func (tx *Tx) ID() string
- func (tx *Tx) Query(query string, args ...any) (*sql.Rows, error)
- func (tx *Tx) QueryRow(query string, args ...any) *sql.Row
- func (tx *Tx) Rollback() error
- func (tx *Tx) Start(ctx context.Context) error
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB wraps a sql.DB to add special behaviors based on the db type
func (*DB) NewUnstartedTx ¶
Click to show internal directories.
Click to hide internal directories.