docs.rs failed to build beagle_turso_core-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
beagle_turso_core-0.1.3
beagle_turso_core
A synchronous Rust façade over the Turso database engine.
turso's own API is async. beagle_turso_core wraps it behind a plain
blocking Database / Connection pair (via an internal single-threaded
Tokio runtime), so callers don't need to bring their own async runtime —
useful at FFI boundaries such as a Ruby extension.
A Database can be opened two ways:
- Local-only — in-memory or an on-disk file, no network involved.
- Synced — a local file kept in sync with a remote Turso database via
Database::push/Database::pull. Writes commit to the local file immediately as they happen;push()is what propagates them to the remote, andpull()brings remote changes down.
Example
The example below only touches the local, offline path — an in-memory
database — so it needs no network access or credentials. It's also run as
a doctest in src/lib.rs.
use ;
let db = open.unwrap;
let conn = db.connect.unwrap;
conn.execute.unwrap;
conn.execute.unwrap;
let rows = conn.query.unwrap;
assert_eq!;
Public API
Value, Error, Result, OpenOptions, Database, Connection, Row.
Notes
OpenOptions'sDebugimplementation redactsauth_token— credentials are never written to logs.- Pinned to
turso = "=0.8.3"(a pre-1.0 crate); the version is held exact until its API stabilizes. - The synced round-trip test (
tests/sync.rs) needsTURSO_DATABASE_URL/TURSO_AUTH_TOKENand SKIPs when they're absent (e.g. in CI).
License
MIT