-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.go
34 lines (31 loc) · 1.1 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"DepthInspection/InspectionItem"
"DepthInspection/ResultOutput/PDF"
"DepthInspection/api/PublicClass"
"DepthInspection/flag"
"time"
)
var OutputPdf PDF.OutPutWayInter = &PDF.OutputWayStruct{}
func main() {
//配置文件初始化
PublicClass.CheckBeginTime = time.Now().Format("2006-01-02 15:04:05")
flag.ParameterCheck()
PublicClass.ConfigInit()
PublicClass.YamlconfigInit()
//查询数据初始化,将用到的数据初始化到内存中
PublicClass.QueryDbDateInit()
InspectionItem.DatabaseConfigCheck(PublicClass.ConfigurationCanCheck)
var c = &InspectionItem.DatabaseBaselineCheckStruct{}
c.BaselineCheckTablesDesign()
c.BaselineCheckColumnsDesign()
c.BaselineCheckIndexColumnDesign()
c.BaselineCheckProcedureTriggerDesign()
c.BaselineCheckUserPriDesign()
c.BaselineCheckPortDesign()
c.DatabasePerformanceStatusCheck()
c.DatabasePerformanceTableIndexCheck()
PublicClass.CheckEndTime = time.Now().Format("2006-01-02 15:04:05")
PublicClass.CheckTimeConsuming,_ = PublicClass.Strea.GetTimeSecondsArr(PublicClass.CheckBeginTime,PublicClass.CheckEndTime)
OutputPdf.OutPdf()
}