Pheasant\Database\Mysqli\SequencePool::current PHP Method

current() public method

Returns the current integer in the sequence
public current ( $sequence )
    public function current($sequence)
    {
        $result = $this->_connection->execute("SELECT id FROM sequences WHERE name=?", $sequence);
        return (int) $result[0]['id'] - 1;
    }