Sign in
cos
/
mirrors
/
cros
/
chromiumos
/
third_party
/
autotest
/
refs/heads/release-R26-3701.B
/
.
/
tko
/
db_postgres.py
blob: 31834fa0a17a197ccbe3bafbf3cf6b4a2d1518c2 [
file
] [
log
] [
blame
] [
edit
]
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
))