toRow
toRow(
entity,projection):Record<string,unknown>
Defined in: src/query/selection.ts:384
Lays an entity out as a row of projection — checking it against the schema, when there is one.
Parameters
Section titled “Parameters”entity
Section titled “entity”projection
Section titled “projection”Returns
Section titled “Returns”Record<string, unknown>
Throws
Section titled “Throws”If a named schema’s entity is not tagged with its name, or the entity lacks a selected required column or holds one with a type other than the schema’s — it was not written through this schema, or was patched since.