MCPcopy
hub / github.com/sequelize/sequelize / dateLiteral

Function dateLiteral

test/integration/sequelize/query.test.js:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22const dateLiteral = str => {
23 if (dialect === 'oracle') {
24 return `to_date('${str}','YYYY-MM-DD HH24:MI:SS')`;
25 }
26 return `'${str}'`;
27};
28
29describe(Support.getTestDialectTeaser('Sequelize'), () => {
30 describe('query', () => {

Callers 1

query.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected