refactor(storage_models): changed CustomResult in storage_models to StorageResult (#158)

This commit is contained in:
Abhishek
2022-12-19 13:41:56 +05:30
committed by GitHub
parent 44feaca4df
commit 8d6d41f2eb
18 changed files with 104 additions and 185 deletions

View File

@ -22,9 +22,7 @@ pub struct TypedSql {
}
impl TypedSql {
pub fn to_field_value_pairs(
&self,
) -> crate::CustomResult<Vec<(&str, String)>, errors::DatabaseError> {
pub fn to_field_value_pairs(&self) -> crate::StorageResult<Vec<(&str, String)>> {
Ok(vec![(
"typed_sql",
serde_json::to_string(self)