增加生成dao的模版
This commit is contained in:
@ -10,6 +10,8 @@ package mysql
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.zhangdeman.cn/zhangdeman/mysql/sql2go"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -42,5 +44,6 @@ func init() {
|
||||
// Date : 11:24 2022/5/16
|
||||
func TestGetCreateTableSQL(t *testing.T) {
|
||||
sys := &SystemDao{}
|
||||
fmt.Println(sys.GetCreateTableSQL(testDBClient.GetMaster(nil), "app"))
|
||||
sql, _ := sys.GetCreateTableSQL(testDBClient.GetMaster(nil), "app")
|
||||
fmt.Println(sql2go.GenerateDao(sql, "aaa"))
|
||||
}
|
||||
|
Reference in New Issue
Block a user