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

Method getSQLTypeFromJsType

lib/dialects/db2/query.js:16–23  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

14 }
15
16 getSQLTypeFromJsType(value) {
17 const param = { ParamType: 'INPUT', Data: value };
18 if (Buffer.isBuffer(value)) {
19 param.DataType = 'BLOB';
20 return param;
21 }
22 return value;
23 }
24
25 async _run(connection, sql, parameters) {
26 this.sql = sql;

Callers 2

_runMethod · 0.95
query.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected