You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
399 B
JavaScript
15 lines
399 B
JavaScript
"use strict";
|
|
|
|
const node = require("../../ast-node");
|
|
|
|
module.exports = function now() {
|
|
// FIXME: Allow selecting statement_timestamp/clock_timestamp instead (as either a separate operation, or an option to this one)
|
|
return function now() {
|
|
return node({
|
|
type: "sqlFunction",
|
|
functionName: "transaction_timestamp", // Equivalent to now(), but more clearly named
|
|
args: []
|
|
});
|
|
};
|
|
};
|