EctoDBScanner.SchemaScope (EctoDBScanner v0.5.0)

Copy Markdown View Source

Applies schema include/exclude filtering to catalog queries.

System schemas (information_schema, pg_catalog, pg_toast) are always excluded. The :schemas scan option restricts the scan to only the listed schemas; :exclude_schemas skips additional schemas on top of the system ones.

Summary

Functions

Applies schema filters to query.

The schemas that are always excluded from scans.

Functions

apply_scope(query, options, field_name)

Applies schema filters to query.

The query must tag the binding that carries the schema name with as: :schema_scope; field_name is the schema-name field on that binding (:table_schema for information_schema relations, :nspname for pg_namespace, and so on).

system_schemas()

The schemas that are always excluded from scans.