dbhydra 2.2.17__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbhydra-2.2.17 → dbhydra-2.3.0}/PKG-INFO +1 -1
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/abstract_table.py +4 -3
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra.egg-info/PKG-INFO +1 -1
- {dbhydra-2.2.17 → dbhydra-2.3.0}/setup.py +1 -1
- {dbhydra-2.2.17 → dbhydra-2.3.0}/LICENSE +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/README.md +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/__init__.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/dbhydra_core.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/__init__.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/abstract_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/bigquery_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/errors/__init__.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/errors/exceptions.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/migrator.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/mongo_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/mysql_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/postgres_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/sqlserver_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/tables.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/src/xlsx_db.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/test_migrator.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/tests/__init__.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/tests/test_cases.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/tests/test_mongo.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra/tests/test_sql.py +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra.egg-info/SOURCES.txt +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra.egg-info/dependency_links.txt +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra.egg-info/requires.txt +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/dbhydra.egg-info/top_level.txt +0 -0
- {dbhydra-2.2.17 → dbhydra-2.3.0}/setup.cfg +0 -0
|
@@ -78,9 +78,10 @@ class AbstractSelectable:
|
|
|
78
78
|
columns = self.columns
|
|
79
79
|
elif column_string.find(",") == -1:
|
|
80
80
|
assert column_string.count("select")<=1 #assume there are no table columns containing "select" substring
|
|
81
|
-
columns = [column_string.replace("select","").strip()]
|
|
81
|
+
columns = [column_string.replace("select","").replace(self.db1.identifier_quote,"").strip()]
|
|
82
82
|
else:
|
|
83
|
-
|
|
83
|
+
assert column_string.count("select")<=1
|
|
84
|
+
columns = [x.replace("select","").replace(self.db1.identifier_quote,"").strip() for x in column_string.split(",")]
|
|
84
85
|
return(columns)
|
|
85
86
|
|
|
86
87
|
|
|
@@ -208,7 +209,7 @@ class AbstractSelectable:
|
|
|
208
209
|
queries, queries_destinations=self._build_queries_from_blocks()
|
|
209
210
|
self._query_blocks=[]
|
|
210
211
|
for i,query in enumerate(queries):
|
|
211
|
-
self.db1.execute()
|
|
212
|
+
self.db1.execute(query)
|
|
212
213
|
|
|
213
214
|
if "SELECT" in query:
|
|
214
215
|
selected_columns=self._get_selected_columns(query)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|