Browse Source

bug fixes: sqlite writer with sqlalchemy

Steve Nyemba 1 year ago
parent
commit
c3fd371cb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/disk.py

+ 1 - 1
transport/disk.py

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