(dialect)
| 326 | const dialects = new Set(['mariadb', 'mysql', 'postgres', 'sqlite', 'mssql', 'db2']); |
| 327 | |
| 328 | function now(dialect) { |
| 329 | const d = new Date(); |
| 330 | if (!dialects.has(dialect)) { |
| 331 | d.setMilliseconds(0); |
| 332 | } |
| 333 | return d; |
| 334 | } |
| 335 | exports.now = now; |
| 336 | |
| 337 | // Note: Use the `quoteIdentifier()` and `escape()` methods on the |