drizzle-team / drizzle-team/drizzle-orm
[FEATURE]: Read only client
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
### Describe the enhancement you want to request
Allow Clients to be "Read only" to ensure data is not accidentally changed if there is a static database that will not change.
```ts
const db = drizzle({
connection: {
url: process.env.DB_FILE_NAME!,
readOnly: true, // requesting this feature here
},
});
```
optionally, also add this to the studio to avoid accidental changes there too
Contributor guide
Assessment
This issue has not been assessed yet.