Skip to main content

Crate use_db_result

Crate use_db_result 

Source
Expand description

§use-db-result

Generic result sets, result pages, page info, cursor positions, total counts, and has-more markers.

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_result::{HasMore, ResultSet, ResultSetMetadata};

let results = ResultSet::new(vec![1, 2, 3], ResultSetMetadata::new(None, HasMore::new(false)));
assert_eq!(results.len(), 3);

Result set and page metadata primitives for RustUse.

Structs§

CursorPosition
A cursor position label.
HasMore
Whether more results are available.
PageInfo
Page metadata.
ResultPage
Generic result page.
ResultSet
Generic result set container.
ResultSetMetadata
Result set metadata.
TotalCount
Total result count metadata.