# fluentform/4.3.13/app/Services/wpfluent/src/QueryBuilder/Transaction.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 4.3.13. 28 lines.

- Page: https://pluginprobe.com/plugins/fluentform/4.3.13/code/app/Services/wpfluent/src/QueryBuilder/Transaction.php
- Raw: https://pluginprobe.com/plugins/fluentform/4.3.13/raw/app/Services/wpfluent/src/QueryBuilder/Transaction.php
- Modified: 2022-10-07T15:25:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/4.3.13/code/app/Services/wpfluent/src/QueryBuilder/Transaction.php#L10-L20`.

```php
<?php

namespace WpFluent\QueryBuilder;

class Transaction extends QueryBuilderHandler
{

    /**
     * Commit the database changes
     */
    public function commit()
    {
        $this->db->query('COMMIT');

        throw new TransactionHaltException();
    }

    /**
     * Rollback the database changes
     */
    public function rollback()
    {
        $this->db->query('ROLLBACK');

        throw new TransactionHaltException();
    }
}

```
