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

# Ecologi database

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

The Ecologi plugin syncs data locally. Use `corsair.ecologi.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).

## Carbon Offsets

Path: `ecologi.db.carbonOffsets.search`

```ts theme={null}
const rows = await corsair.ecologi.db.carbonOffsets.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 |
| `total` | `number` | equals, gt, gte, lt, lte, in |
| `pending` | `number` | equals, gt, gte, lt, lte, 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).*

***

## Carbon Removals

Path: `ecologi.db.carbonRemovals.search`

```ts theme={null}
const rows = await corsair.ecologi.db.carbonRemovals.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 |
| `total` | `number` | equals, gt, gte, lt, lte, in |
| `pending` | `number` | equals, gt, gte, lt, lte, 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).*

***

## Habitats

Path: `ecologi.db.habitats.search`

```ts theme={null}
const rows = await corsair.ecologi.db.habitats.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 |
| `total` | `number` | equals, gt, gte, lt, lte, in |
| `pending` | `number` | equals, gt, gte, lt, lte, 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).*

***

## Impacts

Path: `ecologi.db.impacts.search`

```ts theme={null}
const rows = await corsair.ecologi.db.impacts.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 |
| `trees` | `number` | equals, gt, gte, lt, lte, in |
| `carbonOffset` | `number` | equals, gt, gte, lt, lte, in |
| `carbonRemoval` | `number` | equals, gt, gte, lt, lte, in |
| `habitatRestoration` | `number` | equals, gt, gte, lt, lte, in |
| `pendingTrees` | `number` | equals, gt, gte, lt, lte, in |
| `pendingCarbonOffset` | `number` | equals, gt, gte, lt, lte, in |
| `pendingCarbonRemoval` | `number` | equals, gt, gte, lt, lte, in |
| `pendingHabitatRestoration` | `number` | equals, gt, gte, lt, lte, 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).*

***

## Trees

Path: `ecologi.db.trees.search`

```ts theme={null}
const rows = await corsair.ecologi.db.trees.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 |
| `total` | `number` | equals, gt, gte, lt, lte, in |
| `pending` | `number` | equals, gt, gte, lt, lte, 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.