-
[Python] psycopg2 SELECT결과 dict 타입으로 변환하기언어/파이썬 & 장고 2017. 11. 13. 12:36
import psycopg2.extras self.conn = psycopg2.connect(host='127.0.0.1', dbname='postgres', user='postgres', password='postgres', port=5432) self.cur = self.conn.cursor(cursor_factory=psycopg2.extras.DictCursor)