persister-durable-object-sql-storage
The persister-durable-object-sql-storage
module of the TinyBase project lets you save and load Store
data to and from Cloudflare Durable Object SQLite storage (in an appropriate environment).
Cloudflare's SQLite storage backend for Durable Objects offers significantly better pricing compared to the key-value storage backend. The SQLite storage backend is Cloudflare's recommended storage option for new Durable Object namespaces.
Important: Before using this persister, you must configure your Durable Object class to use SQLite storage by adding a migration to your wrangler.toml
or wrangler.json
configuration file. Use new_sqlite_classes
in your migration configuration to enable SQLite storage for your Durable Object class.
See Cloudflare's documentation for more details.
See also
- Cloudflare Durable Objects guide
- Persistence guides
Since
v6.3.0