Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBLogger ¶
type DBLogger interface { Debug(args ...interface{}) Debugf(fmt string, args ...interface{}) }
type DBQuery ¶
type DBQuery struct { DBModel // contains filtered or unexported fields }
func (*DBQuery) RollbackTx ¶
RollbackTx is the wrapper for graceful transaction rollback.
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
Postgres pg connection.
func (Postgres) NewTXContext ¶
NewTXContext returns DBQuery instance with new transaction DBQuery.Commit() must be called to run transaction.