Commits

Miki Tebeka  committed 0a413fc

fixing typos

  • Participants
  • Parent commits 4d6ba2e

Comments (0)

Files changed (1)

File sql-col-by-name.py

 db = sqlite3.connect(":memory:")
 db.row_factory = sqlite3.Row
 
-from psycopy2.extras import DictCursor
-import psycopy2
-db = psycopy2.connect("my-dbn-string")
-cur = db.cursor(row_factory=DictCursor)
+import psycopg2
+from psycopg2.extras import DictCursor
+db = psycopg2.connect("my-dbn-string")
+cur = db.cursor(cursor_factory=DictCursor)
 
 #for row in cur.execute("select * from people"):
 #    print row["name"]