Documentation
¶
Overview ¶
Package dbservice @Title 数据库服务 @Description 数据库服务 @Author yr 2024/7/25 下午3:10 @Update yr 2024/7/25 下午3:10
Index ¶
- type Callback
- type DBService
- func (db *DBService) APIExecuteMixedFun(f Callback, args ...interface{}) (interface{}, error)
- func (db *DBService) APIExecuteMysqlFun(f mysqlmodule.Callback, args ...interface{}) (interface{}, error)
- func (db *DBService) APIExecuteMysqlTransaction(funcList ...mysqlmodule.TransactionCallback) error
- func (db *DBService) APIExecuteRedisFun(f redismodule.Callback, args ...interface{}) (interface{}, error)
- func (db *DBService) APIGetRedisString(key string) (string, error)
- func (db *DBService) APIGetRedisStringJson(key string, value interface{}) error
- func (db *DBService) APISetRedisString(key string, value interface{}, expire time.Duration) error
- func (db *DBService) APISetRedisStringJson(key string, value interface{}, expire time.Duration) error
- func (db *DBService) OnInit() error
- func (db *DBService) OnRelease()
- func (db *DBService) OnStart() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBService ¶
func (*DBService) APIExecuteMixedFun ¶
APIExecuteMixedFun 执行混合函数
func (*DBService) APIExecuteMysqlFun ¶
func (db *DBService) APIExecuteMysqlFun(f mysqlmodule.Callback, args ...interface{}) (interface{}, error)
APIExecuteMysqlFun 执行mysql函数
func (*DBService) APIExecuteMysqlTransaction ¶
func (db *DBService) APIExecuteMysqlTransaction(funcList ...mysqlmodule.TransactionCallback) error
APIExecuteMysqlTransaction 执行mysql事务
func (*DBService) APIExecuteRedisFun ¶
func (db *DBService) APIExecuteRedisFun(f redismodule.Callback, args ...interface{}) (interface{}, error)
APIExecuteRedisFun 执行redis函数
func (*DBService) APIGetRedisString ¶
func (*DBService) APIGetRedisStringJson ¶
func (*DBService) APISetRedisString ¶
func (*DBService) APISetRedisStringJson ¶
Click to show internal directories.
Click to hide internal directories.