-
Notifications
You must be signed in to change notification settings - Fork 293
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
Support --use-firestore-in-datastore-mode in the datastore emulator. #1406
Comments
We'd be happy to accept a contribution for this! Thanks! |
Hey, I took a look into this. Unfortunally, this requires a change in com.google.cloud.datastore.testing.LocalDatastoreHelper (to hand over the parameter to the emulator) which is not part of the Spring Integration - and I was not able to find that class here on GitHub, so it seems it is not open source. |
For everyone with the same problem: One can use Testcontainers as a workaround. |
For the record, |
Great, thanks for the link. I'll implement the feature in the near future. |
At the moment, the datastore emulator is not able to act as the "real" Firestore in Datastore mode.
To be specific, transactions do only allow ancestor queries. The emulator itself is capable of behaving like Firestore in Datastore mode, using the argument
--use-firestore-in-datastore-mode
- but one cannot set this in Spring.Datastore Docs: https://cloud.google.com/datastore/docs/firestore-or-datastore#in_datastore_mode
The text was updated successfully, but these errors were encountered: