Documentation ¶
Index ¶
- func DatabaseLog(messages ...interface{})
- type ImDb
- func (b *ImDb) AddActDialog(dialogid uint64) error
- func (b *ImDb) AddDialog(dialogid uint64, uids []uint64) error
- func (b *ImDb) AddMessage(uid uint64, dialogid uint64, msgType uint32, information string, ...) error
- func (b *ImDb) AddOutlineMsg(uid uint64, types uint32, packet []byte, messageTimestamp string) error
- func (b *ImDb) AddUser(uid uint64) error
- func (b *ImDb) CloseDb()
- func (b *ImDb) ConnectDb() error
- func (b *ImDb) CreateTables() error
- func (b *ImDb) DeleteDbTable(deletePrepareString string, parameter ...interface{}) error
- func (b *ImDb) UpdateTable(updatePrepareString string, parameter ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImDb ¶
func (*ImDb) AddActDialog ¶
********************插入act_dialog*****************
func (*ImDb) AddMessage ¶
func (b *ImDb) AddMessage(uid uint64, dialogid uint64, msgType uint32, information string, messageTimestamp string) error
********************插入message*****************
func (*ImDb) AddOutlineMsg ¶
func (b *ImDb) AddOutlineMsg(uid uint64, types uint32, packet []byte, messageTimestamp string) error
********************插入OutLineMessage*****************
func (*ImDb) DeleteDbTable ¶
删除数据表信息,deleteString为prepare语句,参数在parameter 例子: DeleteDbTable("delete from act_dialog where dialog_id=?",1234)
func (*ImDb) UpdateTable ¶
更新数据,输入update的prepare语句,parameter为参数 例子: UpdateTable("update dialog set timestamp=? where dialog_id=? and uid=?","0000-00-00 00:00:00",111222,333)
Click to show internal directories.
Click to hide internal directories.