Skip to content

Insert with autoIncrement() id error #1215

Answered by simolus3
mytc asked this question in Q&A
Discussion options

You must be logged in to vote

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'));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mytc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants