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