Remote / foldkit-remote-drizzle

returning

const · packages/remote-drizzle/src/index.ts:322

const returning: {
  (
    binding: AnyEntityBinding & { readonly table: PgTable },
    fields: readonly string[],
  ): Returning<PgColumn>
  (
    binding: AnyEntityBinding & { readonly table: SQLiteTable },
    fields: readonly string[],
  ): Returning<SQLiteColumn>
} & {
  row: (
    binding: AnyEntityBinding,
    id: string,
  ) => Effect.Effect<
    ReadonlyArray<NormalizedPatch>,
    RemoteServerError,
    DrizzleDatabase
  >
}

The returning columns for fields and the normalization of the rows they yield, paired so a mutation cannot select one set of columns and normalize another.