-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more warehouses to database permissions
- Loading branch information
1 parent
d2d3a81
commit 32396db
Showing
7 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
website/docs/reference/database-permissions/databricks-permissions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: "Databricks Permissions" | ||
--- | ||
|
||
## Example Databricks permissions | ||
|
||
``` | ||
-- NOTE: in general permissions can be granted on securable_objects to | ||
principals (can be user, service principal, or group) | ||
-- e.g.: grant privilege_type on securable_object to principal | ||
grant all privileges on schema schema_name to principal; | ||
grant create table on schema schema_name to principal; | ||
grant create view on schema schema_name to principal; | ||
``` | ||
|
||
Check out the [Official Documentation](https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/privileges.html#privilege-types-by-securable-object-in-unity-catalog) for more information. |
18 changes: 18 additions & 0 deletions
18
website/docs/reference/database-permissions/postgres-permissions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "Postgres Permissions" | ||
--- | ||
|
||
## Example Postgres permissions | ||
|
||
``` | ||
grant usage on database database_name to user_name; | ||
grant create schema on database database_name to user_name; | ||
grant usage on schema database.schema_name to user_name; | ||
grant create table on schema database.schema_name to user_name; | ||
grant create view on schema database.schema_name to user_name; | ||
grant usage on all schemas in database database_name to user_name; | ||
grant select on all tables in database database_name to user_name; | ||
grant select on all views in database database_name to user_name; | ||
``` | ||
|
||
Check out the [Official Documentation](https://www.postgresql.org/docs/current/sql-grant.html) for more information. |
18 changes: 18 additions & 0 deletions
18
website/docs/reference/database-permissions/redshift-permissions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "Redshift Permissions" | ||
--- | ||
|
||
## Example Redshift permissions | ||
|
||
``` | ||
grant usage on database database_name to user_name; | ||
grant create schema on database database_name to user_name; | ||
grant usage on schema database.schema_name to user_name; | ||
grant create table on schema database.schema_name to user_name; | ||
grant create view on schema database.schema_name to user_name; | ||
grant usage on all schemas in database database_name to user_name; | ||
grant select on all tables in database database_name to user_name; | ||
grant select on all views in database database_name to user_name; | ||
``` | ||
|
||
Check out the [Official Documentation](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html) for more information. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters