(name string)
| 21 | } |
| 22 | |
| 23 | func (d DialectType) Table(name string) *CreateTableSqlBuilder { |
| 24 | switch d { |
| 25 | case DialectSQLite: |
| 26 | return &CreateTableSqlBuilder{Dialect: DialectSQLite, Name: name} |
| 27 | case DialectMySQL: |
| 28 | return &CreateTableSqlBuilder{Dialect: DialectMySQL, Name: name} |
| 29 | default: |
| 30 | panic(fmt.Sprintf("unexpected dialect: %d", d)) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func (d DialectType) AlterTable(name string) *AlterTableSqlBuilder { |
| 35 | switch d { |
no outgoing calls