mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: config grid editor
This commit is contained in:
@ -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/");
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user