Expand description
Native DB is a Rust library that provides a simple, fast, and embedded database solution, focusing on maintaining coherence between Rust types and stored data with minimal boilerplate. It supports multiple indexes, real-time watch with filters, model migration, hot snapshot, and more.
See README.md for more information.
Re-exports§
pub use db_type::InnerKeyValue;
pub use db_type::Input;
Modules§
- db_type
- transaction
- All database interactions here,
r_transaction
,rw_transaction
andquery
. - watch
- Watch data in real-time.
Structs§
- Database
- The database instance. Allows you to create rw_transaction and r_transaction, watch queries, and unwatch etc.
- Database
Builder - Builder that allows you to create a
Database
instance viacreate
oropen
etc. and define models. - Database
Model
Functions§
Attribute Macros§
- native_
db - Macro which link
native_model
to the Native DB. SeeDatabaseBuilder.define
for more information.
Derive Macros§
- KeyAttributes
- Macro which link
native_model
to the Native DB. SeeDatabaseBuilder.define
for more information.