MCPcopy
hub / github.com/writefreely/writefreely / AlterTable

Method AlterTable

db/dialect.go:34–43  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

32}
33
34func (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
45func (d DialectType) CreateUniqueIndex(name, table string, columns ...string) *CreateIndexSqlBuilder {
46 switch d {

Callers 4

oauthInvitesFunction · 0.80
oauthAttachFunction · 0.80
oauthSlackFunction · 0.80

Calls

no outgoing calls

Tested by 1