diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2010-10-09 18:03:05 +0200 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2010-10-09 18:03:05 +0200 |
| commit | 7265e6df7e7ae830964d7a39b9ec6e84de41e54b (patch) | |
| tree | f65ba04c77fe59b3a03472cb85edb212204af289 /dbutils.py | |
| parent | e046bb92df0ea62cc36626491edbf04811894392 (diff) | |
added dbutils tests
Diffstat (limited to 'dbutils.py')
| -rw-r--r-- | dbutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,10 +1,11 @@ import cx_Oracle import dbconfig -connStr = '%s/%s@%s' % (dbconfig.USER, dbconfig.PASS, dbconfig.SID) +CONN_STR = '%s/%s@%s' % (dbconfig.USER, dbconfig.PASS, dbconfig.SID) def get_tables(): - with cx_Oracle.connect(connStr) as conn: + with cx_Oracle.connect(CONN_STR) as conn: cur = conn.cursor() cur.execute('SELECT owner, table_name FROM all_tables') return [table for owner, table in cur.fetchall()] + |
