Representation of VARCHAR/TEXT columns This function will panic if name is not valid
( name string, charset Charset, collation Collation, nullable NullableColumn)
| 116 | // Representation of VARCHAR/TEXT columns |
| 117 | // This function will panic if name is not valid |
| 118 | func 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 | |
| 133 | type dateTimeColumn struct { |
| 134 | baseColumn |