pub async fn session_exists(pool: &DBPool, session_id: String) -> Result<bool> {
        let res = generic_service_err!(
            sqlx::query_file_as!(Session, "sql/session/get_session.sql", session_id)
            .fetch_all(pool).await,
            "Failed to check if session exists");

        Ok(res.len() == 1)
    }
/// Returns whether or not a session exists
/// 
/// # Arguments
/// 
/// * `pool` - The database pool
/// * `session_id` - The ID of the session
Returns whether or not a session exists
Returns whether or not a session exists
pub async fn session_exists(pool: &DBPool, session_id: String) -> Result<bool> {
        let res = generic_service_err!(
            sqlx::query_file_as!(Session, "sql/session/get_session.sql", session_id)
            .fetch_all(pool).await,
            "Failed to check if session exists");
        Ok(res.len() == 1)
    }
pub async fn session_exists ( pool : & DBPool , session_id : String ) -> Result < bool > { let res = generic_service_err ! ( sqlx query_file_as ( Session " " session_id ) fetch_all ( pool ) await " " ) ; Ok ( res . len ( ) == 1 ) }
Returns whether or not a session exists
Returns whether or not a session exists
pool
&DBPool
session_id
String
pool
&DBPool
session_id
String