Documentation ¶
Index ¶
- type Dialect
- func (b *Dialect) BindVar(i int) string
- func (b Dialect) CurrentDatabase() string
- func (b *Dialect) DataTypeOf(field *gorm.StructField) string
- func (b Dialect) DefaultValueStr() string
- func (b *Dialect) GetName() string
- func (b *Dialect) HasColumn(tableName string, columnName string) bool
- func (b Dialect) HasForeignKey(tableName string, foreignKeyName string) bool
- func (b *Dialect) HasIndex(tableName string, indexName string) bool
- func (b *Dialect) HasTable(in string) bool
- func (b Dialect) LastInsertIDReturningSuffix(tableName, columnName string) string
- func (b Dialect) LimitAndOffsetSQL(limit, offset interface{}) (sql string)
- func (b Dialect) ModifyColumn(tableName string, columnName string, typ string) error
- func (b Dialect) NormalizeIndexAndColumn(indexName, columnName string) (string, string)
- func (b *Dialect) Quote(key string) string
- func (b Dialect) RemoveIndex(tableName string, indexName string) error
- func (b Dialect) SelectFromDummyTable() string
- func (b *Dialect) SetDB(db gorm.SQLCommon)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialect ¶
type Dialect struct { gorm.DefaultForeignKeyNamer // contains filtered or unexported fields }
func (Dialect) CurrentDatabase ¶
func (*Dialect) DataTypeOf ¶
func (b *Dialect) DataTypeOf(field *gorm.StructField) string
func (Dialect) DefaultValueStr ¶
func (Dialect) HasForeignKey ¶
func (Dialect) LastInsertIDReturningSuffix ¶
func (Dialect) LimitAndOffsetSQL ¶
func (Dialect) ModifyColumn ¶
func (Dialect) NormalizeIndexAndColumn ¶
func (Dialect) SelectFromDummyTable ¶
Click to show internal directories.
Click to hide internal directories.