# LocalDataPatch (@salmonui/data-grid/engine)

> The LocalDataPatch interface of @salmonui/data-grid/engine.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/LocalDataPatch

```ts
import type { LocalDataPatch } from '@salmonui/data-grid/engine';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
interface LocalDataPatch<Row> {
    readonly append?: readonly Row[];
    readonly upsert?: readonly Row[];
    readonly remove?: readonly RowId[];
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `append` | `readonly append?: readonly Row[];` | optional |  |
| `upsert` | `readonly upsert?: readonly Row[];` | optional | Replaces rows with a matching id; unknown ids are appended. |
| `remove` | `readonly remove?: readonly RowId[];` | optional |  |
