Changelog:
- Raise ValueError for dates >= Y10k.
- ~psycopg2.errorcodes map and ~psycopg2.errors classes updated to PostgreSQL 14.
- Add preliminary support for Python 3.11.
Depends on D12300
Differential D12301
Update Psycopg to 2.9.2 Authored by silke on Nov 14 2021, 11:27 AM. Tags None Referenced Files
Subscribers
Details
Changelog:
Depends on D12300 Connect to, and query, an existing Pagila database: python3
import psycopg2
conn = psycopg2.connect("dbname=pagila")
cur = conn.cursor()
cur.execute("SELECT title, description FROM film WHERE fulltext @@ to_tsquery('saga&india');")
for i in cur.fetchall():
print(f"Title: {i[0]}, description: {i[1]}")
Diff Detail
|