Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
Types ¶
type ConnectionPoolConfig ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
type ORMConfig ¶
type ORMConfig struct { LogLevel string `yaml:"loglevel"` ConnectionPool ConnectionPoolConfig `yaml:"connection_pool"` }
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(d *Database) *Transaction
func (*Transaction) DoTransaction ¶
func (t *Transaction) DoTransaction(task func() error, opts ...*sql.TxOptions) error
Click to show internal directories.
Click to hide internal directories.