Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ObjectConversionFn

Hierarchy

  • ObjectConversionFn

Callable

  • __call(obj: object): unknown
  • A function to be called to convert dates to their SQL equivalent. If this function returns a normal value, that value will be escaped according to usual rules. Meaning, e.g., that you can return a string, and that string will be appropriately escaped.

    However, if you return an object with toPostgres and rawType attributes, those attributes will be respected in the usual way.

    Parameters

    • obj: object

      the object to convert to sql

    Returns unknown

Generated using TypeDoc