src/Db/Transaction.php
public function getConnection() {
        if (!isset($this->connection)) {
            $this->connection = $this->db->getDedicatedConnection();
        }
        return $this->connection;
    }
public function getConnection() {
        if (!isset($this->connection)) {
            $this->connection = $this->db->getDedicatedConnection();
        }
        return $this->connection;
    }
Get DB connection
@return ConnectionInterface