Function mz_sql::pure::postgres::privileges::check_table_privileges
source · pub async fn check_table_privileges(
config: &Config,
client: &Client,
table_oids: &[Oid],
) -> Result<(), PlanError>
Expand description
Ensure that the user specified in config
has:
-SELECT
privileges for the identified tables
.
tables
’s elements should be of the structure [<schema name>, <table name>]
.
USAGE
privileges on the schemas references intables
.
§Panics
If config
does not specify a user.