MCPcopy
hub / github.com/sequelize/sequelize / getSQLTypeFromJsType

Method getSQLTypeFromJsType

src/dialects/db2/query.js:18–29  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

16 }
17
18 getSQLTypeFromJsType(value) {
19 if (Buffer.isBuffer(value)) {
20 return { ParamType: 'INPUT', DataType: 'BLOB', Data: value };
21 }
22
23 if (typeof value === 'bigint') {
24 // The ibm_db module does not handle bigint, send as a string instead:
25 return value.toString();
26 }
27
28 return value;
29 }
30
31 async _run(connection, sql, parameters) {
32 this.sql = sql;

Callers 2

_runMethod · 0.95
query.test.jsFile · 0.45

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected