Skip to content

API Reference parrot.knowledge.wiki.schema.render

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.wiki.schema.render

View source

Deterministic projection of schema records into wiki pages (FEAT-600 M1).

Alias ColumnRecord

Re-exported from parrot.knowledge.wiki.schema.models.ColumnRecord.

Attribute Edge

Alias SchemaSourceConfig

Re-exported from parrot.knowledge.wiki.schema.models.SchemaSourceConfig.

Alias TableMetadata

Re-exported from parrot.knowledge.wiki.schema.table_metadata.TableMetadata.

Alias TableRecord

Re-exported from parrot.knowledge.wiki.schema.models.TableRecord.

Attribute VOLATILE_FIELDS

Type: tuple[str, ...]

Alias WikiPageRecord

Re-exported from parrot.knowledge.wiki.store.WikiPageRecord.

Function content_hash

Return the stable SHA-1 of metadata excluding volatile fields.

content_hash(metadata: TableMetadata) -> str

Parameter Type Default Description
metadata TableMetadata The database metadata to normalize.

Returns: str — SHA-1 hexadecimal digest of its durable JSON projection.

Function render_ddl

Render canonical CREATE TABLE SQL for the record's dialect.

render_ddl(record: TableRecord) -> str

Parameter Type Default Description
record TableRecord Table record to project.

Returns: str — Pretty, deterministic CREATE TABLE SQL.

Function render_page

Project a table record into its page, column rows, and relation edges.

render_page(record: TableRecord) -> tuple[WikiPageRecord, list[ColumnRecord], list[Edge]]

Parameter Type Default Description
record TableRecord Table record to render.

Returns: tuple[WikiPageRecord, list[ColumnRecord], list[Edge]] — Page, column records, and provenance-bearing relation edges.

Function render_schema_page

Render a schema page listing its tables.

render_schema_page(origin: str, schema: str, table_ids: list[str]) -> WikiPageRecord

Parameter Type Default Description
origin str Source alias.
schema str Database schema name.
table_ids list[str] Table concept IDs in the schema.

Returns: WikiPageRecord — Schema wiki page.

Function render_source_page

Render a source page containing configuration names but never a DSN value.

render_source_page(cfg: SchemaSourceConfig) -> WikiPageRecord

Parameter Type Default Description
cfg SchemaSourceConfig Source configuration to project.

Returns: WikiPageRecord — Source wiki page.

Alias schema_concept_id

Re-exported from parrot.knowledge.wiki.schema.ids.schema_concept_id.

Alias source_concept_id

Re-exported from parrot.knowledge.wiki.schema.ids.source_concept_id.

Alias table_concept_id

Re-exported from parrot.knowledge.wiki.schema.ids.table_concept_id.

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