refactor(db): gate postgres operations by backend

Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh
2026-08-10 15:29:08 -04:00
committed by Brother Darryl
parent 8f29ecbdb0
commit bb3c39049d
2 changed files with 361 additions and 244 deletions
+4
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,
+357 -244
View File
File diff suppressed because it is too large Load Diff