Remote / foldkit-remote-drizzle

Visible

type · packages/remote-drizzle/src/binding.ts:126

type Visible = (
  principal: unknown,
  self: AnyEntityBinding,
) => SQL | undefined | Effect.Effect<SQL | undefined, RemoteServerError>

The rows of a table a principal may see, as a condition over that table's columns, or an Effect of one for a rule that must ask something first. It is given its own binding, so a rule built before bind can name columns.