> ## 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

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

The Trello plugin syncs data locally. Use `corsair.trello.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>

## Boards

Path: `trello.db.boards.search`

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

### Searchable filters

| Field            | Type      | Operators                                  |
| ---------------- | --------- | ------------------------------------------ |
| `entity_id`      | `string`  | equals, contains, startsWith, endsWith, in |
| `id`             | `string`  | equals, contains, startsWith, endsWith, in |
| `name`           | `string`  | equals, contains, startsWith, endsWith, in |
| `desc`           | `string`  | equals, contains, startsWith, endsWith, in |
| `closed`         | `boolean` | equals                                     |
| `idOrganization` | `string`  | equals, contains, startsWith, endsWith, in |
| `url`            | `string`  | equals, contains, startsWith, endsWith, in |
| `shortUrl`       | `string`  | equals, contains, startsWith, endsWith, in |
| `createdAt`      | `date`    | equals, before, after, between             |

*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).*

***

## Cards

Path: `trello.db.cards.search`

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

### Searchable filters

| Field         | Type      | Operators                                  |
| ------------- | --------- | ------------------------------------------ |
| `entity_id`   | `string`  | equals, contains, startsWith, endsWith, in |
| `id`          | `string`  | equals, contains, startsWith, endsWith, in |
| `name`        | `string`  | equals, contains, startsWith, endsWith, in |
| `desc`        | `string`  | equals, contains, startsWith, endsWith, in |
| `closed`      | `boolean` | equals                                     |
| `idBoard`     | `string`  | equals, contains, startsWith, endsWith, in |
| `idList`      | `string`  | equals, contains, startsWith, endsWith, in |
| `pos`         | `number`  | equals, gt, gte, lt, lte, in               |
| `due`         | `string`  | equals, contains, startsWith, endsWith, in |
| `dueComplete` | `boolean` | equals                                     |
| `url`         | `string`  | equals, contains, startsWith, endsWith, in |
| `shortUrl`    | `string`  | equals, contains, startsWith, endsWith, in |
| `createdAt`   | `date`    | equals, before, after, between             |

*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).*

***

## Labels

Path: `trello.db.labels.search`

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

### Searchable filters

| Field       | Type     | Operators                                  |
| ----------- | -------- | ------------------------------------------ |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id`        | `string` | equals, contains, startsWith, endsWith, in |
| `name`      | `string` | equals, contains, startsWith, endsWith, in |
| `color`     | `string` | equals, contains, startsWith, endsWith, in |
| `idBoard`   | `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).*

***

## Lists

Path: `trello.db.lists.search`

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

### Searchable filters

| Field       | Type      | Operators                                  |
| ----------- | --------- | ------------------------------------------ |
| `entity_id` | `string`  | equals, contains, startsWith, endsWith, in |
| `id`        | `string`  | equals, contains, startsWith, endsWith, in |
| `name`      | `string`  | equals, contains, startsWith, endsWith, in |
| `closed`    | `boolean` | equals                                     |
| `idBoard`   | `string`  | equals, contains, startsWith, endsWith, in |
| `pos`       | `number`  | equals, gt, gte, lt, lte, in               |
| `createdAt` | `date`    | equals, before, after, between             |

*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).*

***

## Members

Path: `trello.db.members.search`

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

### Searchable filters

| Field        | Type     | Operators                                  |
| ------------ | -------- | ------------------------------------------ |
| `entity_id`  | `string` | equals, contains, startsWith, endsWith, in |
| `id`         | `string` | equals, contains, startsWith, endsWith, in |
| `username`   | `string` | equals, contains, startsWith, endsWith, in |
| `fullName`   | `string` | equals, contains, startsWith, endsWith, in |
| `email`      | `string` | equals, contains, startsWith, endsWith, in |
| `avatarUrl`  | `string` | equals, contains, startsWith, endsWith, in |
| `initials`   | `string` | equals, contains, startsWith, endsWith, in |
| `memberType` | `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).*

***
