You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will throw a warning: This class used as a custom row class for which an insertable is generated. This means that it must define getters for all columns, but some are missing: anotherTable
It would be great if we can support generating toColumns which requires passing anotherTable to make that work.
So, user will be able to use toInsertable as following:
item.toInsertable(anotherTable: someId)
The text was updated successfully, but these errors were encountered:
A PR to change this behavior would be welcome, but this is not a priority for me. generateInsertable is meant for the case where you need some customization for a row class that roughly matches the structure drift expects. When that's not the case, you can always implement toColumns yourself.
If we try to build the generated code for the following tables:
It will throw a warning:
This class used as a custom row class for which an insertable is generated. This means that it must define getters for all columns, but some are missing: anotherTable
It would be great if we can support generating
toColumns
which requires passinganotherTable
to make that work.So, user will be able to use
toInsertable
as following:The text was updated successfully, but these errors were encountered: