MCPcopy
hub / github.com/writefreely/writefreely / Column

Method Column

db/dialect.go:12–21  ·  view source on GitHub ↗
(name string, t ColumnType, size OptionalInt)

Source from the content-addressed store, hash-verified

10)
11
12func (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
23func (d DialectType) Table(name string) *CreateTableSqlBuilder {
24 switch d {

Callers 7

oauthInvitesFunction · 0.45
oauthAttachFunction · 0.45
oauthFunction · 0.45
oauthSlackFunction · 0.45
TestDialect_ColumnFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestDialect_ColumnFunction · 0.36