MCPcopy Index your code
hub / github.com/feast-dev/feast / delete_permission

Method delete_permission

sdk/python/feast/infra/registry/sql.py:1716–1724  ·  view source on GitHub ↗
(self, name: str, project: str, commit: bool = True)

Source from the content-addressed store, hash-verified

1714 )
1715
1716 def delete_permission(self, name: str, project: str, commit: bool = True):
1717 with self.write_engine.begin() as conn:
1718 stmt = delete(permissions).where(
1719 permissions.c.permission_name == name,
1720 permissions.c.project_id == project,
1721 )
1722 rows = conn.execute(stmt)
1723 if rows.rowcount < 1:
1724 raise PermissionNotFoundException(name, project)
1725
1726 def _list_projects(
1727 self,

Callers 3

applyMethod · 0.45
DeletePermissionMethod · 0.45
apply_diff_to_registryFunction · 0.45

Calls 3

deleteFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected