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

# Publora database

> Publora local sync in Corsair: the entities stored in your database, the `.search()` filters each one accepts, and the filter operators.

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

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

## Accounts

Path: `publora.db.accounts.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `platformId` | `string` | equals, contains, startsWith, endsWith, in |
| `username` | `string` | equals, contains, startsWith, endsWith, in |
| `displayName` | `string` | equals, contains, startsWith, endsWith, in |
| `profileImageUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `profileUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `connectionStatus` | `string` | equals, contains, startsWith, endsWith, in |
| `tokenStatus` | `string` | equals, contains, startsWith, endsWith, in |
| `accessTokenExpiresAt` | `string` | equals, contains, startsWith, endsWith, in |
| `tokenExpiresIn` | `string` | equals, contains, startsWith, endsWith, in |
| `lastSuccessfulPost` | `string` | equals, contains, startsWith, endsWith, in |
| `subscriptionType` | `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](https://docs.corsair.dev/concepts/database.md).*

***

## Posts

Path: `publora.db.posts.search`

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

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `postGroupId` | `string` | equals, contains, startsWith, endsWith, in |
| `content` | `string` | equals, contains, startsWith, endsWith, in |
| `status` | `string` | equals, contains, startsWith, endsWith, in |
| `scheduledTime` | `string` | equals, contains, startsWith, endsWith, in |
| `createdAt` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `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](https://docs.corsair.dev/concepts/database.md).*

***


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