Proto DataStore
Store typed structured data.
Proto DataStore
Proto DataStore stores strongly-typed structured objects instead of loose key-value pairs. You define a schema and DataStore stores one typed object per file.
It is ideal when your settings form a coherent model.
Why Typed Data
Preferences DataStore is untyped: a typo in a key, or reading the wrong type, fails only at runtime. Proto DataStore gives you compile-time type safety for the whole settings object.
- No string keys to mistype
- Default values defined in the schema
- Refactor-friendly fields