MCPcopy
hub / github.com/sequelize/sequelize / CITEXT

Class CITEXT

src/data-types.js:150–160  ·  view source on GitHub ↗

* An unlimited length case-insensitive text column. * Original case is preserved but acts case-insensitive when comparing values (such as when finding or unique constraints). * Only available in Postgres and SQLite. *

Source from the content-addressed store, hash-verified

148 *
149 */
150class CITEXT extends ABSTRACT {
151 toSql() {
152 return 'CITEXT';
153 }
154 validate(value) {
155 if (typeof value !== 'string') {
156 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid string', value));
157 }
158 return true;
159 }
160}
161
162/**
163 * Base number type which is used to build other types

Callers 1

data-types.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected