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

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

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

## Uploadcare File

Path: `uploadcare.db.UploadcareFile.search`

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

### Searchable filters

| Field               | Type      | Operators                                  |
| ------------------- | --------- | ------------------------------------------ |
| `entity_id`         | `string`  | equals, contains, startsWith, endsWith, in |
| `uuid`              | `string`  | equals, contains, startsWith, endsWith, in |
| `datetime_uploaded` | `string`  | equals, contains, startsWith, endsWith, in |
| `datetime_stored`   | `string`  | equals, contains, startsWith, endsWith, in |
| `datetime_removed`  | `string`  | equals, contains, startsWith, endsWith, in |
| `is_image`          | `boolean` | equals                                     |
| `is_ready`          | `boolean` | equals                                     |
| `mime_type`         | `string`  | equals, contains, startsWith, endsWith, in |
| `original_filename` | `string`  | equals, contains, startsWith, endsWith, in |
| `original_file_url` | `string`  | equals, contains, startsWith, endsWith, in |
| `size`              | `number`  | equals, gt, gte, lt, lte, in               |
| `url`               | `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).*

***

## Uploadcare Group

Path: `uploadcare.db.UploadcareGroup.search`

```ts theme={null}
const rows = await corsair.uploadcare.db.UploadcareGroup.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 |
| `datetime_created` | `string` | equals, contains, startsWith, endsWith, in |
| `files_count`      | `number` | equals, gt, gte, lt, lte, in               |
| `cdn_url`          | `string` | equals, contains, startsWith, endsWith, in |
| `url`              | `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).*

***
