Remote / foldkit-remote-drizzle

Returning

interface · packages/remote-drizzle/src/index.ts:316

interface Returning<Column extends AnyColumn = AnyColumn> {
  readonly columns: Record<string, Column>
  readonly patches: (
    rows: ReadonlyArray<Record<string, unknown>>,
  ) => ReadonlyArray<NormalizedPatch>
}

The returning columns for fields and the normalization of the rows they yield. columns are the table's own dialect's, so Drizzle's returning takes them as they are.

Members

Returning.columns

property · packages/remote-drizzle/src/index.ts:317

readonly columns: Record<string, Column>

Returning.patches

property · packages/remote-drizzle/src/index.ts:318

readonly patches: (
  rows: ReadonlyArray<Record<string, unknown>>,
) => ReadonlyArray<NormalizedPatch>