Documentation
¶
Overview ¶
Package viewsql resolves what a Trino view reads, for the data policy checks over SECURITY DEFINER views (ADR 0028).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(catalogs []string, v connections.View) datapolicy.CatalogView
Resolve returns v, held by the catalog named catalogs on the engines, with the tables and views its SQL reads resolved against its default catalog and schema. A view without a default catalog resolves against the catalog that holds it. SQL that cannot be parsed marks the view unreadable: the checks then take it to read every policied table.
Types ¶
This section is empty.