feat(sqlx): support for custom Acceptable function (#3405)

This commit is contained in:
chen quan
2023-07-10 09:16:45 +08:00
committed by GitHub
parent 31b9ba19a2
commit b71453985c
2 changed files with 9 additions and 3 deletions

View File

@@ -32,7 +32,5 @@ func mysqlAcceptable(err error) bool {
}
func withMysqlAcceptable() SqlOption {
return func(conn *commonSqlConn) {
conn.accept = mysqlAcceptable
}
return WithAcceptable(mysqlAcceptable)
}