Skip to content

API Reference parrot.knowledge.wiki.schema.producers.ddl

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

parrot.knowledge.wiki.schema.producers.ddl

View source

DDL producer — fold .sql files into TableRecords with sqlglot, no database needed (FEAT-600 M3).

Alias Completeness

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

Alias TableMetadata

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

Alias TableRecord

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

Alias content_hash

Re-exported from parrot.knowledge.wiki.schema.render.content_hash.

Alias file_concept_id

Re-exported from parrot.knowledge.wiki.repo_scan.file_concept_id.

Function fold_ddl

Fold SQL files into DDL-backed table records without raising on bad statements.

fold_ddl(files: list[Path], *, origin: str, dialect: str, root: Path, default_schema: str = 'public') -> tuple[list[TableRecord], dict[str, str]]

Parameter Type Default Description
files list[Path]
origin str
dialect str
root Path
default_schema str 'public'

Returns: tuple[list[TableRecord], dict[str, str]]

Function split_statements

Split SQL at semicolons outside quotes and dollar-quoted bodies.

split_statements(sql_text: str) -> list[str]

Parameter Type Default Description
sql_text str

Returns: list[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