-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Hugo Blanc <eze-kiel@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
150 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package query | ||
|
||
import "time" | ||
|
||
// Query is a single SQL query and the data associated | ||
type Query struct { | ||
Time time.Time | ||
QueryTime float64 | ||
LockTime float64 | ||
ID int | ||
RowsSent int | ||
RowsExamined int | ||
RowsAffected int | ||
LastErrNo int | ||
Killed int | ||
BytesSent int | ||
User string | ||
Host string | ||
Schema string | ||
Query string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package server | ||
|
||
// Server holds the SQL server informations that are parsed from the header | ||
type Server struct { | ||
Binary string | ||
Port int | ||
Socket string | ||
Version string | ||
VersionShort string | ||
VersionDescription string | ||
} |
Oops, something went wrong.