snowflake.snowpark.functions.is_database_role_in_session¶
- snowflake.snowpark.functions.is_database_role_in_session(role_name: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Returns True if the specified database role is granted to the current user and is currently in use; otherwise, returns False.
- Parameters:
role_name (ColumnOrName) – The name of the database role to check. Can be a string or a Column.
- Returns:
A Snowflake Column object representing the result of the check.
- Return type:
- Example::