use crate::*; use futures_util::stream::{Stream, StreamExt}; use sqlx::{query, query_as, Executor}; /// The DateTime used in the package. pub type DateTime = chrono::DateTime; pub mod osu; pub mod osu_user; /// Map a `fetch_many` result to a normal result. pub(crate) async fn map_many_result( item: Result, E>, ) -> Option> where E: Into, { match item { Ok(v) => v.right().map(Ok), Err(e) => Some(Err(e.into())), } }