MCPcopy
hub / github.com/sequelize/sequelize / MACADDR

Class MACADDR

src/data-types.js:936–943  ·  view source on GitHub ↗

* The MACADDR type stores MAC addresses. Takes 6 bytes * * Only available for Postgres *

Source from the content-addressed store, hash-verified

934 *
935 */
936class MACADDR extends ABSTRACT {
937 validate(value) {
938 if (typeof value !== 'string' || !Validator.isMACAddress(value)) {
939 throw new sequelizeErrors.ValidationError(util.format('%j is not a valid MACADDR', value));
940 }
941 return true;
942 }
943}
944
945/**
946 * The TSVECTOR type stores text search vectors.

Callers 1

data-types.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected