Remote / foldkit-remote-drizzle
reader
function · packages/remote-drizzle/src/index.ts:256
function reader<E, R = never, P = unknown>(
binding: AnyEntityBinding,
run: (
query: SourceQuery,
) => Effect.Effect<ReadonlyArray<Record<string, unknown>>, E, R>,
): (
context: EntitySourceContext<P>,
) => Effect.Effect<ReadonlyArray<EntityRecord>, E, R>A pruned reader backed by an injected executor. Use it when the database is not an Effect service, or to test the projection without one.
Field authorization still holds: only context.fields (already intersected
with the principal's allowed fields by RemoteServer) become columns.