mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve unit testing case for driver feature og package gdb
This commit is contained in:
@ -48,7 +48,7 @@ func (d *MyDriver) HandleSqlBeforeExec(sql string) string {
|
||||
|
||||
func init() {
|
||||
// It here registers my custom driver in package initialization function "init".
|
||||
// You can later using this type in the configuration.
|
||||
// You can later use this type in the database configuration.
|
||||
gdb.Register(customDriverName, &MyDriver{})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user