pub fn delete_by_values(&self, a_val: &str) -> Result<()> {
        use crate::schema::kv_store::{self, dsl};

        diesel::delete(dsl::kv_store.filter(dsl::a_val.eq(a_val))).execute(self.db)?;

        Ok(())
    }
/// Delete all values with specific criteria
Delete all values with specific criteria
Delete all values with specific criteria
pub fn delete_by_values(&self, a_val: &str) -> Result<()> {
        use crate::schema::kv_store::{self, dsl};
        diesel::delete(dsl::kv_store.filter(dsl::a_val.eq(a_val))).execute(self.db)?;
        Ok(())
    }
pub fn delete_by_values ( & self , a_val : & str ) -> Result < ( ) > { use crate :: schema :: kv_store :: { self , dsl } ; diesel :: delete ( dsl :: kv_store . filter ( dsl :: a_val . eq ( a_val ) ) ) . execute ( self . db ) ? ; Ok ( ( ) ) }
Delete all values with specific criteria
Delete all values with specific criteria
&self
a_val
&str
&self
a_val
&str