func GetDatabeSizeResult(db *sqlx.DB) interface{} { r := DatabaseSizeResult{} err := db.Get(&r, DatabaseSizeSql) if err != nil { log.Fatal(err) } return r }
func GetNumberOfConnectionResult(db *sqlx.DB) interface{} { r := NumberOfConnectionResult{} err := db.Get(&r, NumberOfConnectionSql) if err != nil { log.Fatal(err) } return r }
func GetTableBloatResult(db *sqlx.DB) interface{} { r := []TableBloatDatabaseResult{} err := db.Select(&r, TableBloatSql) if err != nil { log.Fatal(err) } return r }
func GetTransactionNumberResult(db *sqlx.DB) interface{} { if *verbose { log.Printf("Fetch Transaction Number") } r := TransactionNumberResult{} err := db.Get(&r, TransactionNumberSql) if err != nil { log.Fatal(err) } return r }
func GetDatabeSizeResult(db *sqlx.DB) interface{} { if *verbose { log.Printf("Fetch Database Size") } r := DatabaseSizeResult{} err := db.Get(&r, DatabaseSizeSql) if err != nil { log.Fatal(err) } return r }
func GetNumberOfConnectionResult(db *sqlx.DB) interface{} { if *verbose { log.Printf("Fetch Number of Connections") } r := NumberOfConnectionResult{} err := db.Get(&r, NumberOfConnectionSql) if err != nil { log.Fatal(err) } return r }
func GetTableBloatResult(db *sqlx.DB) interface{} { if *verbose { log.Printf("Fetch Tables Bloat") } r := []TableBloatDatabaseResult{} err := db.Select(&r, TableBloatSql) if err != nil { log.Fatal(err) } return r }