Add /api/schemas endpoint to list all database schemas
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user