MCPcopy
hub / github.com/sequelize/sequelize / escape

Method escape

lib/dialects/db2/data-types.js:70–72  ·  view source on GitHub ↗
(blob)

Source from the content-addressed store, hash-verified

68 return 'BLOB'; // 1MB
69 }
70 escape(blob) {
71 return `BLOB('${ blob.toString().replace(/'/g, "''") }')`;
72 }
73 _stringify(value) {
74 if (Buffer.isBuffer(value)) {
75 return `BLOB('${ value.toString().replace(/'/g, "''") }')`;

Callers 15

createDatabaseQueryMethod · 0.45
createTableQueryMethod · 0.45
describeTableQueryMethod · 0.45
handleSequelizeMethodMethod · 0.45
deleteQueryMethod · 0.45
addLimitAndOffsetMethod · 0.45
attributeToSQLMethod · 0.45
pgEscapeAndQuoteMethod · 0.45
pgEnumMethod · 0.45
pgEnumAddMethod · 0.45
_stringifyMethod · 0.45
_stringifyMethod · 0.45

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected