sqlx_support
connection_url_from_env
connection_url_from_env — Kinetica Rust API
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
connection_url_from_env — Kinetica Rust API
pub fn connection_url_from_env() -> Option<String>Parse a Kinetica connection URL from environment variables.
Looks for:
KINETICA_SQLX_URL - Full connection URLKINETICA_HOST, KINETICA_PORT, KINETICA_USER, KINETICA_PASSWORDuse gpudb_api::sqlx_support::connection_url_from_env;
// Set KINETICA_SQLX_URL=postgres://admin:password@localhost:5432/postgres
// Or set KINETICA_HOST, KINETICA_USER, KINETICA_PASSWORD
let url = connection_url_from_env();