Upgrade SeaORM to latest version, also upgrade sqlite bindings, rustqlite, and remove SeaQuery

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla 2023-10-03 12:16:53 -07:00
parent 32c4138758
commit 6007c8705c
No known key found for this signature in database
12 changed files with 460 additions and 290 deletions

View file

@ -1,8 +1,7 @@
use super::*;
use rpc::proto::ChannelEdge;
use smallvec::SmallVec;
use super::*;
type ChannelDescendants = HashMap<ChannelId, SmallSet<ChannelId>>;
impl Database {
@ -659,7 +658,7 @@ impl Database {
) -> Result<Vec<ChannelId>> {
let paths = channel_path::Entity::find()
.filter(channel_path::Column::ChannelId.eq(channel_id))
.order_by(channel_path::Column::IdPath, sea_query::Order::Desc)
.order_by(channel_path::Column::IdPath, sea_orm::Order::Desc)
.all(tx)
.await?;
let mut channel_ids = Vec::new();