---
title: "Read a database's schema catalog"
description: ""
canonical: "https://pgbeam.com/docs/api/databases/getSchemaCatalog"
last-updated: "2026-09-14T19:37:21.000Z"
---

# Read a database's schema catalog

> 

URL: https://pgbeam.com/docs/api/databases/getSchemaCatalog

Connects to the upstream database read-only and returns its user relations (tables and views) and columns. Powers table/column autocomplete and view-aware warnings in the policy editor — relation kind distinguishes a view (whose masking/row-filters apply to the view itself, not its base tables) from a base table, and a per-column is_binary flag flags columns that mask to NULL. System schemas are excluded; nothing is persisted.