summaryrefslogtreecommitdiff
path: root/database/view-table.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-29 16:06:35 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 16:04:00 +0200
commit4a79cefdf5d71715b6c575d5c8bb4fea418c2ba6 (patch)
treefc68847d1e010e2962dac8345a0fd0cc9a2f0681 /database/view-table.py
parentad31b66503ec65e611ab96c2a540180ed25f5a6f (diff)
Prepare opendc repository for monorepo
This change prepares the opendc repository for a monorepo setup by moving all files to the core/ directory. After all repositories have been merged into this repository, we will move the correct files back.
Diffstat (limited to 'database/view-table.py')
-rw-r--r--database/view-table.py17
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