Skip to content

API Reference parrot.migrations.checks

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

parrot.migrations.checks

View source

SELECT-only migration inspection, shared by status, doctor and startup.

Alias MigrationFile

Re-exported from parrot.migrations.models.MigrationFile.

Alias MigrationItem

Re-exported from parrot.migrations.models.MigrationItem.

Alias MigrationReport

Re-exported from parrot.migrations.models.MigrationReport.

Alias MigrationSet

Re-exported from parrot.migrations.models.MigrationSet.

Alias load_migrations

Re-exported from parrot.migrations.catalog.load_migrations.

Alias render_sql

Re-exported from parrot.migrations.catalog.render_sql.

Function status

Read selected ledger/check state without creating objects or taking a write lock.

status(dsn: str, *, sets: tuple[MigrationSet, ...], connect_timeout: float = 5.0, statement_timeout: float = 60.0) -> MigrationReport

Parameter Type Default Description
dsn str
sets tuple[MigrationSet, ...]
connect_timeout float 5.0
statement_timeout float 60.0

Returns: MigrationReport

Function verify_postconditions

Return failed identities; every check must yield exactly one boolean column and row.

Callers must probe their owned target relations before calling this shared executor. It intentionally executes each packaged check as one complete query and never attempts to infer relation names from SQL text.

verify_postconditions(conn: 'asyncpg.Connection', migrations: tuple[MigrationFile, ...], *, schema: str, bots_table: str) -> tuple[str, ...]

Parameter Type Default Description
conn 'asyncpg.Connection'
migrations tuple[MigrationFile, ...]
schema str
bots_table str

Returns: tuple[str, ...]

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