Closed nitn3lav closed 6 months ago
This enables writing code like this:
async fn hi<D: Model<Postgres> + Send>(data: D, conn: &ormlite::Pool<Postgres>) { let _ = data.insert(conn).await.unwrap(); }
Previously, this would have required an ugly where clause:
where
async fn hi<D: Model<Postgres> + Send>(data: D, conn: &ormlite::Pool<Postgres>) where for<'a> ormlite_core::insert::Insertion<'a, &'a ormlite::Pool<Database>, D, Database>: IntoFuture, { let _ = data.insert(conn).await; }
Very nice. Thank you for adding this.
This enables writing code like this:
Previously, this would have required an ugly
where
clause: