cycle=None,
cache=None,
order=None,
- data_type=None,
):
"""Construct a :class:`.IdentityOptions` object.
sequence which are calculated in advance.
:param order: optional boolean value; if ``True``, renders the
ORDER keyword.
- :param data_type: The type to be returned by the sequence.
"""
self.start = start
self.cycle = cycle
self.cache = cache
self.order = order
- if data_type is not None:
- self.data_type = to_instance(data_type)
- else:
- self.data_type = None
class Sequence(IdentityOptions, roles.StatementRole, DefaultGenerator):
cycle=cycle,
cache=cache,
order=order,
- data_type=data_type,
)
self.name = quoted_name(name, quote)
self.optional = optional
self._key = _get_table_key(name, schema)
if metadata:
self._set_metadata(metadata)
+ if data_type is not None:
+ self.data_type = to_instance(data_type)
+ else:
+ self.data_type = None
@util.memoized_property
def is_callable(self):