Skip to main content

Crate rango_store

Crate rango_store 

Source
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::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
Reader over a slice of values; the cursor advances as cells are read.
Column
A single column: name plus affinity kind.
Gather
Writer that captures a single value.
Row
One fetched row, cells aligned with the query’s columns.
Slots
Writer that collects every written value in order.

Enums§

ColumnKind
How a column’s cells map to Values when read back.
StoreError
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.

Type Aliases§

BoxFuture
A boxed, Send, 'a-bounded future.
Rows
A batch of fetched rows.