Add Sequences to API.

This commit is contained in:
niiyz
2015-11-13 21:36:13 +09:00
parent 4c1bb758ce
commit 232790b452
4 changed files with 12 additions and 0 deletions

View File

@@ -136,6 +136,10 @@ func (client *Client) TableIndexes(table string) (*Result, error) {
return res, err
}
func (client *Client) Sequences() ([]string, error) {
return client.fetchRows(statements.PG_SEQUENCES)
}
// Returns all active queriers on the server
func (client *Client) Activity() (*Result, error) {
return client.query(statements.PG_ACTIVITY)