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

@faasjs/pg / SqlExpression

Type Alias: SqlExpression

SqlExpression = object

A parameterized SQL expression created by sql.

Expressions can be used as values in QueryBuilder.update. Static template text is treated as trusted application SQL, identifiers should be inserted with sql.ref(), and every other interpolation is bound as a query parameter.

Properties

[SQL_EXPRESSION]

readonly [SQL_EXPRESSION]: true

params

readonly params: readonly unknown[]

text

readonly text: string