forked from go-gorp/gorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert slice arguments in mappers into flat values
As discussed in [1], sometimes the caller wants to use a slice in the mapper arguments and the driver does not support it. This patch will convert slices from the mapper into simple values, modifying the SQL to add more placeholders and the mapper, to put each slice item as an unique entry. This behaviour is optional and by default will be disabled. [1] go-gorp#5
- Loading branch information
1 parent
6032c66
commit 7f61e35
Showing
1 changed file
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters