Remote / foldkit-remote-drizzle

cursorSelection

function · packages/remote-drizzle/src/cursor.ts:253

function cursorSelection(
  terms: readonly OrderTerm[],
  base?: Readonly<Record<string, AnyColumn | SQL>>,
): Record<string, AnyColumn | SQL>

base and each term's key under an alias of its own, to select beside a row: an expression has no name, and two columns may share one. A key already in base, or in an earlier term, is not selected again. keysOf reads them back, given the same base.