dbhydra 2.2.5__tar.gz → 2.2.6__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.5 → dbhydra-2.2.6}/PKG-INFO +1 -1
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/abstract_table.py +2 -1
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/tables.py +3 -2
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra.egg-info/PKG-INFO +1 -1
- {dbhydra-2.2.5 → dbhydra-2.2.6}/setup.py +1 -1
- {dbhydra-2.2.5 → dbhydra-2.2.6}/LICENSE +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/README.md +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/__init__.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/dbhydra_core.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/__init__.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/abstract_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/bigquery_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/errors/__init__.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/errors/exceptions.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/migrator.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/mongo_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/mysql_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/postgres_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/sqlserver_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/src/xlsx_db.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/test_migrator.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/tests/__init__.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/tests/test_cases.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/tests/test_mongo.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra/tests/test_sql.py +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra.egg-info/SOURCES.txt +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra.egg-info/dependency_links.txt +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra.egg-info/requires.txt +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/dbhydra.egg-info/top_level.txt +0 -0
- {dbhydra-2.2.5 → dbhydra-2.2.6}/setup.cfg +0 -0
|
@@ -400,7 +400,8 @@ class AbstractTable(AbstractJoinable, abc.ABC):
|
|
|
400
400
|
|
|
401
401
|
# TODO: handling nan values -> change to NULL
|
|
402
402
|
for column in list(df.columns):
|
|
403
|
-
|
|
403
|
+
|
|
404
|
+
df[column] = df[column].fillna("NULL") #New implementation, Old implementation was deprecated by pandas: #df.loc[pd.isna(df[column]), column] = "NULL"
|
|
404
405
|
|
|
405
406
|
# rows = df.values.tolist()
|
|
406
407
|
# for i, row in enumerate(rows):
|
|
@@ -294,11 +294,12 @@ class BigQueryTable(AbstractSelectable):
|
|
|
294
294
|
return column_names, column_types
|
|
295
295
|
|
|
296
296
|
|
|
297
|
-
def select(self, query):
|
|
297
|
+
def select(self, query, debug_mode = False):
|
|
298
298
|
|
|
299
299
|
"""given SELECT query returns Python list"""
|
|
300
300
|
"""Columns give the number of selected columns"""
|
|
301
|
-
|
|
301
|
+
if debug_mode:
|
|
302
|
+
print(query)
|
|
302
303
|
# rows = self.db1.client.query(query).result()
|
|
303
304
|
rows = self.db1.execute(query)
|
|
304
305
|
return rows
|
|
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
|