Logo
Explore Help
Register Sign In
yujunjun/knex
1
0
Fork 0
You've already forked knex
mirror of https://github.com/knex/knex.git synced 2025-10-12 00:19:46 +00:00
Code Issues Packages Projects Releases Wiki Activity
knex/lib/functionhelper.js

13 lines
228 B
JavaScript
Raw Normal View History

Fixed several jshint warnings. Added strict mode
2014-09-01 17:18:45 +02:00
'use strict';
Added a function helper collection To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
2014-07-03 11:59:29 +02:00
// FunctionHelper
// -------
Fixing the overall class dependency approach, lots of internal cleanup, WIP
2015-04-19 16:31:52 -04:00
function FunctionHelper(client) {
this.client = client
}
Added a function helper collection To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
2014-07-03 11:59:29 +02:00
Fixing the overall class dependency approach, lots of internal cleanup, WIP
2015-04-19 16:31:52 -04:00
FunctionHelper.prototype.now = function() {
return this.client.raw('CURRENT_TIMESTAMP')
}
Added a function helper collection To make it possible for individual dialects to provide their own variant of common SQL-functions like NOW()
2014-07-03 11:59:29 +02:00
Fixing the overall class dependency approach, lots of internal cleanup, WIP
2015-04-19 16:31:52 -04:00
module.exports = FunctionHelper
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 283ms Template: 31ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API