MCPcopy Create free account
hub / github.com/dropbox/godropbox / BoolColumn

Function BoolColumn

database/sqlbuilder/column.go:194–202  ·  view source on GitHub ↗

Representation of TINYINT used as a bool This function will panic if name is not valid

(name string, nullable NullableColumn)

Source from the content-addressed store, hash-verified

192// Representation of TINYINT used as a bool
193// This function will panic if name is not valid
194func BoolColumn(name string, nullable NullableColumn) NonAliasColumn {
195 if !validIdentifierName(name) {
196 panic("Invalid column name in bool column")
197 }
198 bc := &booleanColumn{}
199 bc.name = name
200 bc.nullable = nullable
201 return bc
202}
203
204type aliasColumn struct {
205 baseColumn

Callers

nothing calls this directly

Calls 1

validIdentifierNameFunction · 0.85

Tested by

no test coverage detected