> ## 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

> connect — 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#L540-L547)&#x20;

<pre>`pub async fn connect(    host: &str,    username: &str,    password: &str,) -> Result<KineticaPool, Error>`</pre>

Connect to Kinetica with minimal configuration.Uses default port (5432) and database (“postgres”).

## Example

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

let pool = connect("localhost", "admin", "password").await?;
```


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