Add a few more MySQL macros:
* $__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)
Showing
Please
register
or
sign in
to comment