UNPKG

333 BJavaScriptView Raw
1// FunctionHelper
2// -------
3function FunctionHelper(client) {
4 this.client = client;
5}
6
7FunctionHelper.prototype.now = function(precision) {
8 if (typeof precision === 'number') {
9 return this.client.raw(`CURRENT_TIMESTAMP(${precision})`);
10 }
11 return this.client.raw('CURRENT_TIMESTAMP');
12};
13
14module.exports = FunctionHelper;