swc/crates/swc_bundler/tests/.cache/untrusted/dabadff7db43529f8c1c4ecbb76a0ef74e4a65f7.ts
2021-11-09 20:42:49 +09:00

18 lines
425 B
TypeScript

// Loaded from https://raw.githubusercontent.com/denjucks/dex/master/lib/functionhelper.js
// FunctionHelper
// -------
function FunctionHelper(client) {
this.client = client;
}
FunctionHelper.prototype.now = function (precision) {
if (typeof precision === 'number') {
return this.client.raw(`CURRENT_TIMESTAMP(${precision})`);
}
return this.client.raw('CURRENT_TIMESTAMP');
};
export default FunctionHelper;