Skip to content

Commit 05f51c7

Browse files
Comments
1 parent 1c1e481 commit 05f51c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

go/mysql/server_info.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package mysql
22

3-
import (
4-
gosql "database/sql"
5-
)
3+
import gosql "database/sql"
64

5+
// ServerInfo represents the online config of a MySQL server.
76
type ServerInfo struct {
87
Version string
98
Hostname string
@@ -19,6 +18,8 @@ type ServerInfo struct {
1918
ExtraPort gosql.NullInt64
2019
}
2120

21+
// GetServerInfo returns a ServerInfo struct representing
22+
// the online config of a MySQL server.
2223
func GetServerInfo(db *gosql.DB) (*ServerInfo, error) {
2324
var info ServerInfo
2425
query := `select /* gh-ost */ @@global.version, @@global.hostname, @@global.port,

0 commit comments

Comments
 (0)