mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 12:23:42 +03:00
e335d6d223
Many editors automatically trim whitespace on save. By trimming all files in one go, makes future diffs cleaner without extraneous whitespace changes.
9 lines
207 B
Python
9 lines
207 B
Python
import psycopg2
|
|
import psycopg2.extras
|
|
|
|
conn = psycopg2.connect("dbname=test")
|
|
curs = conn.cursor()
|
|
curs.execute("SELECT true AS foo WHERE 'a' in %s", (("aa", "bb"),))
|
|
print curs.fetchall()
|
|
print curs.query
|