add single-transaction to mysqldump to ensure consistency

This commit is contained in:
C.J. May 2025-01-08 13:16:02 -06:00 committed by GitHub
parent 2dd864f123
commit f092abb618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,7 @@ class MariadbContainer(Container):
f"--user={creds['username']}",
"--all-databases",
"--no-tablespaces",
"--single-transaction",
]
def backup(self):
@ -114,6 +115,7 @@ class MysqlContainer(Container):
f"--user={creds['username']}",
"--all-databases",
"--no-tablespaces",
"--single-transaction",
]
def backup(self):