Expand description
Typed, transaction-safe storage for Rango over SQLite and PostgreSQL.
The Store trait is the database face: typed Values in, typed Rows
out. Transactions come from Store::deal and Store::settle. A
Schema describes a table; the spec module defines its queries and
field rules. SQLite is the default backend; enable the postgres feature
for PostgreSQL.
Re-exports§
pub use spec::Action;pub use spec::Check;pub use spec::Field;pub use spec::Filter;pub use spec::Key;pub use spec::Link;pub use spec::Mass;pub use spec::Name;pub use spec::Only;pub use spec::Op;pub use spec::Order;pub use spec::Page;pub use spec::Pick;pub use spec::Query;pub use spec::Rule;pub use spec::Run;pub use spec::Schema;pub use spec::Sort;pub use spec::Table;pub use spec::Tree;
Modules§
- spec
- Query and schema specification types shared by all backends.
- sqlite
- SQLite backend, enabled by default.
Structs§
- Cells
Readerover a slice of values; the cursor advances as cells are read.- Column
- A single column: name plus affinity kind.
- Gather
Writerthat captures a single value.- Row
- One fetched row, cells aligned with the query’s columns.
- Slots
Writerthat collects every written value in order.
Enums§
- Column
Kind - How a column’s cells map to
Values when read back. - Store
Error - Errors surfaced by the store, backends, and value conversion.
- Value
- A single typed database value.
- Widget
- UI hint for how a field is rendered.
Traits§
- Reader
- Source of typed cell values during deserialization.
- Show
- Human presentation of a stored type: widget, parsing, and text.
- Storable
- A type that can be stored in a single column.
- Store
- A database backend: SQL and typed schema operations over a connection.
- Writer
- Sink for typed cell values during serialization.