|
@@ -19,7 +19,7 @@
|
|
//!
|
|
//!
|
|
//! microrm pushes the Rust type system somewhat to provide better ergonomics, so the MSRV is
|
|
//! microrm pushes the Rust type system somewhat to provide better ergonomics, so the MSRV is
|
|
//! currently 1.75. Don't be scared off by the web of traits in the `schema` module --- you should
|
|
//! currently 1.75. Don't be scared off by the web of traits in the `schema` module --- you should
|
|
-//! never need to interact with any of them!
|
|
|
|
|
|
+//! never need to interact with most of them unless you're doing schema reflection.
|
|
//!
|
|
//!
|
|
//! ### Examples
|
|
//! ### Examples
|
|
//! #### KV-store
|
|
//! #### KV-store
|
|
@@ -36,7 +36,7 @@
|
|
//! value: String,
|
|
//! value: String,
|
|
//! }
|
|
//! }
|
|
//!
|
|
//!
|
|
-//! #[derive(Database)]
|
|
|
|
|
|
+//! #[derive(Schema)]
|
|
//! struct KVDB {
|
|
//! struct KVDB {
|
|
//! kvs: microrm::IDMap<KVEntry>,
|
|
//! kvs: microrm::IDMap<KVEntry>,
|
|
//! }
|
|
//! }
|
|
@@ -239,8 +239,8 @@ pub mod cli;
|
|
/// Module prelude with commonly-used traits that shouldn't have overlap with other crates.
|
|
/// Module prelude with commonly-used traits that shouldn't have overlap with other crates.
|
|
pub mod prelude {
|
|
pub mod prelude {
|
|
pub use crate::query::{Insertable, Queryable, RelationInterface};
|
|
pub use crate::query::{Insertable, Queryable, RelationInterface};
|
|
- pub use crate::schema::{relation::Relation, Database, Serializable};
|
|
|
|
- pub use microrm_macros::{Database, Entity, Value};
|
|
|
|
|
|
+ pub use crate::schema::{relation::Relation, Schema, Serializable};
|
|
|
|
+ pub use microrm_macros::{Entity, Schema, Value};
|
|
}
|
|
}
|
|
|
|
|
|
// ----------------------------------------------------------------------
|
|
// ----------------------------------------------------------------------
|