Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/writefreely/writefreely
/ SetPrimaryKey
Method
SetPrimaryKey
db/create.go:142–145 ·
view source on GitHub ↗
(pk bool)
Source
from the content-addressed store, hash-verified
140
}
141
142
func
(c *Column) SetPrimaryKey(pk bool) *Column {
143
c.PrimaryKey = pk
144
return
c
145
}
146
147
func
(c *Column) SetDefault(value string) *Column {
148
c.Default = OptionalString{Set: true, Value: value}
Callers
1
TestCreateTableSqlBuilder_ToSQL
Function · 0.80
Calls
no outgoing calls
Tested by
1
TestCreateTableSqlBuilder_ToSQL
Function · 0.64