mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
config user db and user session
This commit is contained in:
parent
13e52ae350
commit
b9d7902acb
33 changed files with 255 additions and 122 deletions
22
rust-lib/flowy-sqlite/src/errors.rs
Normal file
22
rust-lib/flowy-sqlite/src/errors.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
use error_chain::{
|
||||
error_chain,
|
||||
error_chain_processing,
|
||||
impl_error_chain_kind,
|
||||
impl_error_chain_processed,
|
||||
impl_extract_backtrace,
|
||||
};
|
||||
|
||||
error_chain! {
|
||||
errors {
|
||||
UnknownMigrationExists(v: String) {
|
||||
display("unknown migration version: '{}'", v),
|
||||
}
|
||||
}
|
||||
foreign_links {
|
||||
R2D2(::r2d2::Error);
|
||||
Migrations(::diesel_migrations::RunMigrationsError);
|
||||
Diesel(::diesel::result::Error);
|
||||
Connection(::diesel::ConnectionError);
|
||||
Io(::std::io::Error);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue