SYSTEM$GET_ALL_REFERENCES

functionsupportedNative apps, listings & sharing

docs.snowflake.com ↗

System functions

Iterates through all associations for a reference and returns information about the associations.

Syntax

supportedpartialnot supportednot scored

SYSTEM$GET_ALL_REFERENCES('<reference_name>' [, <include_details> ])

Parameters

NameRequiredDescription
'reference_name'requiredThe name of the reference.
include_detailsoptionalSpecifies whether to include the names of the associated objects. Accepts a BOOLEAN value. For more information, see Returns. Default: FALSE.

Returns

Returns a VARCHAR value that contains a JSON array: - If include_details is FALSE or omitted, each element is a system-generated association alias. - If include_details is TRUE, each element is an object with these fields: alias: The system-generated alias of the association. - database: The parent database name of the consumer object, or null if the object doesn’t reside in a database. - schema: The parent schema name of the consumer object, or null if the object doesn’t reside in a schema. - name: The name of the consumer object. For a function or procedure, this includes its argument signature. A bound single-valued reference returns one element. A multi-valued reference returns one element for each association. If the reference has no associations, the array is empty ([]).