Versions in this module Expand all Collapse all v1 v1.2.1 Sep 20, 2021 v1.2.0 Sep 22, 2017 v1.1.0 Sep 4, 2017 Changes in this version + const AfterCreate + const AfterDelete + const AfterUpdate + const AssociationSource + const BeforeCreate + const BeforeDelete + const BeforeUpdate + const BlankColWithValue + const Create + const Delete + const DeleteOption + const DeleteSQL + const HookAfterCreate + const HookAfterDelete + const HookAfterFindQuery + const HookAfterQuery + const HookAfterSave + const HookAfterUpdate + const HookAssignUpdatingAttrs + const HookBeforeCreate + const HookBeforeDelete + const HookBeforeSave + const HookBeforeUpdate + const HookCreateExec + const HookCreateSQL + const HookQueryExec + const HookQuerySQL + const HookSaveAfterAss + const HookSaveBeforeAss + const HookUpdateExec + const HookUpdateSQL + const HookUpdateTimestamp + const IgnoreProtectedAttrs + const InsertOptions + const OrderByPK + const Preload + const Query + const QueryDestination + const QueryOption + const SaveAssociations + const TableOptions + const Update + const UpdateAttrs + const UpdateColumn + const UpdateInterface + const UpdateOptions + func ParseFieldStructForDialect(field *StructField) (fieldValue reflect.Value, sqlType string, size int, additionalType string) + func ParseTagSetting(tags reflect.StructTag) map[string]string + type Expr struct + Args []interface{} + Q string + type Field struct + Field reflect.Value + IsBlank bool + func (field *Field) Set(value interface{}) (err error) + type JoinTableForeignKey struct + AssociationDBName string + DBName string + type JoinTableHandler struct + Destination JoinTableSource + Source JoinTableSource + TableName string + type JoinTableSource struct + ForeignKeys []JoinTableForeignKey + ModelType reflect.Type + type Model struct + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + UpdatedAt time.Time + type Relationship struct + AssociationForeignDBNames []string + AssociationForeignFieldNames []string + ForeignDBNames []string + ForeignFieldNames []string + JoinTableHandler *JoinTableHandler + Kind string + PolymorphicDBName string + PolymorphicType string + PolymorphicValue string + type SQLCommon interface + Begin func() (*sql.Tx, error) + Close func() error + Exec func(query string, args ...interface{}) (sql.Result, error) + Prepare func(query string) (*sql.Stmt, error) + Query func(query string, args ...interface{}) (*sql.Rows, error) + QueryRow func(query string, args ...interface{}) *sql.Row + type SQLCommonWrapper struct + func (s *SQLCommonWrapper) Exec(query string, args ...interface{}) (sql.Result, error) + func (s *SQLCommonWrapper) Query(query string, args ...interface{}) (*sql.Rows, error) + func (s *SQLCommonWrapper) QueryRow(query string, args ...interface{}) *sql.Row + func (s *SQLCommonWrapper) Verbose(b bool) + type SafeStructsMap struct + func NewStructsMap() *SafeStructsMap + func (s *SafeStructsMap) Get(key reflect.Type) *Struct + func (s *SafeStructsMap) Set(value *Struct) + type Scope struct + Exprs []*Expr + MultiExpr bool + SQL string + SQLVars []interface{} + SelectAttrs []string + TableName string + Value interface{} + func NewScope() *Scope + func (s *Scope) ContextValue(v interface{}) + func (s *Scope) Get(key string) (interface{}, bool) + func (s *Scope) GetAll() map[string]interface{} + func (s *Scope) Set(key string, value interface{}) + func (s *Scope) TypeName() string + func (s *Scope) ValueOf() reflect.Value + type Search struct + AssignAttrs []interface{} + Group string + HavingConditions []map[string]interface{} + IgnoreOrderQuery bool + InitAttrs []interface{} + JoinConditions []map[string]interface{} + Limit interface{} + NotConditions []map[string]interface{} + Offset interface{} + Omits []string + OrConditions []map[string]interface{} + Orders []interface{} + Preload []SearchPreload + Raw bool + Selects map[string]interface{} + TableName string + TableNames []string + Unscoped bool + WhereConditions []map[string]interface{} + type SearchPreload struct + Conditions []interface{} + Schema string + type Struct struct + DefaultTableName string + ModelType reflect.Type + PrimaryFields []*StructField + StructFields []*StructField + type StructField struct + DBName string + HasDefaultValue bool + IsForeignKey bool + IsIgnored bool + IsNormal bool + IsPrimaryKey bool + IsScanner bool + Name string + Names []string + Relationship *Relationship + Struct reflect.StructField + Tag reflect.StructTag + TagSettings map[string]string + func (s *StructField) Clone() *StructField