Atomicity of operations is a vital part of any application. How do you handle transactions? I reckon, one can just make it this (simplified):
$conn->query("BEGIN")
->then(function() use ($conn) {
$conn->query("INSERT/UPDATE ...")
->then(function() use ($conn) {
$conn->query("COMMIT");
});
});
Would be nice to have this covered in docs.
Atomicity of operations is a vital part of any application. How do you handle transactions? I reckon, one can just make it this (simplified):
Would be nice to have this covered in docs.