[][src]Module hdbconnect::url

Constants for use in connection URLs.

Database connections are configured with an instance of ConnectParams. Instances of ConnectParams can be created using a ConnectParamsBuilder.

Both ConnectParams and ConnectParamsBuilder can be created from a URL.

Such a URL is supposed to have the form

<scheme>://<username>:<password>@<host>:<port>[<options>]

where

<scheme> = hdbsql | hdbsqls
<username> = the name of the DB user to log on
<password> = the password of the DB user
<host> = the host where HANA can be found
<port> = the port at which HANA can be found on <host>
<options> = ?<key>[=<value>][{&<key>[=<value>]}]

Supported options are:

db=<databasename> specifies the (MDC) database to which you want to connect
client_locale=<value> specifies the client locale
client_locale_from_env (no value): lets the driver read the client's locale from the environment variabe LANG
tls_certificate_dir=<value>: points to a folder with pem files that contain certificates; all pem files in that folder are evaluated
tls_certificate_env=<value>: denotes an environment variable that contains certificates
use_mozillas_root_certificates (no value): use the root certificates from https://mkcert.org/
insecure_omit_server_certificate_check (no value): lets the driver omit the validation of the server's identity. Don't use this option in productive setups!

The client locale is used in language-dependent handling within the SAP HANA database calculation engine.

This module contains String constants for the hdbconnect-specific URL constituents.

Example

use hdbconnect::IntoConnectParams;
let conn_params = "hdbsql://my_user:my_passwd@the_host:2222"
    .into_connect_params()
    .unwrap();

Constants

CLIENT_LOCALE

Denotes the client locale.

CLIENT_LOCALE_FROM_ENV

Denotes an environment variable which contains the client locale.

DATABASE

Denotes the (MDC) database to which you want to connect.

INSECURE_OMIT_SERVER_CERTIFICATE_CHECK

Defines that the server's identity is not validated. Don't use this option in productive setups!

NETWORK_GROUP

Denotes a network group.

TLS_CERTIFICATE_DIR

Denotes a folder in which server certificates can be found.

TLS_CERTIFICATE_ENV

Denotes an environment variable in which a server certificate can be found

USE_MOZILLAS_ROOT_CERTIFICATES

Defines that the server roots from https://mkcert.org/ should be added to the trust store for TLS.