Skip to content

Is it possible with SqlBoiler to insert a Team with it's has-many Players using a single insert? #960

Answered by aarondl
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

There's no bulk-insertion supported by sqlboiler right now, they will always all be a separate query.

You could try team.AddPlayers(..., true) which will insert them for you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephenafamo
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