pub fn delete_item(id: i32, conn: &PgConnection) -> bool {
        diesel::delete(dsl::items.filter(dsl::item_id.eq(id)))
            .execute(conn)
            .is_ok()
    }
/// Attempts to delete the item with the given `id`. Returns true if successful or
/// false otherwise.
Attempts to delete the item with the given `id`. Returns true if successful or
false otherwise.
Attempts to delete the item with the given ` id ` . Returns true if successful or false otherwise .
pub fn delete_item(id: i32, conn: &PgConnection) -> bool {
        diesel::delete(dsl::items.filter(dsl::item_id.eq(id)))
            .execute(conn)
            .is_ok()
    }
pub fn delete_item ( id : i32 , conn : & PgConnection ) -> bool { diesel :: delete ( dsl :: items . filter ( dsl :: item_id . eq ( id ) ) ) . execute ( conn ) . is_ok ( ) }
Attempts to delete the item with the given `id`.
Attempts to delete the item with the given ` id ` .
id
i32
conn
&PgConnection
id
i32
conn
&PgConnection