Files
AFFiNE/packages/backend/server-db/src/error.rs
T
DarkSky b375374c7f refactor(server): move server crates under packages/backend and upgrade y-octo to 0.4.0
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.
2026-11-23 15:12:26 +09:00

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),
}