diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-17 10:11:29 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-17 10:11:29 -0400 |
| commit | 4f2ede42060aeed539b877565e5197f6f9f9817d (patch) | |
| tree | 7bb2d833afa88e768d7c8d6ac2d735e93a35e0c9 /lib/sqlalchemy/sql | |
| parent | e02de8c4a7ecb0d79169ea90395ebf557439f08f (diff) | |
| download | sqlalchemy-4f2ede42060aeed539b877565e5197f6f9f9817d.tar.gz | |
- version specs for new Sequence arguments
- changelog for pullreq github:186
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/schema.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index ecfa57676..137208584 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -2064,24 +2064,36 @@ class Sequence(DefaultGenerator): the clause is omitted, which on most platforms indicates a minvalue of 1 and -2^63-1 for ascending and descending sequences, respectively. + + .. versionadded:: 1.0.7 + :param maxvalue: the maximum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "MAXVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a maxvalue of 2^63-1 and -1 for ascending and descending sequences, respectively. + + .. versionadded:: 1.0.7 + :param nominvalue: no minimum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "NO MINVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a minvalue of 1 and -2^63-1 for ascending and descending sequences, respectively. + + .. versionadded:: 1.0.7 + :param nomaxvalue: no maximum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "NO MAXVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a maxvalue of 2^63-1 and -1 for ascending and descending sequences, respectively. + + .. versionadded:: 1.0.7 + :param cycle: allows the sequence to wrap around when the maxvalue or minvalue has been reached by an ascending or descending sequence respectively. This value is used when the CREATE SEQUENCE command @@ -2090,6 +2102,9 @@ class Sequence(DefaultGenerator): respectively. If cycle=False (the default) any calls to nextval after the sequence has reached its maximum value will return an error. + + .. versionadded:: 1.0.7 + :param schema: Optional schema name for the sequence, if located in a schema other than the default. :param optional: boolean value, when ``True``, indicates that this |
