bug fix: init function for fields not working

This commit is contained in:
Steve Nyemba 2023-07-09 20:47:54 -05:00
parent 0933e4155f
commit 653d22cd8c
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ class SQLWriter(SQLRW,Writer):
try:
table = self._tablename(self.table)
self.fields = pd.read_sql_query("SELECT * FROM :table LIMIT 1".replace(":table",table),self.conn).columns.tolist()
except Exception as e:
pass
finally:
pass
else: