bug fix: init function for fields not working

pull/6/head
Steve Nyemba 1 year ago
parent 0933e4155f
commit 653d22cd8c

@ -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:

Loading…
Cancel
Save