Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
autotest
/
65f2a807f6e1e7b6ab0d8c3d9808cbecabcb070a
/
.
/
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
))