mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
18 lines
425 B
TypeScript
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;
|