Skip to content

Instantly share code, notes, and snippets.

@mgalang
Created March 28, 2013 12:05
Show Gist options
  • Save mgalang/065a5522c638f97c1a6a to your computer and use it in GitHub Desktop.
Save mgalang/065a5522c638f97c1a6a to your computer and use it in GitHub Desktop.
Kohana database transaction
$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