Documentation
¶
Index ¶
- type MyDB
- func (m *MyDB) BeginTransaction() di.Transaction
- func (m *MyDB) Close() bool
- func (m *MyDB) Connect() bool
- func (m *MyDB) Delete(query string, args ...interface{}) bool
- func (m *MyDB) Get(query string, args ...interface{}) *di.DbRow
- func (m *MyDB) GetList(query string, args ...interface{}) *di.DbRows
- func (m *MyDB) Insert(query string, args ...interface{}) (bool, int64)
- func (m *MyDB) Test(query string, args ...interface{}) *di.DbRow
- func (m *MyDB) Update(query string, args ...interface{}) bool
- type MyDBMock
- func (m *MyDBMock) BeginTransaction() di.Transaction
- func (m *MyDBMock) Close() bool
- func (m *MyDBMock) Connect() bool
- func (m *MyDBMock) Delete(query string, args ...interface{}) bool
- func (m *MyDBMock) Get(query string, args ...interface{}) *di.DbRow
- func (m *MyDBMock) GetList(query string, args ...interface{}) *di.DbRows
- func (m *MyDBMock) Insert(query string, args ...interface{}) (bool, int64)
- func (m *MyDBMock) Test(query string, args ...interface{}) *di.DbRow
- func (m *MyDBMock) Update(query string, args ...interface{}) bool
- type MyDbTx
- type MyDbTxMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyDB ¶
type MyDB struct {
Host string
User string
Password string
Database string
// contains filtered or unexported fields
}
MyDB MyDB
func (*MyDB) BeginTransaction ¶ added in v1.0.3
func (m *MyDB) BeginTransaction() di.Transaction
BeginTransaction BeginTransaction
type MyDBMock ¶
type MyDBMock struct {
Host string
User string
Password string
Database string
MockSuccess bool
MockID int64
MockRow *di.DbRow
MockRows *di.DbRows
// contains filtered or unexported fields
}
MyDBMock MyDBMock
func (*MyDBMock) BeginTransaction ¶ added in v1.0.3
func (m *MyDBMock) BeginTransaction() di.Transaction
BeginTransaction BeginTransaction
type MyDbTx ¶ added in v1.0.3
MyDbTx MyDbTx
type MyDbTxMock ¶ added in v1.0.3
MyDbTxMock MyDbTxMock
func (*MyDbTxMock) Delete ¶ added in v1.0.3
func (t *MyDbTxMock) Delete(query string, args ...interface{}) bool
Delete Delete
func (*MyDbTxMock) Insert ¶ added in v1.0.3
func (t *MyDbTxMock) Insert(query string, args ...interface{}) (bool, int64)
Insert Insert
func (*MyDbTxMock) Rollback ¶ added in v1.0.3
func (t *MyDbTxMock) Rollback() bool
Rollback Rollback
func (*MyDbTxMock) Update ¶ added in v1.0.3
func (t *MyDbTxMock) Update(query string, args ...interface{}) bool
Update Update
Click to show internal directories.
Click to hide internal directories.