Skip to content
  • Brad Lhotsky's avatar
    Add a few more MySQL macros: · a8ac2150
    Brad Lhotsky authored and Daniel Lee's avatar Daniel Lee committed
    * $__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)
    a8ac2150
Loading