MCPcopy Index your code
hub / github.com/dropbox/godropbox / StrColumn

Function StrColumn

database/sqlbuilder/column.go:118–131  ·  view source on GitHub ↗

Representation of VARCHAR/TEXT columns This function will panic if name is not valid

(
	name string,
	charset Charset,
	collation Collation,
	nullable NullableColumn)

Source from the content-addressed store, hash-verified

116// Representation of VARCHAR/TEXT columns
117// This function will panic if name is not valid
118func StrColumn(
119 name string,
120 charset Charset,
121 collation Collation,
122 nullable NullableColumn) NonAliasColumn {
123
124 if !validIdentifierName(name) {
125 panic("Invalid column name in str column")
126 }
127 sc := &stringColumn{charset: charset, collation: collation}
128 sc.name = name
129 sc.nullable = nullable
130 return sc
131}
132
133type dateTimeColumn struct {
134 baseColumn

Callers 1

ExampleFunction · 0.85

Calls 1

validIdentifierNameFunction · 0.85

Tested by 1

ExampleFunction · 0.68