Documentation ¶
Index ¶
- type DBManager
- func (manager *DBManager) BeginTransaction() (*sql.Tx, error)
- func (manager *DBManager) Close() error
- func (manager *DBManager) Delete(query string, args ...interface{}) (int64, error)
- func (manager *DBManager) Insert(query string, args ...interface{}) (int64, error)
- func (manager *DBManager) Select(query string, args ...interface{}) (*sql.Rows, error)
- func (manager *DBManager) Update(query string, args ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBManager ¶
DBManager holds the database connection pool.
func (*DBManager) BeginTransaction ¶
BeginTransaction starts a new database transaction.
func (*DBManager) Insert ¶
Insert executes an insert query and returns the ID of the last inserted row.
Click to show internal directories.
Click to hide internal directories.