Skip to content

API Reference parrot.bots.flows.core.gates.stores.sqlite

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.bots.flows.core.gates.stores.sqlite

View source

SQLite gate store — default local backend (FEAT-890 M2).

Alias GateRecord

Re-exported from parrot.bots.flows.core.gates.models.GateRecord.

Alias GateStatusValue

Re-exported from parrot.bots.flows.core.gates.models.GateStatusValue.

Class SQLiteGateStore

GateStore on one SQLite file; schema created on first use.

Parameter Type Default Description
path Path

Method SQLiteGateStore.put

Upsert one complete gate record.

put(record: GateRecord) -> None

Parameter Type Default Description
record GateRecord

Method SQLiteGateStore.compare_and_put

Update record iff the stored row still has expected_status, in one atomic statement.

SQLite serializes writers, so of two concurrent transitions from the same status only one matches.

compare_and_put(record: GateRecord, *, expected_status: GateStatusValue) -> bool

Parameter Type Default Description
record GateRecord The new state of the gate.
expected_status GateStatusValue Status the stored row must currently have.

Returns: bool — True when the row was updated; False when it is missing or its status differs.

Method SQLiteGateStore.get

Return the gate record identified by gate_id, if present.

get(gate_id: str) -> GateRecord | None

Parameter Type Default Description
gate_id str

Returns: GateRecord | None

Method SQLiteGateStore.pending

Return chronologically ordered pending records, optionally for one owner.

pending(owner: str | None = None) -> list[GateRecord]

Parameter Type Default Description
owner str | None None

Returns: list[GateRecord]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally