snowflake.core.database_role | Snowflake Documentation (original) (raw)
Manages Snowflake database roles.
Example
database_role_name = "test_database_role" database_role = DatabaseRole(name=database_role_name, comment="test_comment") created_database_role = database_roles.create(database_role) database_roles[database_role_name].drop()
Classes
DatabaseRole(*, name[, comment, created_on, ...]) | A model object representing the DatabaseRole resource. |
---|---|
DatabaseRoleCollection(database, root) | Represents the collection operations on the Snowflake DatabaseRole resource. |
DatabaseRoleResource(name, collection) | Represents a reference to a Snowflake database role. |
ContainingScope(*, database[, schema]) | A model object representing the ContainingScope resource. |
Securable(*[, database, schema, service]) | A model object representing the Securable resource. |
Grant(*[, securable, containing_scope, ...]) | A model object representing the Grant resource. |