增加生成dao的模版

This commit is contained in:
2022-05-16 14:06:41 +08:00
parent f9d322e453
commit da6e156f11
3 changed files with 69 additions and 6 deletions

View File

@ -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"))
}