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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# PostgreSQL

> Run parameterized PostgreSQL queries, single statements, and transactions through a connected database role.

## Exports

```ts theme={null}
import {
  postgres,
  postgresAccount,
  getPostgresClient,
} from "automate.ax/postgres"
```

* `postgres` contains the packaged PostgreSQL actions.
* `postgresAccount("name")` selects a named PostgreSQL connection.
* `getPostgresClient` creates the authenticated PostgreSQL client for a custom account-backed action.

## Actions

* [Run query](/reference/integrations/postgres/actions/run-query.md)
* [Execute statement](/reference/integrations/postgres/actions/execute-statement.md)
* [Run transaction](/reference/integrations/postgres/actions/run-transaction.md)


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