CURRENT_ TIMESTAMP
Represents the SQL CURRENT_TIMESTAMP function.
This property can be used in queries to insert or compare with the current date and time. When used, it resolves to a string literal CURRENT_TIMESTAMP in the generated SQL, which SQLite interprets as the current UTC date and time.
The format is YYYY-MM-DD HH:MM:SS.
Example:
Employees.quickInsert {
it.lastModified.bind(CURRENT_TIMESTAMP)
}Content copied to clipboard
Author
MOHAMMAD AZIM ANSARI