sqlload 0.89.1

SQL data loading tooling.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! What a session destination connects as.

use crate::adapters::session::_helpers::blocking::opened;
use crate::adapters::session::models::SessionDestination;
use crate::loader::errors::LoaderError;

/// The line a destination check prints for the caller's connection, once its session opens.
pub(in crate::adapters) async fn check_session(
    destination: &SessionDestination,
) -> Result<String, LoaderError> {
    opened(destination).await?;
    Ok(format!(
        "{} through the caller's connection: {}",
        destination.connection.warehouse,
        destination.connection.caller.describe()
    ))
}