# Function: sqliteStores()

```ts
function sqliteStores(db, options?): SqliteStores;
```

Defined in: [packages/core/src/storage/sqlite-adapter.ts:82](https://github.com/leifriksheim/minca/blob/main/core/src/storage/sqlite-adapter.ts#L82)

A node's stores in one SQLite database, for a node on a server or a
computer. Opening a store again gives the same data; closing one leaves the
database open, since the others share it: close the connection yourself
when the node is done.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `db` | [`SqliteDatabase`](https://minca.dev/api/core/interfaces/SqliteDatabase.md) | - |
| `options?` | \{ `localKey?`: `CryptoKey` \| `null`; \} | - |
| `options.localKey?` | `CryptoKey` \| `null` | Seals the registry. Without it nothing is sealed. |

## Returns

[`SqliteStores`](https://minca.dev/api/core/type-aliases/SqliteStores.md)
