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

@@ -3,6 +3,8 @@ package main
const (
PG_DATABASES = `SELECT datname FROM pg_database WHERE NOT datistemplate ORDER BY datname ASC`
PG_SCHEMAS = `SELECT schema_name FROM information_schema.schemata ORDER BY schema_name ASC`
PG_INFO = `SELECT
session_user
, current_user