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

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):