swc/crates/swc_bundler/tests/.cache/untrusted/dabadff7db43529f8c1c4ecbb76a0ef74e4a65f7.ts

18 lines
425 B
TypeScript
Raw Normal View History

// 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;