Add context menu to display database tables stats (#639)

* Add context menu to display database tables stats

* Move table stats implementation into client
This commit is contained in:
Dan Sosedoff
2023-01-23 14:10:26 -06:00
committed by GitHub
parent 06212b4c34
commit 5b2d4e4454
8 changed files with 94 additions and 0 deletions

View File

@@ -335,6 +335,10 @@ func (client *Client) TableConstraints(table string) (*Result, error) {
return res, err
}
func (client *Client) TablesStats() (*Result, error) {
return client.query(statements.TablesStats)
}
// Returns all active queriers on the server
func (client *Client) Activity() (*Result, error) {
if client.serverType == cockroachType {