Skip to main content

Crate use_db_row

Crate use_db_row 

Source
Expand description

§use-db-row

Row identifiers, row numbers, row counts, affected-row counts, and row status.

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_row::{RowCount, RowId};

let id = RowId::new("row-1").expect("valid row id");
let count = RowCount::new(10);

assert_eq!(id.as_str(), "row-1");
assert_eq!(count.value(), 10);

Row metadata primitives for RustUse.

Structs§

AffectedRows
A count of affected rows.
RowCount
A row count.
RowId
A row identifier label.
RowNumber
A one-based row number.

Enums§

RowError
Error returned by row primitives.
RowStatus
Broad row status.