MCPcopy
hub / github.com/sequelize/sequelize / applyParsers

Method applyParsers

src/dialects/sqlite/query.js:355–368  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

353 }
354
355 applyParsers(type, value) {
356 if (type.includes('(')) {
357 // Remove the length part
358 type = type.substr(0, type.indexOf('('));
359 }
360 type = type.replace('UNSIGNED', '').replace('ZEROFILL', '');
361 type = type.trim().toUpperCase();
362 const parse = parserStore.get(type);
363
364 if (value !== null && parse) {
365 return parse(value, { timezone: this.sequelize.options.timezone });
366 }
367 return value;
368 }
369
370 formatError(err, errStack) {
371

Callers 1

_handleQueryResponseMethod · 0.95

Calls 2

getMethod · 0.65
parseFunction · 0.50

Tested by

no test coverage detected