Expand description
Bundled database drivers for narwhal.
Each engine (postgres, mysql, sqlite, duckdb, clickhouse,
mssql) lives behind a cargo feature of the same name. Enabling the
all-drivers umbrella turns them all on; the narwhaldb binary
relies on this. Library consumers pick what they need:
narwhal-drivers = { version = "1", default-features = false, features = ["postgres", "sqlite"] }The crate also re-exports registry::DriverRegistry as
DriverRegistry, which replaces the v1.x narwhal-driver-registry
crate.
Re-exports§
pub use registry::DriverRegistry;
Modules§
- registry
- Driver registry shared by every host that needs to address a
narwhal_core::DatabaseDriverby name (the TUI app, the MCP server, the headless CLI). Concrete driver implementations are pulled in by cargo features so a build can ship only the engines it needs.
Functions§
- registry
- Convenience constructor for a registry preloaded with every driver
compiled into this build. Equivalent to
DriverRegistry::with_defaults; kept as a free function so the historicalnarwhal_drivers::Registry::new()call shape has a minimally-disruptive migration target.