gorm-bulk-insert
gorm-bulk-insert copied to clipboard
implement BulkInsert using gorm, just pass a Slice of Struct. Simple and compatible.
This PR is a follow-up of #50. ## Method only accepts a slice of struct for returning values Previous PR accepts both slice of PK and slice of struct, but...
This is the my testing example which set up the database using dockertest: ```go package main import ( "encoding/json" "fmt" "log" "net/url" "os" "time" "github.com/jinzhu/gorm" _ "github.com/lib/pq" "github.com/ory/dockertest" gormbulk "github.com/t-tiger/gorm-bulk-insert/v2"...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20210921155107-089bfa567519 to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...