Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
autotest
/
dc666e0349bb5274ed2f0e26941fe9eae7591983
/
.
/
tko
/
db_postgres.py
blob: 31834fa0a17a197ccbe3bafbf3cf6b4a2d1518c2 [
file
] [
log
] [
blame
]
import
psycopg2
.
psycopg1
as
driver
import
db
class
db_postgres
(
db
.
db_sql
):
def
connect
(
self
,
host
,
database
,
user
,
password
):
return
driver
.
connect
(
"dbname=%s user=%s password=%s"
%
\
(
database
,
user
,
password
))