Skip to main content

connect

Function connect 

Source
pub async fn connect(
    connection_string: &str,
    trust_server_certificate: bool,
) -> Result<SqlServerClient, SchemaReverseEngineerError>
Expand description

Opens a connection from an ADO-style connection string (Server=tcp:host,1433;Database=db;User Id=sa;Password=...). TLS is required unless the string says otherwise with Encrypt=.