ddd.infrastructure.db_service

The db service is used to acquire connections to the database.

You will not use this base class directly. Instead, you use one of the implementations: PostgresDbService MemoryDbService or MemoryPostgresDbService.

Look at the documentation to figure out which one to use.

API

class ddd.infrastructure.db_service.db_service.DbService(log_service)

The db service base class.

Parameters

log_service – the log service.

async start()

Starts the db service.

async stop()

Stops the db service.