(name string, t ColumnType, size OptionalInt)
| 10 | ) |
| 11 | |
| 12 | func (d DialectType) Column(name string, t ColumnType, size OptionalInt) *Column { |
| 13 | switch d { |
| 14 | case DialectSQLite: |
| 15 | return &Column{Dialect: DialectSQLite, Name: name, Type: t, Size: size} |
| 16 | case DialectMySQL: |
| 17 | return &Column{Dialect: DialectMySQL, Name: name, Type: t, Size: size} |
| 18 | default: |
| 19 | panic(fmt.Sprintf("unexpected dialect: %d", d)) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func (d DialectType) Table(name string) *CreateTableSqlBuilder { |
| 24 | switch d { |
no outgoing calls