Documentation ¶
Index ¶
- type Database
- func (instance *Database) AddConnection(uid, driver, dsn string) bool
- func (instance *Database) AddConnectionByBot(info *commons.SettingsBotInfo) bool
- func (instance *Database) ChatUserQuery(botUID string) *query.ChatUserQuery
- func (instance *Database) GetConnection(uid, driver, dsn string) *ggxserve_database_pool.Connection
- func (instance *Database) GetConnectionByBot(info *commons.SettingsBotInfo) *ggxserve_database_pool.Connection
- func (instance *Database) Init() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewChatbotDatabase ¶
func NewChatbotDatabase(app *ggxapp.GGxApplicationRuntime) (instance *Database, err error)
func (*Database) AddConnection ¶
func (*Database) AddConnectionByBot ¶
func (instance *Database) AddConnectionByBot(info *commons.SettingsBotInfo) bool
func (*Database) ChatUserQuery ¶
func (instance *Database) ChatUserQuery(botUID string) *query.ChatUserQuery
func (*Database) GetConnection ¶
func (instance *Database) GetConnection(uid, driver, dsn string) *ggxserve_database_pool.Connection
func (*Database) GetConnectionByBot ¶
func (instance *Database) GetConnectionByBot(info *commons.SettingsBotInfo) *ggxserve_database_pool.Connection
Click to show internal directories.
Click to hide internal directories.