cerberusauth.repository.adapter package

Submodules

cerberusauth.repository.adapter.sql module

RepositoryAdapter for SQL storage.

class cerberusauth.repository.adapter.sql.SQLRepositoryAdapter(session)

Bases: cerberusauth.repository.adapter.RepositoryAdapterInterface

Repository adapter for SQL storage.

commit()

Commit a SQLAlchemy change.

count(cls)

Return a count of aggregate roots.

delete(aggregate_root)

Delete an aggregate root.

get(cls, aggregate_root_id)

Get an aggregate root.

get_by(cls, key, value)

Get an aggregate root.

save(aggregate_root)

Save a SQLAlchemy model.

cerberusauth.repository.adapter.sql.get_adapter_class()

Module contents

Adapters for Repositories.

class cerberusauth.repository.adapter.RepositoryAdapterInterface

Bases: object

Interface for RepositoryAdapter.

commit()

Commit a change.

count()

Return a count of aggregate roots.

delete(aggregate_root)

Delete an aggregate root.

get(aggregate_root_id)

Get an aggregate root.

get_by(key, value)

Get an aggregate root.

save(aggregate_root)

Save an aggregate root.

cerberusauth.repository.adapter.get_repository_adapter_class(storage_strategy=None)
cerberusauth.repository.adapter.repository_adapter_factory(session, storage_strategy=None)