mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 19:44:21 +01:00
This PR makes all JS db packages to have uniform interface: `new Database(...)` constructor with explicit `connect()` and `close()` methods. Also, this PR adds docstrings in the code and properly support few better-sqlite options (readonly, fileMustExist, timeout) Closes #3334
About
This package is the Turso embedded database common JS library which is shared between final builds for Node and Browser.
Do not use this package directly - instead you must use @tursodatabase/database or @tursodatabase/database-browser.
⚠️ Warning: This software is ALPHA, only use for development, testing, and experimentation. We are working to make it production ready, but do not use it for critical data right now.