Basics

Function Call

PostgreSQL functions are generated from the list inpostgres-functions-list.ts. The generator inextract.ts produces camelCase helpers for each function, while cast-style entries are exposed as toX helpers.

Basics

Call PostgreSQL functions using the generated helpers.

const query = q
  .select(q.lower(q.c("users.email")))
  .from(q.t("users"))

Cast Helpers

Cast-style functions are exposed as toX helpers.

const query = q
  .select(q.toText(q.c("events.payload")))
  .from(q.t("events"))

Function Index

Complete list of PostgreSQL functions.

Showing 20 of 993

#HelperFunctionArgsFormat
1absABSvalueCALL
2cbrtCBRTvalueCALL
3ceilCEILvalueCALL
4ceilingCEILINGvalueCALL
5degreesDEGREESvalueCALL
6divDIVy, xCALL
7erfERFvalueCALL
8erfcERFCvalueCALL
9expEXPvalueCALL
10factorialFACTORIALvalueCALL
11floorFLOORvalueCALL
12gammaGAMMAvalueCALL
13gcdGCDy, xCALL
14lcmLCMy, xCALL
15lgammaLGAMMAvalueCALL
16lnLNvalueCALL
17logLOGvalueCALL
18logLOGbase, valueCALL
19log10LOG10valueCALL
20minScaleMIN_SCALEvalueCALL

Page 1 of 50