refactor(db): gate postgres operations by backend

Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh
2026-08-01 10:30:35 -04:00
committed by Brother Darryl
parent 94e60f7b9b
commit d3cfe480d6
2 changed files with 361 additions and 244 deletions

View File

@@ -13,6 +13,10 @@ pub enum DbError {
#[error("migration error: {0}")]
Migrate(#[from] sqlx::migrate::MigrateError),
/// Operation is unsupported by the selected database backend.
#[error("unsupported database backend operation: {0}")]
UnsupportedBackend(&'static str),
/// Attempted to store an AUTH event (kind 22242), which is forbidden.
#[error("AUTH events (kind 22242) must not be stored")]
AuthEventRejected,

File diff suppressed because it is too large Load Diff