snowflake.core.FQN¶
- class snowflake.core.FQN(database: str | None, schema: str | None, name: str, signature: str | None = None)¶
Bases:
objectRepresents an object identifier, supporting fully qualified names.
The instance supports builder pattern that allows updating the identifier with database and schema from different sources.
Examples
Attributes
- database¶
- identifier¶
- name¶
- prefix¶
Methods
- classmethod from_string(identifier: str) FQN¶
Take in an object name in the form [[database.]schema.]name and return a new
FQNinstance.- Raises:
InvalidIdentifierError – If the object identifier does not meet identifier requirements.
- to_dict() dict[str, str | None]¶
Return the dictionary representation of the instance.