Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

feat: support AUTO_INCREMENT and IDENTITY columns#610

Merged
olavloite merged 5 commits intomainfrom
auto-increment
Mar 17, 2025
Merged

feat: support AUTO_INCREMENT and IDENTITY columns#610
olavloite merged 5 commits intomainfrom
auto-increment

Conversation

@olavloite
Copy link
Contributor

Adds support for IDENTITY and AUTO_INCREMENT columns to the Spanner dialect. These are used by default for primary key generation. By default, IDENTITY columns using a backing bit-reversed sequence are used for primary key generation.

The sequence kind to use can be configured by setting the attribute default_sequence_kind on the Spanner dialect.

The use of AUTO_INCREMENT columns instead of IDENTITY can be configured by setting the use_auto_increment attribute on the Spanner dialect.

Adds support for IDENTITY and AUTO_INCREMENT columns to the Spanner dialect.
These are used by default for primary key generation. By default, IDENTITY
columns using a backing bit-reversed sequence are used for primary key
generation.

The sequence kind to use can be configured by setting the attribute
default_sequence_kind on the Spanner dialect.

The use of AUTO_INCREMENT columns instead of IDENTITY can be configured
by setting the use_auto_increment attribute on the Spanner dialect.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Mar 3, 2025
@olavloite olavloite merged commit f67ebe8 into main Mar 17, 2025
16 checks passed
@olavloite olavloite deleted the auto-increment branch March 17, 2025 07:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant