The highest tagged major version is
v2.
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 14, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewDB instantiates new tx.DB *sql.DB wrapper
type DB struct {
*sql.DB
}
DB implements tx.DB
Begin begins sql transaction
type Tx struct {
*sql.Tx
}
Tx wraps *sql.TX in order top implement tx.Transaction
From returns underlying *sql.Tx (wrapped in *Tx)
Commit commits the transaction
Rollback rolls back the transaction
Source Files
¶
Click to show internal directories.
Click to hide internal directories.