use-db-core 0.1.0

Shared primitive database vocabulary for RustUse
Documentation
  • Coverage
  • 90.57%
    48 out of 53 items documented1 out of 26 items with examples
  • Size
  • Source code size: 10.82 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-database
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-db-core

Shared engine-neutral database enums, labels, errors, and marker types.

This crate is part of the use-database facade workspace. It provides small, engine-neutral vocabulary types and metadata containers. It does not connect to databases, execute queries, run migrations, parse SQL, or model engine-specific behavior.

Example

use use_db_core::{DatabaseEngine, DatabaseKind};

let engine = DatabaseEngine::new("postgres").expect("valid engine label");
assert_eq!(engine.as_str(), "postgres");
assert_eq!(DatabaseKind::Relational.as_str(), "relational");