repo.or.cz
/
autotest-zwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
KVM test: introduce VM exceptions
[autotest-zwu.git]
/
tko
/
db_postgres.py
blob
31834fa0a17a197ccbe3bafbf3cf6b4a2d1518c2
1
import
psycopg2
.
psycopg1
as
driver
2
import
db
3
4
class
db_postgres
(
db
.
db_sql
):
5
def
connect
(
self
,
host
,
database
,
user
,
password
):
6
return
driver
.
connect
(
"dbname=
%s
user=
%s
password=
%s
"
%
\
7
(
database
,
user
,
password
))