Skip to content
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

Upsert with autoincrement #5

Open
AUsachov opened this issue Jan 13, 2021 · 1 comment
Open

Upsert with autoincrement #5

AUsachov opened this issue Jan 13, 2021 · 1 comment

Comments

@AUsachov
Copy link

Let's say that we have tables:
parent {
id: autincrement
stuff: int },

child {
id: autoincrement,
parent_id,
data: int}

I want to upsert this tables. Upsert command for child will looks like
new UpsertChildCommand(uniqueKey(childEntity.data).identifier(some_data)) BUT unique key in child should be the combination parent_id and data. How i can handle it?

@effiban
Copy link
Contributor

effiban commented Jan 13, 2021

@AUsachov - can you please ask this on StackOverflow instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants