Construct a :class:`.Sequence` object. :param name: the name of the sequence. :param start: the starting index of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "START WITH" clause. If ``None``, th
(
self,
name: str,
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,
schema: Optional[Union[str, Literal[SchemaConst.BLANK_SCHEMA]]] = None,
cache: Optional[int] = None,
order: Optional[bool] = None,
data_type: Optional[_TypeEngineArgument[int]] = None,
optional: bool = False,
quote: Optional[bool] = None,
metadata: Optional[MetaData] = None,
quote_schema: Optional[bool] = None,
for_update: bool = False,
**dialect_kw: Any,
)
| 4104 | ) |
| 4105 | ) |
| 4106 | def __init__( |
| 4107 | self, |
| 4108 | name: str, |
| 4109 | start: Optional[int] = None, |
| 4110 | increment: Optional[int] = None, |
| 4111 | minvalue: Optional[int] = None, |
| 4112 | maxvalue: Optional[int] = None, |
| 4113 | nominvalue: Optional[bool] = None, |
| 4114 | nomaxvalue: Optional[bool] = None, |
| 4115 | cycle: Optional[bool] = None, |
| 4116 | schema: Optional[Union[str, Literal[SchemaConst.BLANK_SCHEMA]]] = None, |
| 4117 | cache: Optional[int] = None, |
| 4118 | order: Optional[bool] = None, |
| 4119 | data_type: Optional[_TypeEngineArgument[int]] = None, |
| 4120 | optional: bool = False, |
| 4121 | quote: Optional[bool] = None, |
| 4122 | metadata: Optional[MetaData] = None, |
| 4123 | quote_schema: Optional[bool] = None, |
| 4124 | for_update: bool = False, |
| 4125 | **dialect_kw: Any, |
| 4126 | ) -> None: |
| 4127 | """Construct a :class:`.Sequence` object. |
| 4128 | |
| 4129 | :param name: the name of the sequence. |
| 4130 | |
| 4131 | :param start: the starting index of the sequence. This value is |
| 4132 | used when the CREATE SEQUENCE command is emitted to the database |
| 4133 | as the value of the "START WITH" clause. If ``None``, the |
| 4134 | clause is omitted, which on most platforms indicates a starting |
| 4135 | value of 1. |
| 4136 | |
| 4137 | .. versionchanged:: 2.0 The :paramref:`.Sequence.start` parameter |
| 4138 | is required in order to have DDL emit "START WITH". This is a |
| 4139 | reversal of a change made in version 1.4 which would implicitly |
| 4140 | render "START WITH 1" if the :paramref:`.Sequence.start` were |
| 4141 | not included. See :ref:`change_7211` for more detail. |
| 4142 | |
| 4143 | :param increment: the increment value of the sequence. This |
| 4144 | value is used when the CREATE SEQUENCE command is emitted to |
| 4145 | the database as the value of the "INCREMENT BY" clause. If ``None``, |
| 4146 | the clause is omitted, which on most platforms indicates an |
| 4147 | increment of 1. |
| 4148 | :param minvalue: the minimum value of the sequence. This |
| 4149 | value is used when the CREATE SEQUENCE command is emitted to |
| 4150 | the database as the value of the "MINVALUE" clause. If ``None``, |
| 4151 | the clause is omitted, which on most platforms indicates a |
| 4152 | minvalue of 1 and -2^63-1 for ascending and descending sequences, |
| 4153 | respectively. |
| 4154 | |
| 4155 | :param maxvalue: the maximum value of the sequence. This |
| 4156 | value is used when the CREATE SEQUENCE command is emitted to |
| 4157 | the database as the value of the "MAXVALUE" clause. If ``None``, |
| 4158 | the clause is omitted, which on most platforms indicates a |
| 4159 | maxvalue of 2^63-1 and -1 for ascending and descending sequences, |
| 4160 | respectively. |
| 4161 | |
| 4162 | :param nominvalue: no minimum value of the sequence. This |
| 4163 | value is used when the CREATE SEQUENCE command is emitted to |
nothing calls this directly
no test coverage detected