Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("dal", fx.Provide( NewDB, query.Use, NewMysqlTransaction, ), )
Functions ¶
Types ¶
type MysqlTransaction ¶
type MysqlTransaction struct {
// contains filtered or unexported fields
}
func (MysqlTransaction) Transaction ¶
func (t MysqlTransaction) Transaction(fc func(tx *query.Query) error) error
type NoopTransaction ¶
type NoopTransaction struct { }
func (NoopTransaction) Transaction ¶
func (t NoopTransaction) Transaction(fc func(tx *query.Query) error) error
type Transaction ¶
func NewMysqlTransaction ¶
func NewMysqlTransaction(q *query.Query) Transaction
Click to show internal directories.
Click to hide internal directories.