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

Method applyParsers

lib/dialects/sqlite/query.js:335–348  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

333 }
334
335 applyParsers(type, value) {
336 if (type.includes('(')) {
337 // Remove the length part
338 type = type.substr(0, type.indexOf('('));
339 }
340 type = type.replace('UNSIGNED', '').replace('ZEROFILL', '');
341 type = type.trim().toUpperCase();
342 const parse = parserStore.get(type);
343
344 if (value !== null && parse) {
345 return parse(value, { timezone: this.sequelize.options.timezone });
346 }
347 return value;
348 }
349
350 formatError(err, errStack) {
351

Callers 1

_handleQueryResponseMethod · 0.95

Calls 2

getMethod · 0.65
parseFunction · 0.50

Tested by

no test coverage detected