mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +00:00
Add commit after copy_from calls
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user