Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add global variable QueryClauses (#65)
add a global variable QueryClause. So we can add our own Clause before create a gorm.DB. ``` go // add WINDOW clause mysql.QueryClauses = []string{"SELECT", "FROM", "WHERE", "WINDOW", "GROUP BY", "ORDER BY", "LIMIT", "FOR"} gorm.Open(mysql.Open(dsn)) ``` 我想给 gorm 写一个解析 WINDOW 窗口函数的库。 但 mysql 并没有提供全局变量 QueryClause。 所以我不能通过修改全局变量的方式去 RegisterDefaultCallbacks。
- Loading branch information