Add /api/schemas endpoint to list all database schemas

This commit is contained in:
Dan Sosedoff
2015-03-30 23:58:04 -05:00
parent 786081aafa
commit f0552ab72d
3 changed files with 18 additions and 0 deletions

View File

@@ -87,6 +87,10 @@ func (client *Client) Databases() ([]string, error) {
return client.fetchRows(PG_DATABASES)
}
func (client *Client) Schemas() ([]string, error) {
return client.fetchRows(PG_SCHEMAS)
}
func (client *Client) Tables() ([]string, error) {
return client.fetchRows(PG_TABLES)
}