Documentation ¶
Index ¶
- Constants
- type Sql
- func (s Sql) AlterTableAddColumnAfterStm() string
- func (s Sql) AlterTableAddColumnFirstStm() string
- func (s Sql) AlterTableDropColumnStm() string
- func (s Sql) AlterTableModifyColumnStm() string
- func (s Sql) AlterTableRenameColumnStm() string
- func (s Sql) AlterTableRenameIndexStm() string
- func (s Sql) AutoIncrementOption() string
- func (s Sql) BigIntType() string
- func (s Sql) BooleanType() string
- func (s Sql) Comment() string
- func (s Sql) CreateForeignKeyStm() string
- func (s Sql) CreateIndexStm(indexType string) string
- func (s Sql) CreatePrimaryKeyStm() string
- func (s Sql) CreateTableMigration() string
- func (s Sql) CreateTableStm() string
- func (s Sql) CreateUniqueIndexStm(indexType string) string
- func (s Sql) DatetimeType() string
- func (s Sql) DefaultOption() string
- func (s Sql) DoubleType() string
- func (s Sql) DropForeignKeyStm() string
- func (s Sql) DropIndexStm() string
- func (s Sql) DropPrimaryKeyStm() string
- func (s Sql) DropTableMigration() string
- func (s Sql) DropTableStm() string
- func (s Sql) FamilyName(f int32) string
- func (s Sql) FloatType() string
- func (s Sql) GetDialect() SqlDialect
- func (s Sql) InsertMigrationVersion() string
- func (s Sql) IntType() string
- func (s Sql) IsLowercase() bool
- func (s Sql) IsMysql() bool
- func (s Sql) IsPostgres() bool
- func (s Sql) IsSqlite() bool
- func (s Sql) IsSqlserver() bool
- func (s Sql) NotNullValue() string
- func (s Sql) NullValue() string
- func (s Sql) PointerType() string
- func (s Sql) PrimaryOption() string
- func (s Sql) RenameTableStm() string
- func (s Sql) RollbackMigrationVersion() string
- func (s Sql) SmallIntType() string
- func (s Sql) TextType() string
- func (s Sql) TinyIntType() string
- func (s Sql) UnspecificType() string
- type SqlDialect
Constants ¶
View Source
const ( MysqlDialect = "mysql" PostgresDialect = "postgres" SqlserverDialect = "sqlserver" SqliteDialect = "sqlite3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sql ¶
type Sql struct {
// contains filtered or unexported fields
}
Sql ...
func (Sql) AlterTableAddColumnAfterStm ¶
AlterTableAddColumnAfterStm ...
func (Sql) AlterTableAddColumnFirstStm ¶
AlterTableAddColumnFirstStm ...
func (Sql) AlterTableDropColumnStm ¶
AlterTableDropColumnStm ...
func (Sql) AlterTableModifyColumnStm ¶
AlterTableModifyColumnStm ...
func (Sql) AlterTableRenameColumnStm ¶
AlterTableRenameColumnStm ...
func (Sql) AlterTableRenameIndexStm ¶
AlterTableRenameIndexStm ...
func (Sql) CreateTableMigration ¶
CreateTableMigration ...
func (Sql) CreateUniqueIndexStm ¶
CreateUniqueIndexStm ...
func (Sql) InsertMigrationVersion ¶
InsertMigrationVersion ...
func (Sql) RollbackMigrationVersion ¶
RollbackMigrationVersion ...
type SqlDialect ¶
type SqlDialect string
Click to show internal directories.
Click to hide internal directories.