Back to Agno

Async Postgres Integration

cookbook/06_storage/postgres/async_postgres/README.md

2.6.4685 B
Original Source

Async Postgres Integration

Examples demonstrating asynchronous PostgreSQL integration with Agno agents, teams, and workflows.

Setup

shell
uv pip install sqlalchemy psycopg

Configuration

python
from agno.db.postgres import AsyncPostgresDb

db = AsyncPostgresDb(db_url="postgresql+psycopg_async://username:password@localhost:5432/database")

Examples