public function getId(ConnectionInterface $con, $name = null)
    {
        if (null === $name) {
            throw new InvalidArgumentException("Unable to fetch next sequence ID without sequence name.");
        }
        $dataFetcher = $con->query(sprintf('SELECT nextval(%s)', $con->quote($name)));

        return $dataFetcher->fetchColumn();
    }
public function getId(ConnectionInterface $con, $name = null)
    {
        if (null === $name) {
            throw new InvalidArgumentException("Unable to fetch next sequence ID without sequence name.");
        }
        $dataFetcher = $con->query(sprintf('SELECT nextval(%s)', $con->quote($name)));

        return $dataFetcher->fetchColumn();
    }
public function getId ( ConnectionInterface $ con , $ name = null ) { if ( null === $ name ) { throw new InvalidArgumentException ( "Unable to fetch next sequence ID without sequence name." ) ; } $ dataFetcher = $ con -> query ( sprintf ( 'SELECT nextval(%s)' , $ con -> quote ( $ name ) ) ) ; return $ dataFetcher -> fetchColumn ( ) ; }
Gets ID for specified sequence name.

@param ConnectionInterface $con
@param string              $name

@return integer
Gets ID for specified sequence name .