Skip to content

Feature: Database-Agnostic SQL Helpers for Time-Based Metrics #163

@pawelmarkowski

Description

@pawelmarkowski

Overview

Currently, CasWAF metrics and reporting features rely on specific SQL syntax for timestamp manipulation, which varies significantly between database providers (MySQL, PostgreSQL, MSSQL, and SQLite).

When a user visits the URL: http://localhost:17000/dashboard of the CasWAF instance running on a PostgreSQL database - will see errors:

pq: function unix_timestamp(character varying) does not exist
pq: function unix_timestamp(character varying) does not exist
pq: function date_format(character varying, unknown) does not exist
pq: function unix_timestamp(character varying) does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions