We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{ PrepareStmt: true, })
gorm 开启 PrepareStmt,会在执行之前多执行一次 Prepare?想问下多执行一次 Prepare 和在 Execute 之前执行的 Prepare 有什么区别,这么做的目的是什么
The text was updated successfully, but these errors were encountered:
@jinzhu @a631807682
Sorry, something went wrong.
PrepareStmt is to support https://pkg.go.dev/database/sql#Conn.PrepareContext But the driver may implement prepare at the time of query, which may cause duplication.
PrepareStmt is to support pkg.go.dev/database/sql#Conn.PrepareContext But the driver may implement prepare at the time of query, which may cause duplication.
明白了,感谢大佬
jinzhu
a631807682
No branches or pull requests
Your Question
gorm 开启 PrepareStmt,会在执行之前多执行一次 Prepare?想问下多执行一次 Prepare 和在 Execute 之前执行的 Prepare 有什么区别,这么做的目的是什么
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: