8000 fix: add option to disable client-side pk generation by olavloite · Pull Request #930 · googleapis/python-spanner-django · GitHub
[go: up one dir, main page]

Skip to content
8000

fix: add option to disable client-side pk generation #930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 4, 2025
Merged

Conversation

olavloite
Copy link
Contributor

Add an option to disable client-side generation of primary key values. This makes it possible to use the Spanner Django dialect in combination with other Django dialects, without the Spanner Django PK generation interfering with the other dialect(s).

Fixes #783

olavloite and others added 3 commits June 2, 2025 14:35
Add an option to disable client-side generation of primary key values.
This makes it possible to use the Spanner Django dialect in combination
with other Django dialects, without the Spanner Django PK generation
interfering with the other dialect(s).

Fixes #783
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Jun 3, 2025
Base automatically changed from mock-server-tests to main June 3, 2025 12:23
olavloite added 2 commits June 3, 2025 15:32
Adds a configuration option for enabling/disabling client-side ID generation
using a random UUID. This allows users to better control ID generation when
using non-Spanner databases in combination with Spanner.

This option can in the future also be used for using IDENTITY columns for
ID generation.
@olavloite olavloite merged commit 9f7592d into main Jun 4, 2025
32 checks passed
@olavloite olavloite deleted the issue-783 branch June 4, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

django-spanner's autofield generation does not work for non-default spanner DBs
2 participants
0