# SYNC_READ_ONLY

<!-- Generated by docs/modules/diagnostics from the package catalogs. Write a guide in docs/diagnostics/<CODE>.md instead of editing this file. -->

The definition has `write: false`, so the browser cannot insert, update, or delete rows. The actions of the definition still run. An action of another definition that writes it with `sync(name)` is refused with this code. A `write` function that returns `false` gives `SYNC_FORBIDDEN`.

## Source

`SYNC_READ_ONLY` belongs to the `sync` package. Its catalog entry is in [`src/errors.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/errors.ts#L59). It is raised in [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L739), [`src/handler.ts`](https://github.com/vite-hub/vitehub/blob/main/packages/sync/src/handler.ts#L763).

See [all Sync diagnostics](https://vitehub.dev/docs/sync/diagnostics).

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/sync.md)
- [Get started](https://vitehub.dev/raw/docs/sync/get-started.md)
- [Server API](https://vitehub.dev/raw/docs/sync/server-api.md)
- [Limits and errors](https://vitehub.dev/raw/docs/sync/limits-and-errors.md)
- [Vue](https://vitehub.dev/raw/docs/sync/vue.md)

Next: [SYNC_TOO_MANY_MUTATIONS](https://vitehub.dev/raw/docs/sync/diagnostics/sync_too_many_mutations.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
