-
I have a table like this:
I am using DOA to insert the data Problem when I try to insert with it:
I got this: The reason seem to be the Does it mean, I can't use DOA to insert data? Instead, I should write own query statement for it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Generated data classes are meant to hold a full row in a table. For inserts, you may only need partial data (e.g. to skip the columns with default values). Moor generates companion classes for this purpose: doa.InsertMeta(MetaCompanion.insert(key: 'key 1', value: 'meta value')); |
Beta Was this translation helpful? Give feedback.
Generated data classes are meant to hold a full row in a table. For inserts, you may only need partial data (e.g. to skip the columns with default values). Moor generates companion classes for this purpose: