Documentation ¶
Index ¶
- func BuildDSN(server string, port int, service, user, password string, ...) string
- func ConvertNameToFormat(x string) string
- func Create(db *gorm.DB)
- func DualTableName() string
- func New(config Config) gorm.Dialector
- func Open(dsn string) gorm.Dialector
- type Config
- type Dialector
- func (d Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})
- func (d Dialector) ClauseBuilders() (ret map[string]clause.ClauseBuilder)
- func (d Dialector) DataTypeOf(field *schema.Field) string
- func (d Dialector) DefaultValueOf(field *schema.Field) clause.Expression
- func (d Dialector) Explain(sql string, vars ...interface{}) string
- func (d Dialector) Initialize(db *gorm.DB) (err error)
- func (d Dialector) Migrator(db *gorm.DB) gorm.Migrator
- func (d Dialector) Name() string
- func (d Dialector) QuoteTo(writer clause.Writer, str string)
- func (d Dialector) RollbackTo(tx *gorm.DB, name string) error
- func (d Dialector) SavePoint(tx *gorm.DB, name string) error
- type Namer
- func (n Namer) CheckerName(table, column string) (name string)
- func (n Namer) ColumnName(table, column string) (name string)
- func (n Namer) IndexName(table, column string) (name string)
- func (n Namer) JoinTableName(table string) (name string)
- func (n Namer) RelationshipFKName(relationship schema.Relationship) (name string)
- func (n Namer) SchemaName(table string) string
- func (n Namer) TableName(table string) (name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertNameToFormat ¶
func DualTableName ¶
func DualTableName() string
Types ¶
type Dialector ¶
type Dialector struct {
*Config
}
func (Dialector) ClauseBuilders ¶
func (d Dialector) ClauseBuilders() (ret map[string]clause.ClauseBuilder)
func (Dialector) DataTypeOf ¶
DataTypeOf for migrator
func (Dialector) DefaultValueOf ¶
func (d Dialector) DefaultValueOf(field *schema.Field) clause.Expression
type Namer ¶
func (Namer) CheckerName ¶
func (Namer) ColumnName ¶
func (Namer) JoinTableName ¶
func (Namer) RelationshipFKName ¶
func (n Namer) RelationshipFKName(relationship schema.Relationship) (name string)
func (Namer) SchemaName ¶
Click to show internal directories.
Click to hide internal directories.