snowflake.core.Root¶
- class snowflake.core.Root(connection: SnowflakeConnection | Session)¶
Bases:
objectThe entry point of the Snowflake Core Python APIs that manage the Snowflake objects.
- Parameters:
connection – A
SnowflakeConnectionor SnowparkSessioninstance.
Example
Create a Root instance:
Use the root instance to access resource management APIs:
Attributes
- compute_pools¶
- connection¶
Return the connection in use.
This is the connection used to create this Root instance, or the Snowpark session’s connection if this root is created from a session.
- databases¶
- grants¶
- parameters¶
- roles¶
- session¶
Returns the session that is used to create this Root instance.
- users¶
- warehouses¶
Methods
- __init__(connection: SnowflakeConnection | Session) None¶