Skip to content

Instantly share code, notes, and snippets.

@randy-johnson
Created August 28, 2021 19:20
Show Gist options
  • Save randy-johnson/9e64b13eff0c20f586a63224bfe1221f to your computer and use it in GitHub Desktop.
Save randy-johnson/9e64b13eff0c20f586a63224bfe1221f to your computer and use it in GitHub Desktop.
transaction {
try {
// code to run
transaction action="commit";
}
catch(any e) {
transaction action="rollback";
}
}
// Credit: https://cfdocs.org/cftransaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment