# Read sets

> One `stable` function per `defineReadSet` in `readSets`, so `db.$many(readSet, params)` is a single GET.

- Category: Database primitives
- Module: `read-sets`
- Modes: `managed`
- Docs: https://bettersupabase.com/docs/blocks/read-sets
- Page: https://bettersupabase.com/blocks/read-sets

## Install

```bash
npx better-supabase add read-sets
```

## Configure

Add the block to `better-supabase.config.ts`:

```ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  blocks: {
    // Modes: "managed". The default is "managed".
    "read-sets": { mode: "managed" },
  },
});
```

## Client

The block is SQL only: call its functions from your policies, RPCs and the other modules.
