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 AddIndexSQL + const AddUniqueIndex + const AutoMigrate + const CreateTable1 + const CreateTable2 + const DeleteSQL + const DropTable + const FindSQL1 + const FindSQL2 + const FirstSQL1 + const FirstSQL2 + const LastSQL1 + const LastSQL2 + const SaveSQL + const SingularTable + const UpdateSQL + func GetSQL(dialect string, key string) string + func TestEngine() *engine.Engine + type Address struct + Address1 string + Address2 string + CreatedAt time.Time + DeletedAt *time.Time + ID int + Post string + UpdatedAt time.Time + type Animal struct + Age time.Time + Counter uint64 + CreatedAt time.Time + From string + Name string + UpdatedAt time.Time + type CalculateField struct + Category CalculateFieldCategory + Children []CalculateFieldChild + Name string + type CalculateFieldCategory struct + CalculateFieldID uint + Name string + type CalculateFieldChild struct + CalculateFieldID uint + Name string + type Cat struct + ID int + Name string + Toy Toy + type Category struct + Categories []Category + CategoryID *uint + Name string + type Comment struct + Content string + PostID int64 + type Company struct + ID int64 + Name string + Owner *User + type CreditCard struct + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + Number string + UpdatedAt time.Time + UserID sql.NullInt64 + type CustomColumnAndIgnoredFieldClash struct + Body string + RawBody string + type CustomizeColumn struct + Date *time.Time + ID int64 + Name string + type Dog struct + ID int + Name string + Toys []Toy + type Email struct + CreatedAt time.Time + Email string + ID int16 + UpdatedAt time.Time + UserID int + type EmbeddedField struct + EmbeddedName string + type Hamster struct + ID int + Name string + OtherToy Toy + PreferredToy Toy + type JoinTable struct + From uint64 + Time time.Time + To uint64 + type Language struct + Name string + Users []User + type NotSoLongTableName struct + ID int64 + ReallyLongThing ReallyLongTableNameToTestMySQLNameLengthLimit + ReallyLongThingID int64 + type NullTime struct + Time time.Time + Valid bool + func (nt *NullTime) Scan(value interface{}) error + func (nt NullTime) Value() (driver.Value, error) + type NullValue struct + AddedAt NullTime + Age sql.NullInt64 + Gender *sql.NullString + Height sql.NullFloat64 + ID int64 + Male sql.NullBool + Name sql.NullString + type Num int64 + func (i *Num) Scan(src interface{}) error + type Post struct + Body string + Category Category + CategoryID sql.NullInt64 + Comments []*Comment + ID int64 + MainCategory Category + MainCategoryID int64 + Title string + type Product struct + AfterCreateCallTimes int64 + AfterDeleteCallTimes int64 + AfterFindCallTimes int64 + AfterSaveCallTimes int64 + AfterUpdateCallTimes int64 + BeforeCreateCallTimes int64 + BeforeDeleteCallTimes int64 + BeforeSaveCallTimes int64 + BeforeUpdateCallTimes int64 + Code string + CreatedAt time.Time + ID int64 + Price int64 + UpdatedAt time.Time + type ReallyLongTableNameToTestMySQLNameLengthLimit struct + ID int64 + type ReallyLongThingThatReferencesShort struct + ID int64 + Short Short + ShortID int64 + type Role struct + Name string + func (role *Role) Scan(value interface{}) error + func (role Role) IsAdmin() bool + func (role Role) Value() (driver.Value, error) + type Short struct + ID int64 + type Toy struct + ID int + Name string + OwnerID int + OwnerType string + type User struct + Age int64 + BillingAddress Address + BillingAddressID sql.NullInt64 + Birthday *time.Time + Company Company + CompanyID *int + CreatedAt time.Time + CreditCard CreditCard + Email string + Emails []Email + ID int64 + IgnoreMe int64 + IgnoreStringSlice []string + Ignored struct{ ... } + IgnoredPointer *User + Languages []Language + Latitude float64 + Name string + PasswordHash []byte + Sequence uint + ShippingAddress Address + ShippingAddressID int64 + UpdatedAt time.Time + UserNum Num