FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/pg / WhereCondition

Type Alias: WhereCondition<T>

WhereCondition<T> = { column: ColumnName<T> | string; kind: "column"; operator: Operator; type: "AND" | "OR"; value: any; } | { kind: "raw"; params: any[]; sql: string; type: "AND" | "OR"; }

Describes a single WHERE clause condition, either a column-based comparison or a raw SQL fragment.

Type Parameters

T

T extends string