Expand description
§use-db-index
Index references, kinds, indexed columns, ordering, metadata, and uniqueness.
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_index::{IndexColumn, IndexOrder};
use use_db_name::ColumnName;
let column = IndexColumn::new(ColumnName::new("id").expect("valid column"), IndexOrder::Ascending);
assert_eq!(column.order(), IndexOrder::Ascending);Index metadata primitives for RustUse.
Structs§
- Index
Column - An indexed column.
- Index
Metadata - Index metadata.
- Index
Ref - Index reference metadata.
Enums§
- Index
Kind - Broad index kind.
- Index
Order - Index column sort order.
- Index
Uniqueness - Index uniqueness metadata.