Documentation ¶
Index ¶
- type Model
- func (m *Model) Count(where []interface{}) (count int64)
- func (m *Model) Delete(where []interface{}) error
- func (m *Model) Dialector(dialect *types.MysqlDialect) gorm.Dialector
- func (m *Model) Find(dest interface{}, where []interface{}, fields, order string, offset, limit int)
- func (m *Model) FindOne(dest interface{}, where []interface{}, fields, order string)
- func (m *Model) NewMysql(dbc *types.DBCollector, mdt *types.MysqlDialect, cfg func() *gorm.Config) (*gorm.DB, error)
- func (m *Model) ParseDSN(dialect *types.MysqlDialect) string
- func (m *Model) Save(value interface{}, updates ...interface{}) (interface{}, error)
- func (m *Model) SaveOrUpdate(value interface{}, primaryKey int, updateFields string) (interface{}, error)
- func (m *Model) Update(where []interface{}, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
func (*Model) Dialector ¶ added in v1.2.0
func (m *Model) Dialector(dialect *types.MysqlDialect) gorm.Dialector
func (*Model) NewMysql ¶
func (m *Model) NewMysql(dbc *types.DBCollector, mdt *types.MysqlDialect, cfg func() *gorm.Config) (*gorm.DB, error)
func (*Model) ParseDSN ¶ added in v1.2.0
func (m *Model) ParseDSN(dialect *types.MysqlDialect) string
func (*Model) SaveOrUpdate ¶ added in v1.1.6
Click to show internal directories.
Click to hide internal directories.