Documentation
¶
Overview ¶
Package slowql provides everything needed to parse slow query logs from different databases (such as MySQL, MariaDB). Along to a parser, it proposes a simple API with few functions that allow you to get everything needed to compute your slow queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
// // GetNext returns the next query of the parser
// GetNext() Query
// // GetServerMeta returns informations about the SQL server in usage
// GetServerMeta() Server
ParseBlocks(rawBlocks chan []string)
ParseServerMeta(chan []string)
GetServerMeta() server.Server
}
Database is the parser interface
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds a slowql parser
func (*Parser) GetServerMeta ¶
GetServerMeta returns server meta information
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
example
command
|
|
|
slowql-digest
command
|
|
|
slowql-replayer
command
|
|
|
database
|
|
Click to show internal directories.
Click to hide internal directories.