use-document-store 0.1.0

Document-store modeling primitives for RustUse
Documentation
  • Coverage
  • 65.63%
    42 out of 64 items documented1 out of 42 items with examples
  • Size
  • Source code size: 13.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-nosql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-document-store

Document-store modeling primitives for RustUse.

Experimental

use-document-store is experimental while use-nosql remains below 0.3.0.

Example

use use_document_store::{CollectionName, DocumentId, PatchOperation, PatchSet};

let collection = CollectionName::new("customers");
let document_id = DocumentId::new("customer_123");
let patch = PatchSet::new(vec![PatchOperation::set("profile.display_name", "Ada")]);

assert_eq!(collection.as_str(), "customers");
assert_eq!(document_id.to_string(), "customer_123");
assert_eq!(patch.operations()[0].path(), "profile.display_name");

Scope

  • Collection, document, field, revision, version, and metadata labels.
  • Vendor-neutral patch operation containers.
  • String-backed values without a required JSON dependency.

Non-goals

  • Document database clients.
  • ORM behavior.
  • Query execution or persistence.
  • Vendor-specific patch syntax.

License

Licensed under either Apache-2.0 or MIT.