Skip to main content

Overview

Description​

This category provides a set of extensions for typed features. Instead of column strings, typed methods take a KeyProxyCallback like user => user.name, so column names are checked by TypeScript.

Where methods also go into JSON columns (exec => exec.details.meta.endTs, see Paths into JSON columns), and with the opt-in strictParams their parameters are checked against the column type.

Methods:​

Types:​

  • KeyProxyCallback: the callback that selects entity properties, and how it maps to SQL keys.
  • Json<T>: marks a JSON column, so typed callbacks go into it at any depth.