MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/schema.py:3971–4020  ·  view source on GitHub ↗

Construct a :class:`.IdentityOptions` object. See the :class:`.Sequence` documentation for a complete description of the parameters. :param start: the starting index of the sequence. :param increment: the increment value of the sequence. :param minvalue: the

(
        self,
        start: Optional[int] = None,
        increment: Optional[int] = None,
        minvalue: Optional[int] = None,
        maxvalue: Optional[int] = None,
        nominvalue: Optional[bool] = None,
        nomaxvalue: Optional[bool] = None,
        cycle: Optional[bool] = None,
        cache: Optional[int] = None,
        order: Optional[bool] = None,
        **dialect_kw: Any,
    )

Source from the content-addressed store, hash-verified

3969 """
3970
3971 def __init__(
3972 self,
3973 start: Optional[int] = None,
3974 increment: Optional[int] = None,
3975 minvalue: Optional[int] = None,
3976 maxvalue: Optional[int] = None,
3977 nominvalue: Optional[bool] = None,
3978 nomaxvalue: Optional[bool] = None,
3979 cycle: Optional[bool] = None,
3980 cache: Optional[int] = None,
3981 order: Optional[bool] = None,
3982 **dialect_kw: Any,
3983 ) -> None:
3984 """Construct a :class:`.IdentityOptions` object.
3985
3986 See the :class:`.Sequence` documentation for a complete description
3987 of the parameters.
3988
3989 :param start: the starting index of the sequence.
3990 :param increment: the increment value of the sequence.
3991 :param minvalue: the minimum value of the sequence.
3992 :param maxvalue: the maximum value of the sequence.
3993 :param nominvalue: no minimum value of the sequence.
3994 :param nomaxvalue: no maximum value of the sequence.
3995 :param cycle: allows the sequence to wrap around when the maxvalue
3996 or minvalue has been reached.
3997 :param cache: optional integer value; number of future values in the
3998 sequence which are calculated in advance.
3999 :param order: optional boolean value; if ``True``, renders the
4000 ORDER keyword.
4001
4002 .. deprecated:: 2.1 Use ``oracle_order`` instead.
4003
4004 """
4005 self.start = start
4006 self.increment = increment
4007 self.minvalue = minvalue
4008 self.maxvalue = maxvalue
4009 self.nominvalue = nominvalue
4010 self.nomaxvalue = nomaxvalue
4011 self.cycle = cycle
4012 self.cache = cache
4013 if order is not None:
4014 if "oracle_order" in dialect_kw:
4015 raise exc.ArgumentError(
4016 "Cannot specify both 'order' and 'oracle_order'. "
4017 "Please use only 'oracle_order'."
4018 )
4019 dialect_kw["oracle_order"] = order
4020 self._validate_dialect_kwargs(dialect_kw)
4021
4022 @property
4023 def _increment_is_negative(self) -> bool:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected