mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 14:00:05 +08:00
12 lines
134 B
Python
12 lines
134 B
Python
|
import psycopg2
|
||
|
|
||
|
conn = psycopg2.connect('dbname=test')
|
||
|
|
||
|
#? ['cursor']
|
||
|
conn.cursor
|
||
|
|
||
|
cur = conn.cursor()
|
||
|
|
||
|
#? ['fetchall']
|
||
|
cur.fetchall
|