-
Notifications
You must be signed in to change notification settings - Fork 16
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
Composite Keys #147
Comments
No, you will have to add the constraints manually. |
You can try, but I don't think that trait covers complex cases like relations. |
We use this library too. For complex relationships we use |
That is not aligned with how laravel does things and may result in errors where string is expected to return from
This overrides a lot of the logic from the base framework and that's quite risky when upgrading the underlying framework. |
When at scale, Spanner docs often suggest using composite keys for the primary key, for example using a
ShardId
combined with the other columns, something likePRIMARY KEY (ShardId, Id)
Is there already a proper way to do this using this driver? And to handle things like many-to-many relationships with composite primary keys etc?
I see there is an existing library for composite keys in Eloquent in general, https://github.com/thiagoprz/eloquent-composite-key - is that compatible with this driver perhaps?
The text was updated successfully, but these errors were encountered: