chore: mirror changes from BitBucket

This commit is contained in:
Sanchith Hegde
2022-11-21 18:47:04 +05:30
parent df5e4defd3
commit 2a2febb0f8
76 changed files with 2219 additions and 744 deletions

View File

@ -66,7 +66,7 @@ macro_rules! router_error_error_stack_specific {
#[derive(Debug, thiserror::Error)]
pub enum StorageError {
#[error("DataBaseError: {0}")]
#[error("DatabaseError: {0}")]
DatabaseError(#[from] DatabaseError),
#[error("ValueNotFound: {0}")]
@ -85,6 +85,10 @@ pub enum DatabaseError {
NotFound,
#[error("A unique constraint violation occurred")]
UniqueViolation,
#[error("No fields were provided to be updated")]
NoFieldsToUpdate,
#[error("An error occurred when generating raw SQL query")]
QueryGenerationFailed,
// InsertFailed,
#[error("An unknown error occurred")]
Others,