'Get the next value from the sequence using ``gen_id()``.'

def fire_sequence(self, seq, type_):

    return self._execute_scalar(('SELECT    gen_id(%s,    1)    FROM    rdb$database' % self.dialect.identifier_preparer.format_sequence(seq)), type_)
