Skip to main content

open_postgres_with_oracle

Function open_postgres_with_oracle 

Source
pub fn open_postgres_with_oracle<O, V>(
    connection_string: &str,
    oracle: Arc<O>,
    vector: Option<Arc<V>>,
    config: EngineConfig,
) -> Result<EngineHandle<PostgresPersistenceStore, O, V>, PostgresStoreError>
where O: OraclePort + Send + Sync + 'static, V: VectorPort + Send + Sync + 'static,
Expand description

Convenience constructor: build a PostgresEngine<O, V> wired with a real oracle and the Postgres-backed pending-adjudication store.

Mirrors open_postgres but calls EngineHandle::new_with_pending_store so that QueuedForAdjudication rows are persisted and verdicts can be delivered via EngineHandle::submit_adjudication.

open_postgres (no-oracle variant) is left UNCHANGED.