-
Notifications
You must be signed in to change notification settings - Fork 133
Automatically generate IDs and UIDs for entities and properties #25
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While dart can be run as a script, it's supposed to be compiled for "dartaotruntime" for production. Thus it can't really just read the model.json from the current directory. Or am I missing something?
All the other bindings handle this by including all necessary information (ID, UID, Type in DB) in the generated files.
However, it seems the model file could be embedded in a package with - https://pub.dev/packages/resource.
Since that still comes with a performance & size drawback, consider whether using parts of the original generator code would make sense, thus completely avoiding having to deal with resources and possibly two ways of loading the file (compiled vs in VM)
Also don't forget to rebase/merge changes from dev |
The remaining things before this PR can be merged:
|
I'm currently working on doing Queries, is the boolean / byte / double / long implementation for generating properties included in this branch? |
# Conflicts: # test/basics_test.dart # test/box_test.dart # test/test.dart
c46a64a
to
ab451b6
Compare
ab451b6
to
956f5a8
Compare
Merging this into dev, please add the missing class docs directly on dev branch @nalenz-objectbox |
See #18.