Add commit after copy_from calls

This commit is contained in:
D. Berge
2020-09-03 17:08:25 +02:00
parent c7cee0b822
commit 0fc795d1c4

View File

@@ -44,4 +44,7 @@ if __name__ == '__main__':
with open(path, "rb") as fd: with open(path, "rb") as fd:
cursor.copy_from(fd, table); cursor.copy_from(fd, table);
# If we don't commit the data does not actually get copied
db.conn.commit()
print("Done") print("Done")