-
Notifications
You must be signed in to change notification settings - Fork 8
Generate drift tables #127
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
…e, but set in getModel
…d warning for lists and maps that they are not generated
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.
It should be specified that custom converters are not supported for drift (unless we add support for them)
…ntal/generate-drift-tables # Conflicts: # lib/writer/object_model_writer.dart
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.
Not sure if all the test cover all cases. We should maybe create a list of edgecases and check if the tests are covering those edge cases as well
@@ -0,0 +1 @@ | |||
// Should throw an error |
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.
Maybe we should also indicate why it should throw here?
Added jsonValue field in enums
Feature/#126 use config in tests
|
improve error handling.
Also, specify if it is a map or array. We already know this. |
There is no error thrown when I create a table. without a primary key. |
Question: what happens if we want to add an extra field that is not returned from the API? And we don't want to be creating an extra table, and add complexity of doing a lookup in that extra table? |
When using a |
Tables generate 1 enter to much. after all columns |
A generated table imports
but it is never needed. config
|
There is 1 big bug I thinks with enums. This is the config
This is generated.
I would expect the BookCategory in the |
Note that this is added in the config in pubspec.yaml
|
I'll add |
I've added extra_imports_for_table and type_converter_for_table for this |
…, extra_imports_for_table
Added a nullable enum converter for non-required fields |
Decline for now. Can be revisited in the future |
No description provided.