mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
re-export json-ptr
This commit is contained in:
@@ -157,14 +157,14 @@ fn build_model_struct(
|
|||||||
&self.0
|
&self.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl From<json_ptr::JsonPointer> for #model_name {
|
impl From<patch_db::json_ptr::JsonPointer> for #model_name {
|
||||||
fn from(ptr: json_ptr::JsonPointer) -> Self {
|
fn from(ptr: patch_db::json_ptr::JsonPointer) -> Self {
|
||||||
#model_name(#inner_model::from(ptr))
|
#model_name(#inner_model::from(ptr))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl From<patch_db::Model<#base_name>> for #model_name {
|
impl From<patch_db::Model<#base_name>> for #model_name {
|
||||||
fn from(model: patch_db::Model<#base_name>) -> Self {
|
fn from(model: patch_db::Model<#base_name>) -> Self {
|
||||||
#model_name(#inner_model::from(json_ptr::JsonPointer::from(model)))
|
#model_name(#inner_model::from(patch_db::json_ptr::JsonPointer::from(model)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl From<#inner_model> for #model_name {
|
impl From<#inner_model> for #model_name {
|
||||||
@@ -232,8 +232,8 @@ fn build_model_struct(
|
|||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
impl From<json_ptr::JsonPointer> for #model_name {
|
impl From<patch_db::json_ptr::JsonPointer> for #model_name {
|
||||||
fn from(ptr: json_ptr::JsonPointer) -> Self {
|
fn from(ptr: patch_db::json_ptr::JsonPointer) -> Self {
|
||||||
#model_name(From::from(ptr))
|
#model_name(From::from(ptr))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ pub use patch::Revision;
|
|||||||
pub use patch_db_macro::HasModel;
|
pub use patch_db_macro::HasModel;
|
||||||
pub use store::{PatchDb, Store};
|
pub use store::{PatchDb, Store};
|
||||||
pub use transaction::{Checkpoint, SubTransaction, Transaction};
|
pub use transaction::{Checkpoint, SubTransaction, Transaction};
|
||||||
|
pub use json_ptr;
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
|||||||
Reference in New Issue
Block a user