prorm API Reference
    Preparing search index...

    Function operatorToSQL

    • Convert ORM operator to SQL CHECK expression

      Parameters

      • fieldName: string

        The column name

      • operator: CheckOperator

        The ORM operator object

      • dialect: CheckDialect = 'postgres'

        The target SQL dialect (defaults to 'postgres' for backwards compatibility)

      Returns string

      SQL expression string