(dialect)
| 339 | const dialects = new Set(['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql', 'db2', 'oracle']); |
| 340 | |
| 341 | function now(dialect) { |
| 342 | const d = new Date(); |
| 343 | if (!dialects.has(dialect)) { |
| 344 | d.setMilliseconds(0); |
| 345 | } |
| 346 | return d; |
| 347 | } |
| 348 | exports.now = now; |
| 349 | |
| 350 | // Note: Use the `quoteIdentifier()` and `escape()` methods on the |