MCPcopy
hub / github.com/sequelize/sequelize / HSTORE

Class HSTORE

src/data-types.js:511–518  ·  view source on GitHub ↗

* A key / value store column. Only available in Postgres.

Source from the content-addressed store, hash-verified

509 * A key / value store column. Only available in Postgres.
510 */
511class HSTORE extends ABSTRACT {
512 validate(value) {
513 if (!_.isPlainObject(value)) {
514 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid hstore', value));
515 }
516 return true;
517 }
518}
519
520/**
521 * A JSON string column. Available in MySQL, Postgres and SQLite

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected