MCPcopy
hub / github.com/sequelize/sequelize / _getJsonCast

Method _getJsonCast

lib/dialects/abstract/query-generator.js:2537–2548  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2535 }
2536
2537 _getJsonCast(value) {
2538 if (typeof value === 'number') {
2539 return 'double precision';
2540 }
2541 if (value instanceof Date) {
2542 return 'timestamptz';
2543 }
2544 if (typeof value === 'boolean') {
2545 return 'boolean';
2546 }
2547 return;
2548 }
2549
2550 _joinKeyValue(key, value, comparator, prefix) {
2551 if (!key) {

Callers 1

_castKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected