Remote / foldkit-remote-drizzle

collatedColumn

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

function collatedColumn(
  column: AnyColumn,
  collation: Collation | undefined,
): Option.Option<{
  readonly key: SQL
  readonly value: (value: unknown) => unknown
}>

The column under the term's collation, and a cursor value made comparable to it; none when the column compares as it is (no collation, or binary on a Postgres column that is not text, a uuid say, which takes no collation and orders by bytes already). Folding ASCII on Postgres lowers both sides; every other collation is said on the column alone, which SQL applies to the comparison.