Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) Assign(p1 ...interface{}) *DB
- func (db *DB) Association(p1 string) *gorm.Association
- func (db *DB) Attrs(p1 ...interface{}) *DB
- func (db *DB) Begin(p1 ...*sql.TxOptions) *gorm.DB
- func (db *DB) BindVarTo(p1 clause.Writer, p2 *gorm.Statement, p3 interface{})
- func (db *DB) Clauses(p1 ...clause.Expression) *gorm.DB
- func (db *DB) Commit() *gorm.DB
- func (db *DB) Config() *gorm.Config
- func (db *DB) Count(p1 *int64) *gorm.DB
- func (db *DB) Create(s safesql.TrustedSQLString) *DB
- func (db *DB) CreateInBatches(p1 interface{}, p2 int) *gorm.DB
- func (db *DB) Debug() *gorm.DB
- func (db *DB) DefaultValueOf(p1 *schema.Field) clause.Expression
- func (db *DB) Delete(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Distinct(args ...safesql.TrustedSQLString) *DB
- func (db *DB) Error() error
- func (db *DB) Exec(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Find(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) FindInBatches(p1 interface{}, p2 int, p3 func(*gorm.DB, int) error) *gorm.DB
- func (db *DB) First(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) FirstOrCreate(p1 interface{}, p2 ...interface{}) *DB
- func (db *DB) FirstOrInit(p1 interface{}, p2 ...interface{}) *DB
- func (db *DB) Group(s safesql.TrustedSQLString) *DB
- func (db *DB) Having(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) InnerJoins(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) InstanceSet(s safesql.TrustedSQLString, arg interface{}) *DB
- func (db *DB) Joins(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Last(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Limit(p1 int) *gorm.DB
- func (db *DB) MapColumns(p1 map[string]string) *gorm.DB
- func (db *DB) Migrator() gorm.Migrator
- func (db *DB) Model(s safesql.TrustedSQLString) *DB
- func (db *DB) Not(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Offset(p1 int) *gorm.DB
- func (db *DB) Omit(p1 ...string) *gorm.DB
- func (db *DB) Or(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Order(s safesql.TrustedSQLString) *DB
- func (db *DB) Pluck(s safesql.TrustedSQLString, arg interface{}) *DB
- func (db *DB) Preload(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) QuoteTo(p1 clause.Writer, p2 string)
- func (db *DB) Raw(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Rollback() *gorm.DB
- func (db *DB) RollbackTo(s safesql.TrustedSQLString) *DB
- func (db *DB) Row() *sql.Row
- func (db *DB) RowsAffected() int64
- func (db *DB) Save(p1 interface{}) *gorm.DB
- func (db *DB) SavePoint(s safesql.TrustedSQLString) *DB
- func (db *DB) Scan(p1 interface{}) *gorm.DB
- func (db *DB) Scopes(p1 ...func(*gorm.DB) *gorm.DB) *gorm.DB
- func (db *DB) Select(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Session(p1 *gorm.Session) *gorm.DB
- func (db *DB) Set(s safesql.TrustedSQLString, arg interface{}) *DB
- func (db *DB) Statement() *gorm.Statement
- func (db *DB) Table(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Take(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) Unsafe() *gorm.DB
- func (db *DB) Unscoped() *gorm.DB
- func (db *DB) Update(s safesql.TrustedSQLString, arg interface{}) *DB
- func (db *DB) UpdateColumn(s safesql.TrustedSQLString, arg interface{}) *DB
- func (db *DB) UpdateColumns(p1 interface{}) *gorm.DB
- func (db *DB) Updates(p1 interface{}) *gorm.DB
- func (db *DB) Where(s safesql.TrustedSQLString, args ...interface{}) *DB
- func (db *DB) WithContext(p1 context.Context) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) Association ¶
func (db *DB) Association(p1 string) *gorm.Association
func (*DB) DefaultValueOf ¶
func (db *DB) DefaultValueOf(p1 *schema.Field) clause.Expression
func (*DB) Delete ¶
func (db *DB) Delete(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) Find ¶
func (db *DB) Find(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) FindInBatches ¶
func (*DB) First ¶
func (db *DB) First(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) FirstOrCreate ¶
func (*DB) FirstOrInit ¶
func (*DB) InnerJoins ¶
func (db *DB) InnerJoins(s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) InstanceSet ¶
func (db *DB) InstanceSet(s safesql.TrustedSQLString, arg interface{}) *DB
func (*DB) Last ¶
func (db *DB) Last(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) RollbackTo ¶
func (db *DB) RollbackTo(s safesql.TrustedSQLString) *DB
func (*DB) RowsAffected ¶
func (*DB) Take ¶
func (db *DB) Take(p1 interface{}, s safesql.TrustedSQLString, args ...interface{}) *DB
func (*DB) UpdateColumn ¶
func (db *DB) UpdateColumn(s safesql.TrustedSQLString, arg interface{}) *DB
func (*DB) UpdateColumns ¶
Click to show internal directories.
Click to hide internal directories.