mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 19:25:00 +03:00
Move the server Rust workspace directly under packages/backend. Exclude native and server from that workspace. Move frame-audit to tools/frame-audit as a standalone crate. Isolate packages/backend/native under the root workspace. Upgrade y-octo to 0.4.0 in native-playground and remove the old removal workarounds. Update CI workflows, static gates, and docs for the new paths.
19 lines
477 B
Rust
19 lines
477 B
Rust
//! Error types for `server-db`.
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum DbError {
|
|
#[error("database error: {0}")]
|
|
Sqlx(#[from] sqlx::Error),
|
|
#[error("invalid database configuration: {0}")]
|
|
InvalidConfig(String),
|
|
#[error("database admission semaphore closed")]
|
|
PoolClosed,
|
|
#[error("{message}")]
|
|
SteppingStoneRequired {
|
|
missing_migrations: Vec<String>,
|
|
message: String,
|
|
},
|
|
#[error("schema readiness check failed: {0}")]
|
|
SchemaCheck(String),
|
|
}
|