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

can BulkInsert support my custom ValueGenerator for Id column #1512

Open
tlb-abdulqadir opened this issue Jun 3, 2024 · 1 comment
Open

Comments

@tlb-abdulqadir
Copy link

I have a custom value generator for my ID column in one of the entity. Something like:

select available_id from available_id_table where id  nextval('custom_sequence')

Would it be possible to respect this using BulkInsert operation?

@tlb-abdulqadir
Copy link
Author

I was thinking and think it'll be easier to it this way:

  • to insert X rows, I get X Ids first from the sequence
  • then, i assign those IDs explicitly before calling BulkInsert

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

1 participant