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