NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::program::PostgreSQLProgramStore Class Referencefinal

Transactional PostgreSQL implementation of ProgramStore. More...

#include <postgres_store.h>

Inheritance diagram for neograph::program::PostgreSQLProgramStore:
[legend]
Collaboration diagram for neograph::program::PostgreSQLProgramStore:
[legend]

Protected Member Functions

bool offloads () const noexcept override
 libpq blocks for long: an awaited operation runs on a thread of the bounded pool (#556).
 

Additional Inherited Members

- Public Member Functions inherited from neograph::program::SyncProgramStore
bool completes_at_once () const noexcept
 True when every awaitable operation completes at once on the calling thread, not on a pool thread.
 
asio::awaitable< std::optional< ProgramActivation > > get_activation (std::string_view owner_scope) const final
 Owner-scoped activation lifecycle.
 
asio::awaitable< std::optional< ProgramActivationBinding > > get_active_binding (std::string_view owner_scope) const final
 Return one coherent activation/version tuple.
 
asio::awaitable< std::optional< ProgramBundle > > get_bundle (std::string_view owner_scope, std::string_view id) const final
 Owner-qualified lookups.
 
asio::awaitable< void > publish_admitted (const ProgramBundle &bundle, const ProgramVersion &version) final
 Atomically publish one admitted bundle/version tuple.
 

Detailed Description

Transactional PostgreSQL implementation of ProgramStore.

The store owns one libpq connection guarded by a mutex. Every mutating operation uses an explicit transaction, so a process crash cannot expose a partially published bundle/version or activation pointer.

Definition at line 22 of file postgres_store.h.


The documentation for this class was generated from the following file: