feat: config view lens

This commit is contained in:
appflowy
2022-08-15 20:07:01 +08:00
parent 0da986553c
commit 0514b005ca
36 changed files with 853 additions and 374 deletions

View File

@ -177,20 +177,20 @@ macro_rules! impl_rev_state_map {
}
}
impl std::convert::From<$target> for RevisionState {
impl std::convert::From<$target> for crate::disk::RevisionState {
fn from(s: $target) -> Self {
match s {
$target::Sync => RevisionState::Sync,
$target::Ack => RevisionState::Ack,
$target::Sync => crate::disk::RevisionState::Sync,
$target::Ack => crate::disk::RevisionState::Ack,
}
}
}
impl std::convert::From<RevisionState> for $target {
fn from(s: RevisionState) -> Self {
impl std::convert::From<crate::disk::RevisionState> for $target {
fn from(s: crate::disk::RevisionState) -> Self {
match s {
RevisionState::Sync => $target::Sync,
RevisionState::Ack => $target::Ack,
crate::disk::RevisionState::Sync => $target::Sync,
crate::disk::RevisionState::Ack => $target::Ack,
}
}
}

View File

@ -43,7 +43,7 @@ table! {
}
table! {
grid_view_table (id) {
grid_view_rev_table (id) {
id -> Integer,
object_id -> Text,
base_rev_id -> BigInt,
@ -136,7 +136,7 @@ allow_tables_to_appear_in_same_query!(
grid_block_index_table,
grid_meta_rev_table,
grid_rev_table,
grid_view_table,
grid_view_rev_table,
kv_table,
rev_snapshot,
rev_table,