Querying¶
-
pg_grant.query.get_all_table_acls(conn, schema=None)[source]¶ Get privileges for all tables, views, materialized views, and foreign tables.
Specify schema to limit the results to that schema.
Returns: List of SchemaRelationInfoobjects.
-
pg_grant.query.get_table_acl(conn, name, schema=None)[source]¶ Get privileges for the table, view, materialized view, or foreign table specified by name.
If schema is not given, the table or view must be visible in the search path.
Returns: SchemaRelationInfo
-
pg_grant.query.get_all_column_acls(conn, schema=None)[source]¶ Get privileges for all table, view, materialized view, and foreign table columns.
Specify schema to limit the results to that schema.
Returns: List of ColumnInfoobjects.
-
pg_grant.query.get_column_acls(conn, table_name, schema=None)[source]¶ Get column privileges for the table, view, materialized view, or foreign table specified by name.
If schema is not given, the table or view must be visible in the search path.
Returns: List of ColumnInfoobjects.
-
pg_grant.query.get_all_sequence_acls(conn, schema=None)[source]¶ Unless schema is given, returns all sequences from all schemas.
Returns: List of SchemaRelationInfoobjects.
-
pg_grant.query.get_sequence_acl(conn, sequence, schema=None)[source]¶ If schema is not given, the sequence must be visible in the search path.
Returns: SchemaRelationInfo
-
pg_grant.query.get_all_function_acls(conn, schema=None)[source]¶ Unless schema is given, returns all functions from all schemas.
Returns: List of FunctionInfoobjects.
-
pg_grant.query.get_function_acl(conn, function_name, arg_types: Sequence[str], schema=None)[source]¶ If schema is not given, the function must be visible in the search path.
Returns: FunctionInfo
-
pg_grant.query.get_all_language_acls(conn)[source]¶ Returns: List of RelationInfoobjects.
-
pg_grant.query.get_language_acl(conn, language)[source]¶ Returns: RelationInfo
-
pg_grant.query.get_all_schema_acls(conn)[source]¶ Returns: List of RelationInfoobjects.
-
pg_grant.query.get_schema_acl(conn, schema)[source]¶ Returns: RelationInfo
-
pg_grant.query.get_all_database_acls(conn)[source]¶ Returns: List of RelationInfoobjects.
-
pg_grant.query.get_database_acl(conn, database)[source]¶ Returns: RelationInfo
-
pg_grant.query.get_all_tablespace_acls(conn)[source]¶ Returns: List of RelationInfoobjects.
-
pg_grant.query.get_tablespace_acl(conn, tablespace)[source]¶ Returns: RelationInfo
-
pg_grant.query.get_all_type_acls(conn, schema=None)[source]¶ Unless schema is given, returns all types from all schemas.
Returns: List of SchemaRelationInfoobjects.
-
pg_grant.query.get_type_acl(conn, type_name, schema=None)[source]¶ If schema is not given, the type must be visible in the search path.
Returns: SchemaRelationInfo