pub async fn load_edits_with_state(
    edit_state: String,
    conn: &ToolsDb,
) -> Result<Vec<Edit>> {
    use schema::edits::dsl::*;
    conn.run(move |c| {
        Ok(edits
            .filter(state.eq(&edit_state))
            .order(id.desc())
            .load(c)?)
    })
    .await
}
/// Get a vec of edits with the specified state
Get a vec of edits with the specified state
Get a vec of edits with the specified state
pub async fn load_edits_with_state(
    edit_state: String,
    conn: &ToolsDb,
) -> Result<Vec<Edit>> {
    use schema::edits::dsl::*;
    conn.run(move |c| {
        Ok(edits
            .filter(state.eq(&edit_state))
            .order(id.desc())
            .load(c)?)
    })
    .await
}
pub async fn load_edits_with_state ( edit_state : String , conn : & ToolsDb , ) -> Result < Vec < Edit > > { use schema :: edits :: dsl :: * ; conn . run ( move | c | { Ok ( edits . filter ( state . eq ( & edit_state ) ) . order ( id . desc ( ) ) . load ( c ) ? ) } ) . await }
Get a vec of edits with the specified state
Get a vec of edits with the specified state
edit_state
String
conn
&ToolsDb
edit_state
String
conn
&ToolsDb