Registry / config / dsn
library1.2.1rscratesunverified

DSN (Data Source Name) parser for database connection strings.

# Cargo.toml [dependencies] dsn = "1.2.1"
INSTALL
IMPORT
SIG · DSN
D
dsn
configrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dsn
use dsn::Dsn;

Parse a DSN string into its components.

use dsn::Dsn; let dsn = Dsn::parse("postgres://user:pass@localhost/db").unwrap(); assert_eq!(dsn.scheme, "postgres"); assert_eq!(dsn.host, "localhost");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Resources
dsn — cargo add dsn · libregistry