We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gorm
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
在 Open 方法中,进来就是一个不知为啥进行的一个排序:
Open
sort.Slice(opts, func(i, j int) bool { _, isConfig := opts[i].(*Config) _, isConfig2 := opts[j].(*Config) return isConfig && !isConfig2 })
结合上下文想了想,这里其实是把用户传入的 gorm.Option 进行了排序,并把 gorm.Config 类型的配置放到了前面。
gorm.Option
gorm.Config
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在
Open
方法中,进来就是一个不知为啥进行的一个排序:结合上下文想了想,这里其实是把用户传入的
gorm.Option
进行了排序,并把gorm.Config
类型的配置放到了前面。The text was updated successfully, but these errors were encountered: