Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForeachSQLQuery ¶
func ForeachSQLQuery(loader IteratorLoader, f func(Query) error) error
ForeachSQLQuery reads a query log file and calls the provided function for each normal SQL query in the log. If the query log contains directives, they will be read and queries will be skipped as necessary.
Types ¶
type IteratorLoader ¶
type Loader ¶
type Loader interface {
Load(filename string) IteratorLoader
}
type MySQLLogLoader ¶
type MySQLLogLoader struct{}
func (MySQLLogLoader) Load ¶
func (MySQLLogLoader) Load(fileName string) IteratorLoader
type SlowQueryLogLoader ¶
type SlowQueryLogLoader struct{}
func (SlowQueryLogLoader) Load ¶
func (SlowQueryLogLoader) Load(filename string) IteratorLoader
type VtGateLogLoader ¶
type VtGateLogLoader struct {
NeedsBindVars bool
}
func (VtGateLogLoader) Load ¶
func (vll VtGateLogLoader) Load(fileName string) IteratorLoader
Click to show internal directories.
Click to hide internal directories.