(name string)
| 32 | } |
| 33 | |
| 34 | func (d DialectType) AlterTable(name string) *AlterTableSqlBuilder { |
| 35 | switch d { |
| 36 | case DialectSQLite: |
| 37 | return &AlterTableSqlBuilder{Dialect: DialectSQLite, Name: name} |
| 38 | case DialectMySQL: |
| 39 | return &AlterTableSqlBuilder{Dialect: DialectMySQL, Name: name} |
| 40 | default: |
| 41 | panic(fmt.Sprintf("unexpected dialect: %d", d)) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (d DialectType) CreateUniqueIndex(name, table string, columns ...string) *CreateIndexSqlBuilder { |
| 46 | switch d { |
no outgoing calls