Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gormw ¶
type Gormw interface { Close() error DB() *sql.DB New() Gormw NewScope(value interface{}) *gorm.Scope CommonDB() gorm.SQLCommon Callback() *gorm.Callback SetLogger(l gorm.Logger) LogMode(enable bool) Gormw SingularTable(enable bool) Where(query interface{}, args ...interface{}) Gormw Or(query interface{}, args ...interface{}) Gormw Not(query interface{}, args ...interface{}) Gormw Limit(value int) Gormw Offset(value int) Gormw Order(value string, reorder ...bool) Gormw Select(query interface{}, args ...interface{}) Gormw Omit(columns ...string) Gormw Group(query string) Gormw Having(query string, values ...interface{}) Gormw Joins(query string, args ...interface{}) Gormw Scopes(funcs ...func(*gorm.DB) *gorm.DB) Gormw Unscoped() Gormw Attrs(attrs ...interface{}) Gormw Assign(attrs ...interface{}) Gormw First(out interface{}, where ...interface{}) Gormw Last(out interface{}, where ...interface{}) Gormw Find(out interface{}, where ...interface{}) Gormw Scan(dest interface{}) Gormw Row() *sql.Row Rows() (*sql.Rows, error) ScanRows(rows *sql.Rows, result interface{}) error Pluck(column string, value interface{}) Gormw Count(value interface{}) Gormw Related(value interface{}, foreignKeys ...string) Gormw FirstOrInit(out interface{}, where ...interface{}) Gormw FirstOrCreate(out interface{}, where ...interface{}) Gormw Update(attrs ...interface{}) Gormw Updates(values interface{}, ignoreProtectedAttrs ...bool) Gormw UpdateColumn(attrs ...interface{}) Gormw UpdateColumns(values interface{}) Gormw Save(value interface{}) Gormw Create(value interface{}) Gormw Delete(value interface{}, where ...interface{}) Gormw Raw(sql string, values ...interface{}) Gormw Exec(sql string, values ...interface{}) Gormw Model(value interface{}) Gormw Table(name string) Gormw Debug() Gormw Begin() Gormw Commit() Gormw Rollback() Gormw RollbackUnlessCommitted() Gormw NewRecord(value interface{}) bool RecordNotFound() bool CreateTable(values ...interface{}) Gormw DropTable(values ...interface{}) Gormw DropTableIfExists(values ...interface{}) Gormw HasTable(value interface{}) bool AutoMigrate(values ...interface{}) Gormw ModifyColumn(column string, typ string) Gormw DropColumn(column string) Gormw AddIndex(indexName string, column ...string) Gormw AddUniqueIndex(indexName string, column ...string) Gormw RemoveIndex(indexName string) Gormw AddForeignKey(field string, dest string, onDelete string, onUpdate string) Gormw Association(column string) *gorm.Association Preload(column string, conditions ...interface{}) Gormw Set(name string, value interface{}) Gormw InstantSet(name string, value interface{}) Gormw Get(name string) (value interface{}, ok bool) SetJoinTableHandler(source interface{}, column string, handler gorm.JoinTableHandlerInterface) AddError(err error) error GetErrors() (errors []error) // extra Error() error RowsAffected() int64 }
Gormw is an interface which DB implements
Click to show internal directories.
Click to hide internal directories.