-
I have a table that has a unique constraint UNIQUE(parent_id, child_index) I can't figure out how to target this in DoUpdate(
target: []
) |
Beta Was this translation helpful? Give feedback.
Answered by
simolus3
Apr 24, 2022
Replies: 1 comment 1 reply
-
You can access the columns as getters on the table: await into(yourTable).insert(value, onConflict: DoUpdate(otherValue, target: [yourTable.parentId, yourTable.childIndex])); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
m-haisham
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can access the columns as getters on the table: