use-db-query 0.1.0

Primitive database query vocabulary for RustUse
Documentation
  • Coverage
  • 94.23%
    49 out of 52 items documented1 out of 32 items with examples
  • Size
  • Source code size: 10.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.27 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s 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-query

Query labels, kinds, modes, timeout, pagination, cursor, sorting, filter, and projection vocabulary.

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_query::{PageRequest, SortDirection};

let page = PageRequest::new(1, 50);
assert_eq!(page.page(), 1);
assert_eq!(SortDirection::Ascending.as_str(), "ascending");