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

# PostgreSQL SDK

> Connect the Arivu SDK to PostgreSQL via Python.

## SDK Configuration

Integrating PostgreSQL within your Python application is seamless. Utilize the `Arivu.connect()` static factory.

<CodeGroup>
  ```python python theme={null}
  from arivu import Arivu

  db = Arivu.connect(
      dialect="postgresql",
      host="db.example.com",
      port=5432,
      user="postgres",
      password="secret",
      dbname="analytics_prod",
      mode="user" # or 'admin'
  )
  ```
</CodeGroup>

<Info>
  Setting `mode="user"` prevents Arivu from executing destructive SQL operations (like `DROP` or `UPDATE`). They will instead be held in an approval queue.
</Info>
