table! {
merkle_radix_tree (id) {
id -> Int8,
name -> VarChar,
}
}
table! {
merkle_radix_leaf (id) {
id -> Int8,
tree_id -> Int8,
address -> VarChar,
data -> Blob,
pruned_at -> Nullable<Int8>,
}
}
#[cfg(feature = "sqlite")]
table! {
#[sql_name = "merkle_radix_tree_node"]
sqlite_merkle_radix_tree_node (hash, tree_id) {
hash -> VarChar,
tree_id -> Int8,
leaf_id -> Nullable<Int8>,
children -> Text,
reference -> Int8,
}
}
#[cfg(feature = "postgres")]
table! {
#[sql_name = "merkle_radix_tree_node"]
postgres_merkle_radix_tree_node (hash, tree_id) {
hash -> VarChar,
tree_id -> Int8,
leaf_id -> Nullable<Int8>,
children -> Array<Nullable<VarChar>>,
reference -> Int8,
}
}
table! {
merkle_radix_change_log_addition (id) {
id -> Int8,
tree_id -> Int8,
state_root -> VarChar,
parent_state_root -> Nullable<VarChar>,
addition -> VarChar,
pruned_at -> Nullable<Int8>,
}
}
table! {
merkle_radix_change_log_deletion (id) {
id -> Int8,
tree_id -> Int8,
successor_state_root -> VarChar,
state_root -> VarChar,
deletion -> VarChar,
pruned_at -> Nullable<Int8>,
}
}
#[cfg(all(feature = "sqlite", feature = "postgres"))]
allow_tables_to_appear_in_same_query!(
merkle_radix_tree,
merkle_radix_leaf,
sqlite_merkle_radix_tree_node,
postgres_merkle_radix_tree_node,
);
#[cfg(all(feature = "sqlite", not(feature = "postgres")))]
allow_tables_to_appear_in_same_query!(
merkle_radix_tree,
merkle_radix_leaf,
sqlite_merkle_radix_tree_node,
);
#[cfg(all(not(feature = "sqlite"), feature = "postgres"))]
allow_tables_to_appear_in_same_query!(
merkle_radix_tree,
merkle_radix_leaf,
postgres_merkle_radix_tree_node,
);