Created
March 28, 2013 12:05
-
-
Save mgalang/065a5522c638f97c1a6a to your computer and use it in GitHub Desktop.
Kohana database transaction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$db = Database::instance(); | |
// start | |
$db->query(null,'START TRANSACTION'); | |
// rollback | |
$db->query(null,'ROLLBACK'); | |
// commit | |
$db->query(null,'COMMIT'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment