annotations.editor.html
1.91 KB
-
Add a few more MySQL macros: · a8ac2150
* $__timeFrom() -> Returns the dashboard 'from' suitable for use querying against a MySQL TIMESTAMP field. * $__timeTo() -> Returns the dashboard 'to' suitable for use querying against a MySQL TIMESTAMP field. * $__unixEpochFiler(column) -> If you store timestamps as UNIX epoch's, this builds: column > 'from' AND column < 'to' * $__unixEpochFrom() -> Returns the dashboard 'from' suitable for use querying against a MySQL integer field (UNIX epochs) * $__unixEpochTo() -> Returns the dashboard 'to' suitable for use querying against a MySQL integer field (UNIX epochs)
Brad Lhotsky committed