Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DateConversionFn

Hierarchy

  • DateConversionFn

Callable

  • __call(date: Date): 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

    • date: Date

      the date to convert

    Returns unknown

Generated using TypeDoc