app.enricher.db_enricher ======================== .. py:module:: app.enricher.db_enricher .. autoapi-nested-parse:: Common baseclass for all enricher strategies that access a database. Module Contents --------------- .. py:class:: DataBaseEnricherStrategy(engine: sqlalchemy.ext.asyncio.AsyncEngine) Baseclass for all database enrichers. .. py:method:: insert_enrichment(node: app.model.CompileRequest.Node, implementation: str, requested_inputs: dict[int, app.model.data_types.LeqoSupportedType], meta_data: app.model.CompileRequest.SingleInsertMetaData, session: sqlalchemy.ext.asyncio.AsyncSession | None = None) -> bool :async: Insert an enrichment :class:`~app.model.CompileRequest.ImplementationNode` for a given :class:`~app.model.CompileRequest.Node`. :param node: The node to insert the enrichment for. :param implementation: The implementation to insert :param requested_inputs: The (parsed) requested inputs for that node. :param meta_data: meta data for that node :param session: The optional database session to use :return: Whether the insert was successful.