Documentation
¶
Index ¶
- type MysqlCommandDriver
- func (m *MysqlCommandDriver) Close() error
- func (m *MysqlCommandDriver) Connect(connectionString string) error
- func (m *MysqlCommandDriver) Create(collection string, data interface{}) error
- func (m *MysqlCommandDriver) Delete(collection string, filter interface{}) error
- func (m *MysqlCommandDriver) Update(collection string, filter interface{}, update interface{}) error
- type MysqlQueryDriver
- func (m *MysqlQueryDriver) Close() error
- func (m *MysqlQueryDriver) Connect(connectionString string) error
- func (m *MysqlQueryDriver) Count(collection string, filter interface{}) (int64, error)
- func (m *MysqlQueryDriver) ExecuteRawSQL(sql string, values ...interface{}) error
- func (m *MysqlQueryDriver) QueryRawSQL(sql string, values ...interface{}) ([]map[string]interface{}, error)
- func (m *MysqlQueryDriver) Read(collection string, filter interface{}) (interface{}, error)
- func (m *MysqlQueryDriver) ReadAll(collection string, filter interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlCommandDriver ¶
type MysqlCommandDriver struct { DB *gorm.DB ConnMaxLifetime time.Duration MaxOpenConns int MaxIdleConns int ConnectionTimeout time.Duration }
func (*MysqlCommandDriver) Close ¶
func (m *MysqlCommandDriver) Close() error
func (*MysqlCommandDriver) Connect ¶
func (m *MysqlCommandDriver) Connect(connectionString string) error
func (*MysqlCommandDriver) Create ¶
func (m *MysqlCommandDriver) Create(collection string, data interface{}) error
func (*MysqlCommandDriver) Delete ¶
func (m *MysqlCommandDriver) Delete(collection string, filter interface{}) error
func (*MysqlCommandDriver) Update ¶
func (m *MysqlCommandDriver) Update(collection string, filter interface{}, update interface{}) error
type MysqlQueryDriver ¶
type MysqlQueryDriver struct { DB *gorm.DB ConnMaxLifetime time.Duration MaxOpenConns int MaxIdleConns int ConnectionTimeout time.Duration }
func (*MysqlQueryDriver) Close ¶
func (m *MysqlQueryDriver) Close() error
func (*MysqlQueryDriver) Connect ¶
func (m *MysqlQueryDriver) Connect(connectionString string) error
func (*MysqlQueryDriver) Count ¶ added in v1.3.0
func (m *MysqlQueryDriver) Count(collection string, filter interface{}) (int64, error)
func (*MysqlQueryDriver) ExecuteRawSQL ¶ added in v1.3.0
func (m *MysqlQueryDriver) ExecuteRawSQL(sql string, values ...interface{}) error
func (*MysqlQueryDriver) QueryRawSQL ¶ added in v1.3.0
func (m *MysqlQueryDriver) QueryRawSQL(sql string, values ...interface{}) ([]map[string]interface{}, error)
func (*MysqlQueryDriver) Read ¶
func (m *MysqlQueryDriver) Read(collection string, filter interface{}) (interface{}, error)
func (*MysqlQueryDriver) ReadAll ¶ added in v1.3.0
func (m *MysqlQueryDriver) ReadAll(collection string, filter interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.