bug fixes: sqlite writer with sqlalchemy

This commit is contained in:
Steve Nyemba 2024-02-02 19:19:23 -06:00
parent c3fd371cb7
commit c3ebd32a40
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class SQLiteWriter(SQLite,DiskWriter) :
_data = [_data] _data = [_data]
_table = self.table if 'table' not in _args else _args['table'] _table = self.table if 'table' not in _args else _args['table']
_df = pd.DataFrame(_data) _df = pd.DataFrame(_data)
_df.to_sql(_table,self._engine.connect()if_exists='append',index=False) _df.to_sql(_table,self._engine.connect(),if_exists='append',index=False)
except Exception as e: except Exception as e:
print (e) print (e)
SQLiteWriter.LOCK.release() SQLiteWriter.LOCK.release()