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

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

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

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

## Companies

Path: `akta.db.companies.search`

```ts theme={null}
const rows = await corsair.akta.db.companies.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 |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `website` | `string` | equals, contains, startsWith, endsWith, in |
| `productCategory` | `string` | equals, contains, startsWith, endsWith, in |
| `parentCompanyUuid` | `string` | equals, contains, startsWith, endsWith, in |
| `foundedYear` | `number` | equals, gt, gte, lt, lte, in |
| `headcountRange` | `string` | equals, contains, startsWith, endsWith, in |
| `descriptionShort` | `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).*

***

## News Articles

Path: `akta.db.newsArticles.search`

```ts theme={null}
const rows = await corsair.akta.db.newsArticles.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 |
| `title` | `string` | equals, contains, startsWith, endsWith, in |
| `url` | `string` | equals, contains, startsWith, endsWith, in |
| `publisher` | `string` | equals, contains, startsWith, endsWith, in |
| `publishedDate` | `string` | equals, contains, startsWith, endsWith, in |
| `sentiment` | `string` | equals, contains, startsWith, endsWith, in |
| `aiSummary` | `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.