1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! 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:
//!
//! ```toml
//! 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.
pub use DriverRegistry;
/// 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
/// historical `narwhal_drivers::Registry::new()` call shape
/// has a minimally-disruptive migration target.