Db::rollback

Usage

void Db::rollback()

Description

Rollback a database transaction.

Examples

Rollback Transaction


// Begin transaction $this->db->beginTransaction(); // Insert a reord $this->db->insert('some_type', [ 'name' => 'John Smith', 'email' => '[email protected]' ]); // Rollback deleteing the previous insert $this->db->rollback();

See Also