MEDIATE</code> behaves like <code class="literal">BEGIN</code>).
            </p>
        <p>
                When you begin your transaction with <code class="literal">BEGIN</code>, Berkeley DB decides what kind of a lock
                you need based on what you are doing to the database. If
                you perform an action that is read-only, it acquires a read
                lock. If you perform a write action, it acquires a write
                lock.
            </p>
        <p>    
            