Skip to content

Database Capabilities

Database adapters own their notification, change-stream, queue-store, and agent tool implementations. Tenant scope settings remain engine-neutral, while each adapter owns its session SQL.

Agent Tool Providers

Pass a provider to build_tools to expose typed database operations to an agent. Constructing providers and registering tools opens no database connection.

BigQueryToolProvider

Bases: ToolProvider

Expose typed native BigQuery operations with lazy driver resolution.

SpannerToolProvider

Bases: ToolProvider

Expose typed native Spanner operations with lazy driver resolution.

Tenant Scope, Notifications & Change Streams

TenantScopeConfig

Bases: FrozenBaseStruct

Tenant column, optional parameter cast, and adapter-owned session setting.

SyncTenantConnectionScope

Synchronous tenant connection scope enforcing mandatory context reset or physical session eviction.

AsyncTenantConnectionScope

Asynchronous tenant connection scope enforcing mandatory context reset or physical session eviction.

SyncNotificationSource

Bases: Protocol

Capability protocol for synchronous database or cache pub/sub notification transports.

AsyncNotificationSource

Bases: Protocol

Capability protocol for asynchronous database or cache pub/sub notification transports.

SyncQueueStore

Bases: Protocol

Capability protocol for synchronous database-backed background job queues.

AsyncQueueStore

Bases: Protocol

Capability protocol for asynchronous database-backed background job queues.

PostgresNotifyConfig

Bases: FrozenBaseStruct

PostgreSQL notification and logical replication configuration.

SyncPostgresNotificationSource

Bases: SyncNotificationSource

Publish PostgreSQL notifications and stream live SyncPostgresListener frames.

AsyncPostgresNotificationSource

Bases: AsyncNotificationSource

Publish PostgreSQL notifications and stream live AsyncPostgresListener frames.

SyncPostgresQueueStore

Bases: _BasePostgresQueueStore, SyncQueueStore

Synchronous PostgreSQL queue store backed by SKIP LOCKED and atomic CTE updates.

AsyncPostgresQueueStore

Bases: _BasePostgresQueueStore, AsyncQueueStore

Asynchronous PostgreSQL queue store backed by SKIP LOCKED and atomic CTE updates.

PostgresChangeConfig

Bases: FrozenBaseStruct

Configuration for PostgreSQL logical replication CDC streaming.

PostgresChangeSource

Bases: AsyncChangeSource

Durable PostgreSQL logical replication change source backed by ChangeFeed.

Guarantees save-before-wire-ack semantics using single-flight shielded compare-and-swap checkpoint updates, reconciles uncertain commits against the durable checkpoint store before resuming yields, and exposes a bounded fail-closed aclose().

PostgresCheckpoint

Bases: FrozenBaseStruct

Durable CAS-versioned replication cursor paired with ChangeFeed position.

MemoryPostgresCheckpointStore

In-memory optimistic CAS checkpoint store enforcing single-writer fencing.

PostgresEmbeddingPushdown

Generate vectors with AlloyDB embedding() and search with pgvector.

OracleNotifyConfig

Bases: FrozenBaseStruct

Configuration for Oracle 26ai TxEventQ and DBMS_AQ notification streaming.

SyncOracleNotificationSource

Bases: SyncNotificationSource

Oracle 26ai TxEventQ / DBMS_AQ synchronous notification publisher and streaming listener.

AsyncOracleNotificationSource

Bases: AsyncNotificationSource

Oracle 26ai TxEventQ / DBMS_AQ notification publisher and streaming listener.

SyncOracleQueueStore

Bases: _BaseOracleQueueStore, SyncQueueStore

Synchronous Oracle queue store backed by FOR UPDATE SKIP LOCKED and MERGE leases.

AsyncOracleQueueStore

Bases: _BaseOracleQueueStore, AsyncQueueStore

Asynchronous Oracle queue store backed by FOR UPDATE SKIP LOCKED and MERGE leases.

SyncRedisNotificationSource

Bases: SyncNotificationSource

Publish Redis notifications and stream live SyncRedisListener frames.

AsyncRedisNotificationSource

Bases: AsyncNotificationSource

Publish Redis notifications and stream live AsyncRedisListener frames without blocking the event loop.

SyncValkeyNotificationSource

Bases: SyncNotificationSource

Publish Valkey notifications and stream live SyncValkeyListener frames.

AsyncValkeyNotificationSource

Bases: AsyncNotificationSource

Publish Valkey notifications and stream live AsyncValkeyListener frames.

SyncSpannerQueueStore

Bases: _BaseSpannerQueueStore, SyncQueueStore

Synchronous Cloud Spanner queue store backed by interactive ReadWrite transactions.

AsyncSpannerQueueStore

Bases: _BaseSpannerQueueStore, AsyncQueueStore

Asynchronous Cloud Spanner queue store backed by interactive ReadWrite transactions.

SyncSpannerChangeStreamSource

Bases: _BaseSpannerChangeStreamSource[_SyncSelectDriver], SyncChangeSource

Synchronous Cloud Spanner reader with constructor-bound stream defaults.

AsyncSpannerChangeStreamSource

Bases: _BaseSpannerChangeStreamSource[_AsyncSelectDriver], AsyncChangeSource

Asynchronous Cloud Spanner reader with constructor-bound stream defaults.