ADBC
The Core Architecture
Key Components:
Python Example: High-Speed Ingestion
import adbc_driver_postgresql.dbapi as pg_dbapi
import pyarrow as pa
# 1. Create some Arrow data (1 million rows)
data = pa.table({"id": range(1_000_000), "val": [1.5] * 1_000_000})
# 2. Connect via ADBC
uri = "postgresql://localhost:5432/postgres?user=admin&password=password"
with pg_dbapi.connect(uri) as conn:
# 3. Ingest the table (ADBC handles the binary protocol)
# This is often 10-20x faster than traditional SQLAlchemy/psycopg2 inserts
conn.adbc_ingest("large_table", data, mode="create")Python Example: Streaming Retrieval
Real-World Use Cases
A. The Data Migration Bridge (Snowflake to Postgres)
B. Building High-Performance Data Apps
C. Moving Away from JDBC/ODBC
ADBC vs. Flight SQL
Summary
Last updated