-
Notifications
You must be signed in to change notification settings - Fork 0
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 for Cloud Datastore in Dart without relying on dart:mirrors
#89
Comments
I'm one of those who would like to see this issue resolved. I also want to realize FaaS by Dart, but I'm about to give up due to the error of this dart compile :-( |
This is interesting to see here. If I'm not mistaken, defining these models is similar to the firestore problem that the If there is an irony, it's that |
Description:
I'm currently using the
gcloud
package in my Dart application to work with Cloud Datastore. However, I encountered an issue when trying to use the package with the Cloud Datastore due to the reliance on thedart:mirrors
package. Thedart compile
command fails with the following error:I believe it would be beneficial to provide an alternative way to define Datastore models without relying on the
dart:mirrors
package. This would enable the use of Cloud Datastore in Dart applications without encountering the reflection-related limitations imposed by the Dart runtime when callingdart compile
command.In the documentation, the usage of the
@db.Kind()
and@db.Property()
annotations from thegcloud
package is demonstrated. However, since Dart's AOT compilation does not supportdart:mirrors
, it would be helpful to have an alternative approach for defining Datastore models that doesn't rely on reflection.My use case:
I am trying to use the package to build a faas with functions-framework-dart . When building the tiny docker image, the
dart compile
command fails if I use Datastore library.The text was updated successfully, but these errors were encountered: