Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed Sep 24, 2020
1 parent aacd550 commit a70ab3f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 8 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ db_info:
database : oauth_db
type: 0 # 数据库类型:0:mysql , 1:sqlite , 2:mssql

# sqlite
# db_info:
# host : /Users/xxj/Downloads/caoguo # type=1的时候,host为yml文件全路径
# port :
# username :
# password :
# database :
# type: 1 # 数据库类型:0:mysql , 1:sqlite , 2:mssql
10 changes: 4 additions & 6 deletions data/view/cnf/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,16 @@ var TypeMysqlDicMp = map[string]string{
"integer": "int64",
}

// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型

// TypeMysqlMatchMp Fuzzy Matching Types.模糊匹配类型
var TypeMysqlMatchMp = map[string]string{
`^(tinyint)[(]\d+[)] unsigned`: "uint8",
`^(smallint)[(]\d+[)] unsigned`: "uint16",
`^(int)[(]\d+[)] unsigned`: "uint32",
`^(bigint)[(]\d+[)] unsigned`: "uint64",
`^(tinyint)[(]\d+[)]$`: "int8",
`^(smallint)[(]\d+[)]$`: "int16",
`^(int)[(]\d+[)]$`: "int",
`^(bigint)[(]\d+[)]$`: "int64",
`^(tinyint)[(]\d+[)]`: "int8",
`^(smallint)[(]\d+[)]`: "int16",
`^(int)[(]\d+[)]`: "int",
`^(bigint)[(]\d+[)]`: "int64",
`^(char)[(]\d+[)]`: "string",
`^(enum)[(](.)+[)]`: "string",
`^(varchar)[(]\d+[)]`: "string",
Expand Down

0 comments on commit a70ab3f

Please sign in to comment.