Skip to content

namespace_dao

Namespace data access object (DAO)

Attributes

Classes

NamespaceDao

NamespaceDao(session: Session)

Bases: BaseDao

Namespace data access object (DAO)

Attributes

model_class property
model_class: Type[Namespace]

Functions

get_by_name
get_by_name(name: str) -> Optional[Namespace]
get_namespace
get_namespace(
    resource_key: str,
    include_deleted: bool = False,
    include_disabled: bool = False,
) -> Namespace | None

Retrieve a Namespace by its primary key ID or name.

Parameters:

  • resource_key (str) –

    The primary key ID or name of the namespace.

Returns:

  • Namespace | None

    Namespace | None: The matching Namespace or None if not found.

list_namespaces
list_namespaces(
    include_deleted: bool = False,
    include_disabled: bool = False,
) -> List[Namespace]

Functions