fn delete(&self, type_: &[u8], id: &[u8]) -> Result<(), WalletStorageError> {
        let pool = self.pool.clone();
        let conn = pool.get().unwrap();
        let query_qualifier = get_wallet_strategy_qualifier();
        let row_count = match query_qualifier {
            Some(_) => conn.execute(
                "DELETE FROM items where type = $1 AND name = $2 AND wallet_id = $3",
                &[&type_.to_vec(), &id.to_vec(), &self.wallet_id],
            )?,
            None => conn.execute(
                "DELETE FROM items where type = $1 AND name = $2",
                &[&type_.to_vec(), &id.to_vec()],
            )?
        };
        if row_count == 1 {
            Ok(())
        } else {
            Err(WalletStorageError::ItemNotFound)
        }
    }
///
/// deletes value and tags into storage.
/// Returns Result with () on success or
/// Result with WalletStorageError in case of failure.
///
///
/// # Arguments
///
///  * `type_` - type of the item in storage
///  * `id` - id of the item in storage
///
/// # Returns
///
/// Result that can be either:
///
///  * `()`
///  * `WalletStorageError`
///
/// # Errors
///
/// Any of the following `WalletStorageError` type_ of errors can be throw by this method:
///
///  * `WalletStorageError::Closed` - Storage is closed
///  * `WalletStorageError::ItemNotFound` - Item is not found in database
///  * `IOError("IO error during storage operation:...")` - Failed connection or SQL query
///
deletes value and tags into storage.
Returns Result with () on success or
Result with WalletStorageError in case of failure.
deletes value and tags into storage . Returns Result with () on success or Result with WalletStorageError in case of failure .
fn delete(&self, type_: &[u8], id: &[u8]) -> Result<(), WalletStorageError> {
        let pool = self.pool.clone();
        let conn = pool.get().unwrap();
        let query_qualifier = get_wallet_strategy_qualifier();
        let row_count = match query_qualifier {
            Some(_) => conn.execute(
                "DELETE FROM items where type = $1 AND name = $2 AND wallet_id = $3",
                &[&type_.to_vec(), &id.to_vec(), &self.wallet_id],
            )?,
            None => conn.execute(
                "DELETE FROM items where type = $1 AND name = $2",
                &[&type_.to_vec(), &id.to_vec()],
            )?
        };
        if row_count == 1 {
            Ok(())
        } else {
            Err(WalletStorageError::ItemNotFound)
        }
    }
fn delete ( & self , type_ : & [ u8 ] , id : & [ u8 ] ) -> Result < ( ) , WalletStorageError > { let pool = self . pool . clone ( ) ; let conn = pool . get ( ) . unwrap ( ) ; let query_qualifier = get_wallet_strategy_qualifier ( ) ; let row_count = match query_qualifier { Some ( _ ) => conn . execute ( " " , & [ & type_ . to_vec ( ) , & id . to_vec ( ) , & self . wallet_id ] , ) ? , None => conn . execute ( " " , & [ & type_ . to_vec ( ) , & id . to_vec ( ) ] , ) ? } ; if row_count == 1 { Ok ( ( ) ) } else { Err ( WalletStorageError :: ItemNotFound ) } }
deletes value and tags into storage.
deletes value and tags into storage .
&self
type_
&[u8]
id
&[u8]
Result that can be either.

`()`
`WalletStorageError`
Result that can be either . ` () ` ` WalletStorageError `
&self
type_
&[u8]
id
&[u8]
errors
Any of the following `WalletStorageError` type_ of errors can be throw by this method.

`WalletStorageError::Closed` - Storage is closed
`WalletStorageError::ItemNotFound` - Item is not found in database
`IOError("IO error during storage operation:...")` - Failed connection or SQL query
Any of the following ` WalletStorageError ` type_ of errors can be throw by this method . ` WalletStorageError :: Closed ` - Storage is closed ` WalletStorageError :: ItemNotFound ` - Item is not found in database ` IOError ( " IO error during storage operation : ... " ) ` - Failed connection or SQL query