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 ¶ added in v0.23.8
type MysqlTransaction struct {
// contains filtered or unexported fields
}
func (MysqlTransaction) Transaction ¶ added in v0.23.8
func (t MysqlTransaction) Transaction(fc func(tx *query.Query) error) error
type NoopTransaction ¶ added in v0.23.8
type NoopTransaction struct { }
func (NoopTransaction) Transaction ¶ added in v0.23.8
func (t NoopTransaction) Transaction(fc func(tx *query.Query) error) error
type Transaction ¶ added in v0.23.8
func NewMysqlTransaction ¶ added in v0.23.8
func NewMysqlTransaction(q *query.Query) Transaction
Click to show internal directories.
Click to hide internal directories.