diff options
| author | jc0b <j@jc0b.computer> | 2020-06-30 16:30:27 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:43:50 +0200 |
| commit | 8133905047285b01c9ebaab43bfe4f6c86cf2623 (patch) | |
| tree | 671edebd731e1ce87382b2a0542ef3d3e89aa8a4 /database/view-table.py | |
| parent | 66b2d85385d05abb590535da60341876ecdbab71 (diff) | |
| parent | 8ede2b8597eb14c0567c2c3c0135593f7c557521 (diff) | |
Merge branch 'feature/mongodb-migration' of github.com:atlarge-research/opendc-dev into feature/mongodb-migration
Diffstat (limited to 'database/view-table.py')
| -rw-r--r-- | database/view-table.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/database/view-table.py b/database/view-table.py deleted file mode 100644 index 615b4081..00000000 --- a/database/view-table.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -import sqlite3 -import sys - -try: - BASE_DIR = directory_name=sys.argv[1] -except: - BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -db_location = os.path.join(BASE_DIR, 'opendc.db') - -conn = sqlite3.connect(db_location) -c = conn.cursor() - -rows = c.execute('SELECT * FROM ' + sys.argv[2]) - -for row in rows: - print row |
