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

struct bulk insert #2

Closed
wants to merge 2 commits into from

Conversation

petersunbag
Copy link
Contributor

Make InsertInto and InsertIntoForTag support for bulk insert

@petersunbag petersunbag closed this Jan 7, 2018
huandu pushed a commit that referenced this pull request Aug 19, 2019
huandu added a commit that referenced this pull request Jan 11, 2023
* ignore unexported fields that are not embedded structs

* fix #74 [BREAKING CHANGE] Select#GroupBy and Select#OrderBy behavior change.

Previous, GroupBy and OrderBy only keep the columns in the last call. Now, all columns are kept.

* fix #75 add Struct#Columns/ColumnsForTag and Struct#Values/ValuesForTag

* remove a call to StructField.IsExported as it is not in go1.13

* refs #78 add new `fieldas` tag to set AS name for SELECT

* update docs

* fix #81 refactory struct field parser to make fieldas correct in all cases

* Add Gitter badge

* Fix insert ignore for postgres and sqlite.

* fix test

Co-authored-by: Michał Dobaczewski <mdobak@gmail.com>
Co-authored-by: Huan Du <i@huandu.me>
Co-authored-by: The Gitter Badger <badger@gitter.im>
Co-authored-by: Zhong Ren <zhong@zhongren.me>
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

Successfully merging this pull request may close these issues.

1 participant