spakky-sqlalchemy¶
SQLAlchemy 통합 - ORM, Repository, Transaction, Outbox Contribution
spakky-sqlalchemy는 spakky-data의 Repository/Transaction 계약을 SQLAlchemy engine과
session으로 구현하는 플러그인입니다. 처음 사용하는 경우에는
데이터베이스 가이드에서 도메인 Aggregate, ORM table,
Repository, @Transactional() UseCase를 한 흐름으로 확인하세요.
Outbox storage/table은 base plugin 본체가 아니라
spakky.contributions.spakky.outbox contribution으로 등록됩니다. load_plugins(include=...)
사용 시 spakky-outbox와 spakky-sqlalchemy가 모두 include set에 있어야 이
contribution이 로드됩니다. 설치 시에는 spakky-outbox를 별도로 추가하거나
spakky-sqlalchemy[outbox] extra를 사용하세요.
멱등 소비의 처리 기록 저장소는 spakky.contributions.spakky.event contribution으로
등록됩니다. spakky-event와 spakky-sqlalchemy[event]를 함께 설치하고 두 plugin을 모두
active 상태로 로드하면 ProcessedEventTable(spakky_event_inbox)과
SqlAlchemyProcessedEventStore, AsyncSqlAlchemyProcessedEventStore가 등록됩니다.
Agent state/signal/evidence persistence도 base plugin 본체가 아니라
spakky.contributions.spakky.agent contribution으로 등록됩니다. Durable @Agent
execution을 운영에서 사용하려면 spakky-agent와 spakky-sqlalchemy[agent]를
함께 설치하고 두 plugin을 모두 active 상태로 로드해야 합니다. 이 contribution은
SqlAlchemyAgentStateRepository, SqlAlchemyAgentSignalRepository,
SqlAlchemyAgentEvidenceRepository, SqlAlchemyAgentTaskStore(ITaskStore)와
AgentStateTable, AgentSignalTable, AgentEvidenceTable,
AgentConversationTurnTable을 등록합니다. 운영용 in-memory fallback은 제공하지 않습니다.
메인¶
initialize(app)
¶
Initialize the SQLAlchemy plugin.
Registers SQLAlchemy configuration, schema registry, session managers, and transaction handlers. Async Pods are only registered when DataConfig.support_async_mode is True.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
SpakkyApplication
|
The Spakky application instance. |
required |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/main.py
설정¶
SQLAlchemyConnectionConfig()
¶
Bases: BaseSettings
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/common/config.py
connection_string
instance-attribute
¶
SQLAlchemy database connection URL (e.g. postgresql+psycopg://user:pass@host/db).
sync_connection_string = None
class-attribute
instance-attribute
¶
Optional synchronous driver URL for databases requiring separate drivers.
For example sqlite+aiosqlite for async access and sqlite+pysqlite for sync. Omitted preserves the base connection_string for dual-mode drivers.
echo = False
class-attribute
instance-attribute
¶
If True, the engine logs all SQL statements to the default logger.
echo_pool = False
class-attribute
instance-attribute
¶
If True, the connection pool logs all checkout/checkin events.
DEFAULT_POOL_SIZE = 5
class-attribute
¶
Default number of connections in the pool.
DEFAULT_POOL_MAX_OVERFLOW = 10
class-attribute
¶
Default maximum overflow connections.
DEFAULT_POOL_TIMEOUT = 30.0
class-attribute
¶
Default seconds to wait when pool is exhausted.
DEFAULT_POOL_RECYCLE = -1
class-attribute
¶
Default connection recycle time (-1 = disabled).
DEFAULT_POOL_PRE_PING = False
class-attribute
¶
Default pre-ping setting.
pool_size = DEFAULT_POOL_SIZE
class-attribute
instance-attribute
¶
Number of connections to maintain persistently in the pool.
pool_max_overflow = DEFAULT_POOL_MAX_OVERFLOW
class-attribute
instance-attribute
¶
Maximum number of connections that can be opened beyond pool_size.
pool_timeout = DEFAULT_POOL_TIMEOUT
class-attribute
instance-attribute
¶
Seconds to wait before raising an error when the pool is exhausted.
pool_recycle = DEFAULT_POOL_RECYCLE
class-attribute
instance-attribute
¶
Recycle connections after this many seconds to prevent stale connections. Recommended when connecting through a proxy or firewall with idle timeouts.
pool_pre_ping = DEFAULT_POOL_PRE_PING
class-attribute
instance-attribute
¶
If True, tests each connection for liveness before returning it from the pool. Prevents errors caused by connections dropped by the database server.
async_pool_mode = 'queue'
class-attribute
instance-attribute
¶
Async pooling strategy. Use null when one engine serves multiple event loops.
NullPool never shares a connection or asyncio queue between loops. Queue capacity settings are ignored in this mode; database/server limits still apply. The synchronous connection manager retains its ordinary pool.
session_autoflush = True
class-attribute
instance-attribute
¶
If True, the session automatically flushes pending changes before queries.
session_expire_on_commit = True
class-attribute
instance-attribute
¶
If True, ORM objects are expired after each commit, forcing a reload on next access.
autocommit = True
class-attribute
instance-attribute
¶
If True, transactions are automatically committed after with statements. If False, transactions must be manually committed or rolled back.
ORM¶
VERSION_COLUMN_NAME = 'version'
module-attribute
¶
Column name that carries AbstractAggregateRoot.version in a mapped table.
AbstractTable
¶
Bases: DeclarativeBase, AsyncAttrs
Base table class for SQLAlchemy ORM integration with Spakky.
Use this class for infrastructure tables that don't map to domain models (e.g., outbox tables, audit logs). For tables that map to domain entities, use AbstractMappableTable instead.
AbstractMappableTable
¶
Bases: AbstractTable
Table class with domain object mapping support.
Use this class for tables that map to domain entities. Subclasses must implement from_domain() and to_domain() methods for bidirectional mapping.
optimistic_lock_mapper_args()
classmethod
¶
Build the mapper arguments that enable optimistic locking.
When the mapped domain type is an AbstractAggregateRoot and the table
has a UUID-typed version column, that column becomes the mapper's
version_id_col. The aggregate generates its own version, so
SQLAlchemy only compares the stored value
(version_id_generator=False) and never generates one.
Tables of child entities reached through relationships are left unversioned: only the aggregate root passes through a repository, which is where the loaded version is supplied.
A subclass that defines its own __mapper_args__ replaces the default
as usual in SQLAlchemy declarative mapping.
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Mapper keyword arguments, empty when optimistic locking does not apply. |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/orm/table.py
stores_domain_version(column)
staticmethod
¶
Tell whether a column can hold AbstractAggregateRoot.version as is.
Only a column whose Python value type is UUID takes the aggregate's
version without the table's own from_domain() conversion. Any other
column (a string copy of the version, an integer revision counter, ...)
belongs to the table author and is never written by the framework.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
column
|
ColumnElement[Any]
|
Candidate version column. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if the column's Python type is |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/orm/table.py
SchemaRegistry()
¶
Bases: ITagRegistryAware
Registry that maps domain types to SQLAlchemy table schemas.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/orm/schema_registry.py
metadata
property
¶
Return MetaData containing only tables registered via @Table tag.
This filters out tables that were defined but not scanned by the SpakkyApplication, ensuring only application-scoped tables are included.
Returns:
| Type | Description |
|---|---|
MetaData
|
MetaData with only @Table-tagged tables. |
get_type(domain_type)
¶
Look up the table class registered for the given domain type.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/orm/schema_registry.py
from_domain(aggregate)
¶
Convert a domain object to its corresponding table instance.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/orm/schema_registry.py
AbstractSpakkySqlAlchemyORMError
¶
영속성¶
POSTGRESQL_UNIQUE_VIOLATION_SQLSTATE = '23505'
module-attribute
¶
SQLSTATE PostgreSQL drivers report for a unique or primary key violation.
SQLITE_UNIQUE_VIOLATION_ERROR_NAMES = frozenset({'SQLITE_CONSTRAINT_UNIQUE', 'SQLITE_CONSTRAINT_PRIMARYKEY'})
module-attribute
¶
SQLite extended result code names for a unique or primary key violation.
INSERT_STATEMENT_PREFIX = 'INSERT'
module-attribute
¶
Leading keyword of the SQL statements that create rows.
CannotDetermineAggregateTypeError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when aggregate type cannot be resolved from generic parameters.
AbstractGenericRepository(session_manager, schema_registry, aggregate_collector)
¶
Bases: IGenericRepository[AggregateRootT, AggregateIdT], ABC
Generic repository implementation for SQLAlchemy.
This class provides basic CRUD operations using SQLAlchemy sessions. It serves as a base class for specific entity repositories.
Resolve aggregate type from generic parameters and store dependencies.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/repository.py
AbstractAsyncGenericRepository(session_manager, schema_registry, aggregate_collector)
¶
Bases: IAsyncGenericRepository[AggregateRootT, AggregateIdT], ABC
Async generic repository implementation for SQLAlchemy.
This class provides basic CRUD operations using SQLAlchemy's async sessions. It serves as a base class for specific entity repositories that require async support.
Resolve aggregate type from generic parameters and store dependencies.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/repository.py
Transaction(config, session_manager)
¶
Bases: AbstractTransaction
SQLAlchemy synchronous transaction implementation.
Initialize with autocommit config and session manager.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/transaction.py
AsyncTransaction(config, session_manager)
¶
Bases: AbstractAsyncTransaction
SQLAlchemy asynchronous transaction implementation.
Initialize with autocommit config and async session manager.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/transaction.py
initialize()
async
¶
Open a new async session bound to the new physical transaction.
join()
async
¶
Use the async session of the joined physical transaction.
leave()
async
¶
Stop using the async session of the joined physical transaction.
dispose()
async
¶
Close the top async session and return to the one below.
commit()
async
¶
rollback()
async
¶
SessionNotInitializedError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when trying to access a session that has not been initialized.
SessionNotBoundError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when a joined transaction has no session in the current context.
Every physical transaction opened through open() keeps its session on
the context's stack, and a context that joins it inherited that stack. A
missing session means join() was called for a transaction this session
manager never opened.
SessionSlot(session, transaction)
dataclass
¶
The session of one physical transaction.
The slot is bound to the physical transaction that owns the session. The transaction object is shared by every execution context that copied the session stack, so the moment it finishes is seen at once by child tasks and threads that still hold the slot.
SessionManager(connection_manager)
¶
Bases: IApplicationContextAware
Manages synchronous SQLAlchemy sessions per execution context.
Each execution context keeps a stack of session slots that mirrors its
transaction scopes. open() pushes a new session bound to a new
physical transaction (the outermost scope or Propagation.REQUIRES_NEW)
and close() pops and closes it. join() pushes the slot of the
transaction a Propagation.REQUIRED scope joined and leave() pops
it. session is the session of the top slot, that is, of the physical
transaction the current scope belongs to.
The stack is an immutable tuple held in a ContextVar. A child task or
thread that copied the execution context starts from the parent's stack,
so it sees the parent's session, but the sessions it opens and closes stay
in its own context and never replace the session another task is using.
Once the transaction of the top slot has finished, session raises
TransactionAlreadyFinishedError instead of handing out the session
below it: a write never lands in a transaction other than the one its
scope belongs to.
Initialize with engine from connection manager.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
session
property
¶
The session of the physical transaction the current scope belongs to.
Raises:
| Type | Description |
|---|---|
SessionNotInitializedError
|
No session is open in this context. |
TransactionAlreadyFinishedError
|
That transaction has already committed or rolled back. |
open(transaction)
¶
Open a new session for a new physical transaction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transaction
|
PhysicalTransaction
|
The physical transaction the session belongs to. |
required |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
join(transaction)
¶
Use the session of a transaction a scope joined in this context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transaction
|
PhysicalTransaction
|
The physical transaction joined by the scope. |
required |
Raises:
| Type | Description |
|---|---|
SessionNotBoundError
|
This context holds no session of it. |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
leave()
¶
Stop using the session pushed by join().
Raises:
| Type | Description |
|---|---|
SessionNotInitializedError
|
No session is open in this context. |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
close()
¶
Close the top session of the current context and return to the one below.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
AsyncSessionManager(connection_manager)
¶
Bases: IApplicationContextAware
Manages asynchronous SQLAlchemy sessions per execution context.
Each execution context keeps a stack of session slots that mirrors its
transaction scopes. open() pushes a new session bound to a new
physical transaction (the outermost scope or Propagation.REQUIRES_NEW)
and close() pops and closes it. join() pushes the slot of the
transaction a Propagation.REQUIRED scope joined and leave() pops
it. session is the session of the top slot, that is, of the physical
transaction the current scope belongs to.
The stack is an immutable tuple held in a ContextVar. A child task or
thread that copied the execution context starts from the parent's stack,
so it sees the parent's session, but the sessions it opens and closes stay
in its own context and never replace the session another task is using.
Once the transaction of the top slot has finished, session raises
TransactionAlreadyFinishedError instead of handing out the session
below it: a write never lands in a transaction other than the one its
scope belongs to.
Initialize with engine from async connection manager.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
session
property
¶
The session of the physical transaction the current scope belongs to.
Raises:
| Type | Description |
|---|---|
SessionNotInitializedError
|
No session is open in this context. |
TransactionAlreadyFinishedError
|
That transaction has already committed or rolled back. |
open(transaction)
async
¶
Open a new async session for a new physical transaction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transaction
|
PhysicalTransaction
|
The physical transaction the session belongs to. |
required |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
join(transaction)
async
¶
Use the session of a transaction a scope joined in this context.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transaction
|
PhysicalTransaction
|
The physical transaction joined by the scope. |
required |
Raises:
| Type | Description |
|---|---|
SessionNotBoundError
|
This context holds no session of it. |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
leave()
async
¶
Stop using the session pushed by join().
Raises:
| Type | Description |
|---|---|
SessionNotInitializedError
|
No session is open in this context. |
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
close()
async
¶
Close the top async session of the current context and return to the one below.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/session_manager.py
Connection managers for SQLAlchemy engines.
This module provides connection managers that handle SQLAlchemy engine lifecycle, including proper disposal on application shutdown.
ConnectionManager(config)
¶
Manages synchronous SQLAlchemy engine lifecycle.
Create a synchronous SQLAlchemy engine from configuration.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/connection_manager.py
connection
property
¶
Get the SQLAlchemy Engine instance.
AsyncConnectionManager(config)
¶
Bases: IAsyncService
Manages asynchronous SQLAlchemy engine lifecycle.
NullPool mode initializes the dialect before ApplicationContext startup completes, so concurrent loops cannot race its first-connect asyncio lock. Queue mode retains caller-owned disposal on the loop that owns connections; its lifecycle hooks intentionally do not open or dispose connections.
Create an asynchronous SQLAlchemy engine from configuration.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/connection_manager.py
connection
property
¶
Get the async SQLAlchemy Engine instance.
set_stop_event(stop_event)
¶
No polling loop: lifecycle hooks handle connection initialization.
start_async()
async
¶
Initialize NullPool's dialect before multiple loops can use it.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/connection_manager.py
stop_async()
async
¶
Dispose NullPool; QueuePool remains owned by its requesting loop.
dispose()
async
¶
Dispose the engine connection pool.
Must be called from the same event loop where connections were used.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/persistency/connection_manager.py
AbstractSpakkySqlAlchemyPersistencyError
¶
Outbox¶
SQLAlchemy contribution for the spakky-outbox feature.
initialize(app)
¶
Register SQLAlchemy-backed Outbox infrastructure.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/contributions/outbox.py
SQLAlchemy implementation of IOutboxStorage / IAsyncOutboxStorage.
SqlAlchemyOutboxStorage(session_manager, connection_manager, config=None)
¶
Bases: IOutboxStorage
Synchronous SQLAlchemy-based Outbox storage implementation.
- save(): uses the current transactional session (same TX as business data).
- fetch_pending/mark_published/increment_retry/mark_abandoned/ release_claim/purge_published: use independent sessions.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
__claimable_ids(session, candidates)
staticmethod
¶
Drop candidates whose partition key is headed by another instance.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
release_claim(message)
¶
Clear this relay's claim of an unpublished message in an independent session.
The row is updated only while claimed_at still equals the claim that
fetch_pending returned, so a newer claim by another instance stays.
A published or abandoned row keeps its claim; it is not pending any more.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
purge_published(older_than)
¶
Delete published rows older than older_than in an independent session.
published_at is NULL for pending and abandoned rows, so they stay.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
AsyncSqlAlchemyOutboxStorage(session_manager, connection_manager, config=None)
¶
Bases: IAsyncOutboxStorage
Asynchronous SQLAlchemy-based Outbox storage implementation.
- save(): uses the current transactional session (same TX as business data).
- fetch_pending/mark_published/increment_retry/mark_abandoned/ release_claim/purge_published: use independent sessions.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
__claimable_ids(session, candidates)
async
staticmethod
¶
Drop candidates whose partition key is headed by another instance.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
release_claim(message)
async
¶
Clear this relay's claim of an unpublished message in an independent session.
The row is updated only while claimed_at still equals the claim that
fetch_pending returned, so a newer claim by another instance stays.
A published or abandoned row keeps its claim; it is not pending any more.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
purge_published(older_than)
async
¶
Delete published rows older than older_than in an independent session.
published_at is NULL for pending and abandoned rows, so they stay.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/outbox/storage.py
SQLAlchemy table definition for the Outbox pattern.
OutboxMessageTable
¶
Bases: AbstractTable
Outbox message table for transactional outbox pattern.
This is an infrastructure table that doesn't map to a domain model, so it inherits from AbstractTable (not AbstractMappableTable).
Agent Persistence¶
SQLAlchemy contribution for the spakky-agent feature.
initialize(app)
¶
Register SQLAlchemy-backed agent persistence infrastructure.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/contributions/agent.py
SQLAlchemy repository implementations for spakky-agent contracts.
UNCOMMITTED_SIGNALS_KEY = 'spakky.agent.uncommitted_signals'
module-attribute
¶
Session.info key holding signals appended in still-open transactions.
SqlAlchemyAgentStateRepository(session_manager)
¶
Bases: IAgentStateRepository
SQLAlchemy materialized state repository for agent executions.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/repository.py
SqlAlchemyAgentSignalRepository(session_manager, publisher=None)
¶
Bases: IAgentSignalRepository
SQLAlchemy durable signal ledger that publishes rows after commit.
append only stages the ledger row against the transaction (or
savepoint) that wrote it. When a live publisher is wired, staged signals are
published only when the outermost transaction commits. Rolling back a
savepoint discards just the rows written inside it, and ending the outermost
transaction without commit (rollback or close()) discards the rest, so a
running agent is never woken for a signal that did not durably commit.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/repository.py
SqlAlchemyAgentEvidenceRepository(session_manager)
¶
Bases: IAgentEvidenceRepository
SQLAlchemy append-only repository for agent evidence artifacts.
Context origin references are indexed so a source erasure can find every run that read the source.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/repository.py
SqlAlchemyAgentTaskStore(session_manager)
¶
Bases: ITaskStore
SQLAlchemy conversation-history store keyed by conversation_id.
Turns are appended after the last stored position of the conversation and
read back in that order. When two writers append to one conversation at the
same time, the unique (conversation_id, position) constraint lets only
one of them succeed; the other fails with
AgentConversationAppendConflictError instead of interleaving turns.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/repository.py
SQLAlchemy schema mappings for spakky-agent persistence contracts.
AgentStateTable
¶
AgentSignalTable
¶
AgentEvidenceTable
¶
Bases: AbstractMappableTable[AgentEvidence]
Append-only evidence table for agent execution artifacts.
restore(origin_refs)
¶
Rebuild the evidence with its origin index rows.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/table.py
AgentEvidenceOriginTable
¶
AgentConversationTurnTable
¶
Bases: AbstractTable
Append-only transcript table for server-side agent conversations.
A turn is identified inside its conversation by position. The unique
constraint keeps two writers from storing the same position, so a transcript
can never be reordered or interleaved silently.
to_turn()
¶
Rebuild the conversation turn stored in this row.
Source code in plugins/spakky-sqlalchemy/src/spakky/plugins/sqlalchemy/agent/table.py
에러¶
AbstractSpakkySqlAlchemyError
¶
추가 모듈¶
Errors for SQLAlchemy-backed agent persistence.
AgentPersistenceRowNotFoundError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when an agent persistence row cannot be found.
AgentSignalTransactionMissingError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when a staged agent signal has no transaction to commit with.
AgentConversationAppendConflictError
¶
Bases: AbstractSpakkySqlAlchemyPersistencyError
Raised when another writer appended to the same conversation first.