MCPcopy Index your code
hub / github.com/sequelize/sequelize / toSql

Method toSql

src/data-types.js:776–778  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

774 this.type = typeof options.type === 'function' ? new options.type() : options.type;
775 }
776 toSql() {
777 return `${this.type.toSql()}[]`;
778 }
779 validate(value) {
780 if (!Array.isArray(value)) {
781 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid array', value));

Callers

nothing calls this directly

Calls 1

toSqlMethod · 0.65

Tested by

no test coverage detected