mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
refactor(db): gate postgres operations by backend
Signed-off-by: npub1z3hmzc9ryehxzedl5wzlvpyvja0d483peaja5zt6pd0209f9x2jspe2dxh <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
This commit is contained in:
parent
8f29ecbdb0
commit
bb3c39049d
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user