Documentation
¶
Overview ¶
Package models defines the data structures used for representing SQL query usage information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryTableOp ¶
type QueryTableOp struct {
QueryName string `json:"-"`
Operations []TableOperation `json:"operations"`
}
QueryTableOp represents the usage information for a single query
type TableOperation ¶
type TableOperation struct {
Operation string `json:"operation"` // "select", "insert", "update", "delete"
Table string `json:"table"`
}
TableOperation represents a single table operation in a query
type UsageReport ¶
type UsageReport map[string][]TableOperation
UsageReport represents the complete usage report for all queries
Click to show internal directories.
Click to hide internal directories.