pub fn delete<'m>(args: Args<'m>) -> Result<()> {
    let conn = database_connection()?;
    let key = args
        .params
        .get("key")
        .ok_or("Unable to retrieve param: key")?;

    diesel::delete(tags::table.filter(tags::key.eq(key))).execute(&conn)?;
    Ok(())
}
/// Remove a key value pair from the tags.  
Remove a key value pair from the tags.
Remove a key value pair from the tags .
pub fn delete<'m>(args: Args<'m>) -> Result<()> {
    let conn = database_connection()?;
    let key = args
        .params
        .get("key")
        .ok_or("Unable to retrieve param: key")?;
    diesel::delete(tags::table.filter(tags::key.eq(key))).execute(&conn)?;
    Ok(())
}
pub fn delete < ' m > ( args : Args < ' m > ) -> Result < ( ) > { let conn = database_connection ( ) ? ; let key = args . params . get ( " " ) . ok_or ( " " ) ? ; diesel :: delete ( tags :: table . filter ( tags :: key . eq ( key ) ) ) . execute ( & conn ) ? ; Ok ( ( ) ) }
Remove a key value pair from the tags.
Remove a key value pair from the tags .
args
Args<'m>
args
Args<'m>