snowflake.core.roleΒΆ

Manages Snowflake user roles.

Example

>>> role_name = "test_role"
>>> test_role = Role(name=role_name, comment="test_comment")
>>> created_role = roles.create(test_role)
>>> roles[role_name].delete()
Copy

Classes

Role(name[, comment, created_on, owner, ...])

A model object representing the Role resource.

RoleCollection(root)

Represents the collection operations on the Snowflake Role resource.

RoleResource(name, collection)

Represents a reference to a Snowflake role.

Securable(*[, database, schema, service])

A model object representing the Securable resource.

ContainingScope(*, database[, schema])

A model object representing the ContainingScope resource.

Grant(*[, securable, containing_scope, ...])

A model object representing the Grant resource.