The trick is to not just replace using pandas (which does DROP TABLE, CREATE TABLE, INSERT stuff) but save the new table into a temporary table and the rename it to the correct name. Renaming is atomic und thus does not lead to an exception like table does not exist
The trick is to not just replace using pandas (which does
DROP TABLE, CREATE TABLE, INSERT stuff
) but save the new table into a temporary table and the rename it to the correct name. Renaming is atomic und thus does not lead to an exception liketable does not exist