Skip to content
Commit Detail

Commit 4ae0e11

Author
Kenton Varda <kenton@cloudflare.com> 2024-09-06 13:05:26 -0500
Parents
fbf8de8
Tree
a76e8e3
Don't make storage.sql optional; have methods throw instead.

Having `storage.sql` be optional is potentially annoying for two reasons:
- TypeScript will force people to check if it's present, even though apps that have configured it should be able to expect it's always present.
- We'd like to provide a more detailed error message telling people how to configure SQL.

So, this commit changes things so `storage.sql` is always present, but its methods will throw exceptions if the DO isn't SQLite-backed.

Files changed

4 files changed~4 modified