mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-06-04 21:20:20 +08:00
feat(sqlx): support for custom Acceptable function (#3405)
This commit is contained in:
@@ -32,7 +32,5 @@ func mysqlAcceptable(err error) bool {
|
||||
}
|
||||
|
||||
func withMysqlAcceptable() SqlOption {
|
||||
return func(conn *commonSqlConn) {
|
||||
conn.accept = mysqlAcceptable
|
||||
}
|
||||
return WithAcceptable(mysqlAcceptable)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user