> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Convex local sync: searchable entities, `.search()` filters, and operators.

The Convex plugin syncs data locally. Use `corsair.convex.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Deploy Keys

Path: `convex.db.deployKeys.search`

```ts theme={null}
const rows = await corsair.convex.db.deployKeys.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `number` | equals, gt, gte, lt, lte, in |
| `deploymentName` | `string` | equals, contains, startsWith, endsWith, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `creationTime` | `number` | equals, gt, gte, lt, lte, in |
| `lastUsedTime` | `number` | equals, gt, gte, lt, lte, in |
| `expiresAt` | `number` | equals, gt, gte, lt, lte, in |
| `creator` | `number` | equals, gt, gte, lt, lte, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Deployments

Path: `convex.db.deployments.search`

```ts theme={null}
const rows = await corsair.convex.db.deployments.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `number` | equals, gt, gte, lt, lte, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `createTime` | `number` | equals, gt, gte, lt, lte, in |
| `lastDeployTime` | `number` | equals, gt, gte, lt, lte, in |
| `projectId` | `number` | equals, gt, gte, lt, lte, in |
| `creator` | `number` | equals, gt, gte, lt, lte, in |
| `previewIdentifier` | `string` | equals, contains, startsWith, endsWith, in |
| `region` | `string` | equals, contains, startsWith, endsWith, in |
| `isDefault` | `boolean` | equals |
| `reference` | `string` | equals, contains, startsWith, endsWith, in |
| `dashboardEditConfirmation` | `boolean` | equals |
| `deploymentUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `expiresAt` | `number` | equals, gt, gte, lt, lte, in |
| `class` | `string` | equals, contains, startsWith, endsWith, in |
| `sendLogsToClient` | `boolean` | equals |
| `port` | `number` | equals, gt, gte, lt, lte, in |
| `deviceName` | `string` | equals, contains, startsWith, endsWith, in |
| `isActive` | `boolean` | equals |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Projects

Path: `convex.db.projects.search`

```ts theme={null}
const rows = await corsair.convex.db.projects.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `number` | equals, gt, gte, lt, lte, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `slug` | `string` | equals, contains, startsWith, endsWith, in |
| `teamId` | `number` | equals, gt, gte, lt, lte, in |
| `teamSlug` | `string` | equals, contains, startsWith, endsWith, in |
| `createTime` | `number` | equals, gt, gte, lt, lte, in |
| `prodDeploymentName` | `string` | equals, contains, startsWith, endsWith, in |
| `devDeploymentName` | `string` | equals, contains, startsWith, endsWith, in |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.