Yajra\Oci8\Schema\Sequence::nextValue PHP Method

nextValue() public method

get sequence next value
public nextValue ( string $name ) : integer
$name string
return integer
    public function nextValue($name)
    {
        if (!$name) {
            return 0;
        }
        return $this->connection->selectOne("SELECT {$name}.NEXTVAL as id FROM DUAL")->id;
    }