feat: config grid editor

This commit is contained in:
appflowy
2022-03-04 21:26:32 +08:00
parent 49807a0b57
commit 9125db7ef0
13 changed files with 222 additions and 128 deletions

View File

@ -6,12 +6,10 @@ pub mod kv;
use lib_sqlite::PoolConfig;
pub use lib_sqlite::{ConnectionPool, DBConnection, Database};
pub mod schema;
#[macro_use]
pub mod macros;
#[macro_use]
extern crate diesel;
#[macro_use]
@ -20,11 +18,11 @@ extern crate diesel_derives;
extern crate diesel_migrations;
pub type Error = diesel::result::Error;
pub mod prelude {
pub use diesel::{query_dsl::*, BelongingToDsl, ExpressionMethods, RunQueryDsl};
pub use super::UserDatabaseConnection;
pub use crate::*;
pub use diesel::SqliteConnection;
pub use diesel::{query_dsl::*, BelongingToDsl, ExpressionMethods, RunQueryDsl};
}
embed_migrations!("../flowy-database/migrations/");

View File

@ -21,6 +21,13 @@ table! {
}
}
table! {
kv_table (key) {
key -> Text,
value -> Binary,
}
}
table! {
rev_table (id) {
id -> Integer,
@ -84,6 +91,7 @@ table! {
allow_tables_to_appear_in_same_query!(
app_table,
doc_table,
kv_table,
rev_table,
trash_table,
user_table,