Installation¶
Library¶
Add surql as a dependency:
Or, in Cargo.toml:
Feature flags¶
Short overview; the full matrix and recipes live on the Feature flags page.
| Feature | Default | What it adds |
|---|---|---|
client | yes | Async SurrealDB client (tokio, surrealdb 3.x). |
cli | no | surql binary (implies client, orchestration, settings). |
cache | no | In-process MemoryCache backend + CacheManager. |
cache-redis | no | Redis backend for the cache manager (implies cache). |
settings | no | Layered Settings / SettingsBuilder. |
orchestration | no | Multi-database deployment strategies + environment registry. |
watcher | no | Filesystem watcher for schema / migration files. |
[dependencies]
# library-only, no client
oneiriq-surql = { version = "0.2", default-features = false }
# binary + client
oneiriq-surql = { version = "0.2", features = ["cli"] }
CLI¶
Subcommand reference: CLI.
Requirements¶
- Rust 1.90 or newer.
- For the
clientfeature: SurrealDB 3.0 or newer.
What's next¶
- Quick Start -- your first schema and migration.
- Schema Definition -- the full schema DSL reference.
- Feature flags -- picking the right profile.