> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# connect_with_url

> connect_with_url — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[sqlx\_support](https://docs.kinetica.com/content/api/rust/sqlx_support/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/sqlx_support.rs#L561-L566)&#x20;

<pre>`pub async fn connect_with_url(url: &str) -> Result<KineticaPool, Error>`</pre>

Connect to Kinetica using a connection URL.

## Example

```rust theme={null}
use gpudb_api::sqlx_support::connect_with_url;

let pool = connect_with_url("postgres://admin:password@localhost:5432/postgres").await?;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.