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

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

The Google calendar plugin syncs data locally. Use `corsair.googlecalendar.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>

## Calendars

Path: `googlecalendar.db.calendars.search`

```ts theme={null}
const rows = await corsair.googlecalendar.db.calendars.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 |
| `summary`     | `string` | equals, contains, startsWith, endsWith, in |
| `description` | `string` | equals, contains, startsWith, endsWith, in |
| `location`    | `string` | equals, contains, startsWith, endsWith, in |
| `timeZone`    | `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).*

***

## Events

Path: `googlecalendar.db.events.search`

```ts theme={null}
const rows = await corsair.googlecalendar.db.events.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 |
| `htmlLink`                | `string`  | equals, contains, startsWith, endsWith, in |
| `created`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `updated`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `summary`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `description`             | `string`  | equals, contains, startsWith, endsWith, in |
| `location`                | `string`  | equals, contains, startsWith, endsWith, in |
| `colorId`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `endTimeUnspecified`      | `boolean` | equals                                     |
| `recurringEventId`        | `string`  | equals, contains, startsWith, endsWith, in |
| `iCalUID`                 | `string`  | equals, contains, startsWith, endsWith, in |
| `sequence`                | `number`  | equals, gt, gte, lt, lte, in               |
| `attendeesOmitted`        | `boolean` | equals                                     |
| `hangoutLink`             | `string`  | equals, contains, startsWith, endsWith, in |
| `anyoneCanAddSelf`        | `boolean` | equals                                     |
| `guestsCanInviteOthers`   | `boolean` | equals                                     |
| `guestsCanModify`         | `boolean` | equals                                     |
| `guestsCanSeeOtherGuests` | `boolean` | equals                                     |
| `privateCopy`             | `boolean` | equals                                     |
| `locked`                  | `boolean` | equals                                     |
| `calendarId`              | `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).*

***
