ptah.run

module
v0.37.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: MIT

README

Ptah

Open-source database change management for schemas and persistent inference state.

English · 日本語 · Deutsch · Français

Status of the unit test workflow on the master branch Status of the integration test workflow on the master branch Status of the capability matrix workflow on the master branch, which probes every declared database release line The latest published release tag The Go package reference for ptah.run The lowest Go version this module compiles against, declared in go.mod The license badge, reading MIT

Install · Quick start · Inference migrations · Documentation · Database support

PostgreSQL    MySQL    MariaDB    SQLite    SQL Server    ClickHouse    CockroachDB    YugabyteDB    Oracle    Spanner    YDB

Ptah manages database change across schemas and persistent inference state. For schemas, it compares a desired schema with a live database and either writes versioned migrations or applies an approved plan directly. For inference state, it builds a candidate generation beside the active one, calls an external embedding endpoint, verifies the result, and switches consumers with a rollback path.

The command-line interface runs without a Go toolchain, and the same planning components are available as Go packages.

Schema changes

Both workflows use the same comparison and planning model. The difference is whether SQL becomes a reviewed artifact in version control before it runs.

Persistent inference state

Ptah orchestrates the migration; it does not run inference. It reads source rows, calls the external endpoint, and writes the candidate generation itself, leaving the active generation untouched until verification and cutover.

Prepare, backfill, catchup, index, and verify a candidate while the current generation serves queries. Cutover activates the candidate. Rollback restores an eligible previous generation. Retirement separately destroys an inactive generation with no eligible rollback dependency.

The inference migrations guide covers the specification, concurrent-change catch-up, evaluation, approvals, rollback, and retirement.

[!NOTE] Ptah is pre-GA. The native command tree and public Go API can still change.

Install

The installer selects the current release for Linux, macOS, or Windows, verifies its checksum, and installs ptah, ptah-compat, and ptah-ls under your home directory.

curl -fsSL https://ptah.run/install.sh | sh

In PowerShell:

irm https://ptah.run/install.ps1 | iex

The installation guide covers version pinning, signature verification, download-without-execution, and building from source.

YDB

YDB is supported through the official provider stokaro/ptah-ydb-plugin. It is installed separately, with a command of Ptah's own; the ptah binary, the archives and the container images carry no YDB code:

ptah providers install ydb

After the install, a command that names a ydb:// or ydbs:// URL, or the ydb dialect, uses the provider without a flag or a manifest. The provider plans, applies and reads YDB tables, native objects and views, runs versioned migrations, lints YQL and writes data, on YDB 25.1 and 26.2. Configure the YDB provider covers selection with a manifest, verification and the refusal codes.

DuckDB

Ptah supports embedded DuckDB through the official DuckDB plugin. Install it separately from Ptah:

ptah providers install duckdb

Use a duckdb:// URL to inspect a local file or in-memory database, plan and apply schema changes, and run versioned migrations. The plugin contains the native DuckDB library; the Ptah binary has no DuckDB dependency. MotherDuck and other network targets are outside this provider's scope. See the DuckDB provider guide for setup, supported operations, and limitations.

Try Ptah with SQLite

Save this desired schema as schema.sql:

CREATE TABLE users (
    id INTEGER PRIMARY KEY,
    email TEXT NOT NULL UNIQUE
);

Render the SQL, apply it to a throwaway database, and check that the database matches the file:

ptah schema render --schema-file schema.sql --dialect sqlite
ptah schema apply --db-url "sqlite://app.db" --schema-file schema.sql --auto-approve
ptah schema drift --db-url "sqlite://app.db" --schema-file schema.sql

Expected output includes:

CREATE TABLE "users" (

Expected output includes:

Schema apply completed successfully.

Expected output includes:

No schema drift detected.

The last command exits 0 when the database matches the file, which is what makes it usable as a CI gate. Remove app.db and schema.sql when you are done.

[!CAUTION] --auto-approve skips the confirmation prompt. A direct schema change can drop objects that the desired schema does not declare. Use it here only because app.db is disposable.

For a complete workflow with expected output and verification, use the direct schema changes tutorial or the versioned migrations tutorial.

Choose how schema changes land

Workflow Use it when Start with
Versioned migrations SQL files belong in code review and deployment history ptah migrations generate
Direct schema changes The desired schema is authoritative and you want to review and apply the plan now ptah schema plan

Schema sources can come from SQL, YAML, HCL, DBML, Go annotations, external loaders, or a live database. Database and feature coverage vary by engine; use the support matrix and ptah db capabilities --db-url <url> for the concrete target.

Explore the documentation

The site source lives in docs/site. docs/README.md indexes contributor and implementation documents outside the reader site.

Go packages and Atlas compatibility

Go projects can embed the documented packages, use annotated structs as schema sources, and run ptah-ls for editor support. Start with the public API ledger, reusable components, or Go annotations.

The separate ptah-compat binary exposes an Atlas-compatible command surface; the native ptah command tree does not use Atlas command paths. Ptah does not claim full Atlas parity. The compatibility overview and conformance results state the measured coverage and differences. The Atlas vs Ptah comparison explains licensing, workflows, database coverage, and where the tools differ.

License and help

Ptah is an independent clean-room implementation published under the MIT license. It does not use Atlas source code and is not affiliated with or endorsed by Ariga. The license boundary records the provenance policy.

The database marks above identify the engines Ptah supports and nothing more. Each belongs to its owner, and none of those owners endorses or sponsors Ptah. NOTICE says where each file came from and under which license.

Ask questions and share ideas in Discussions; report bugs and request features in the issue tracker. CONTRIBUTING.md covers what makes a report actionable and what a change has to pass, and participation is covered by the Code of Conduct. Commercial enquiries go to ask <at> stokaro.com.

Directories

Path Synopsis
Package atlascompat exposes narrow helpers for Atlas compatibility tooling.
Package atlascompat exposes narrow helpers for Atlas compatibility tooling.
Package catalog defines the database-agnostic model of an introspected live schema (Database and its tables, columns, indexes, and constraints) shared by the dbschema readers and writers and consumed by schema diffing.
Package catalog defines the database-agnostic model of an introspected live schema (Database and its tables, columns, indexes, and constraints) shared by the dbschema readers and writers and consumed by schema diffing.
cmd
capability-probe command
Command capability-probe measures a live database server against the capability preset Ptah hands out for it.
Command capability-probe measures a live database server against the capability preset Ptah hands out for it.
ptah command
ptah-compat command
ptah-ls command
Package config provides configuration options for the Ptah schema migration system.
Package config provides configuration options for the Ptah schema migration system.
projectconfig
Package projectconfig loads Ptah project-level configuration from Ptah and Atlas project config files into one typed IR, Config.
Package projectconfig loads Ptah project-level configuration from Ptah and Atlas project config files into one typed IR, Config.
core
annotation
Package annotation is the contract between the Go annotation frontend and the feature owners that declare directives of their own.
Package annotation is the contract between the Go annotation frontend and the feature owners that declare directives of their own.
ast
Package ast provides an Abstract Syntax Tree (AST) representation for SQL statements.
Package ast provides an Abstract Syntax Tree (AST) representation for SQL statements.
astbuilder
Package astbuilder constructs DDL abstract syntax trees programmatically, without writing nested struct literals by hand.
Package astbuilder constructs DDL abstract syntax trees programmatically, without writing nested struct literals by hand.
coverage
Package coverage records the limits of a schema description, so that a comparator can tell an object a description says is gone from one it was never asked about.
Package coverage records the limits of a schema description, so that a comparator can tell an object a description says is gone from one it was never asked about.
dataext
Package dataext declares the services an engine's owner provides for managed data and seeds, where what the engine does cannot be stated as data: writing a value as a literal of its column's type, typing the rows a comparison pairs, and running a seed file as the engine's own client would.
Package dataext declares the services an engine's owner provides for managed data and seeds, where what the engine does cannot be stated as data: writing a value as a literal of its column's type, typing the rows a comparison pairs, and running a seed file as the engine's own client would.
difftypes
Package difftypes defines the schema difference model (SchemaDiff and the per-object diffs for tables, columns, enums, functions, triggers, RLS policies, roles, and grants) produced by schemadiff and consumed by the migration planner.
Package difftypes defines the schema difference model (SchemaDiff and the per-object diffs for tables, columns, enums, functions, triggers, RLS policies, roles, and grants) produced by schemadiff and consumed by the migration planner.
featureplan
Package featureplan defines contextual batches of feature changes and their owner-contributed operations.
Package featureplan defines contextual batches of feature changes and their owner-contributed operations.
goschema
Package goschema parses Ptah annotation comments in Go source files into the schema model.
Package goschema parses Ptah annotation comments in Go source files into the schema model.
goschema/internal/parseutils
Package parseutils implements the low-level annotation text parsing shared by goschema: splitting key="value" comment options into maps and extracting platform-specific override groups.
Package parseutils implements the low-level annotation text parsing shared by goschema: splitting key="value" comment options into maps and extracting platform-specific override groups.
hclext
Package hclext is the contract between the HCL schema frontend and the feature owners whose models an HCL document can declare.
Package hclext is the contract between the HCL schema frontend and the feature owners whose models an HCL document can declare.
internal/capturefacets
Package capturefacets inventories declared table, index and constraint facet owners for preparation and CREATE projection.
Package capturefacets inventories declared table, index and constraint facet owners for preparation and CREATE projection.
lintext
Package lintext is the contract between migration lint and the engine owners that contribute to it: the rules an owner publishes, as data, the statement splitting of the owner's dialect, and the batched check that reports an owner's findings.
Package lintext is the contract between migration lint and the engine owners that contribute to it: the rules an owner publishes, as data, the statement splitting of the owner's dialect, and the batched check that reports an owner's findings.
manageddata
Package manageddata reads and resolves declarative row data.
Package manageddata reads and resolves declarative row data.
objectidentity
Package objectidentity is the one identity and reference model schema comparison, dependency analysis, planning, diagnostics and rendering share.
Package objectidentity is the one identity and reference model schema comparison, dependency analysis, planning, diagnostics and rendering share.
planext
Package planext defines common migration planning contracts.
Package planext defines common migration planning contracts.
plangraph
Package plangraph orders owner-contributed operations and validates their declared object effects.
Package plangraph orders owner-contributed operations and validates their declared object effects.
platform
Package platform serves the process dialect registry and answers the questions asked about a dialect name: NormalizeDialect folds every accepted spelling onto one canonical name, Lookup returns what the dialect states about itself, and IsPostgresFamily reports whether it speaks the PostgreSQL wire protocol and catalog.
Package platform serves the process dialect registry and answers the questions asked about a dialect name: NormalizeDialect folds every accepted spelling onto one canonical name, Lookup returns what the dialect states about itself, and IsPostgresFamily reports whether it speaks the PostgreSQL wire protocol and catalog.
platform/capability
Package capability models what a concrete database target (a dialect plus a version line) can accept, as a validated set of feature flags.
Package capability models what a concrete database target (a dialect plus a version line) can accept, as a validated set of feature flags.
platform/descriptor
Package descriptor declares what a database engine states about itself as data: its names, its protocol family, how it compares identifiers and how a query marks a bound parameter.
Package descriptor declares what a database engine states about itself as data: its names, its protocol family, how it compares identifiers and how a query marks a bound parameter.
platform/identifier
Package identifier models how each database compares identifiers: schema, table, column, and index names.
Package identifier models how each database compares identifiers: schema, table, column, and index names.
ptaherr
Package ptaherr defines the typed errors Ptah's public Go APIs return, in two layers a caller can branch on.
Package ptaherr defines the typed errors Ptah's public Go APIs return, in two layers a caller can branch on.
query
Package query is Ptah's DML language in one place: the statement and expression tree for SELECT, INSERT, UPDATE, and DELETE, the fluent builders that produce it, and the render functions that turn it into parameterized SQL.
Package query is Ptah's DML language in one place: the statement and expression tree for SELECT, INSERT, UPDATE, and DELETE, the fluent builders that produce it, and the render functions that turn it into parameterized SQL.
renderer
Package renderer defines rendering contracts shared by providers and the application pipeline.
Package renderer defines rendering contracts shared by providers and the application pipeline.
routineext
Package routineext is the contract between the hosts that analyze a routine body and the engine owner that reads it.
Package routineext is the contract between the hosts that analyze a routine body and the engine owner that reads it.
schemacapture
Package schemacapture defines captured parent state for contextual schema services.
Package schemacapture defines captured parent state for contextual schema services.
schemacomparison
Package schemacomparison declares the rules a target gives the shared comparison of the common schema model, where the target's catalog reports a declaration in a form the shared comparison cannot read on its own.
Package schemacomparison declares the rules a target gives the shared comparison of the common schema model, where the target's catalog reports a declaration in a form the shared comparison cannot read on its own.
schemaext
Package schemaext defines immutable feature values, positive source coverage, versioned codecs, and conservative operation effects without importing database implementations or pipeline stages.
Package schemaext defines immutable feature values, positive source coverage, versioned codecs, and conservative operation effects without importing database implementations or pipeline stages.
schemamodel
Package schemamodel is the database-agnostic model of a schema as a SOURCE declared it: tables, fields, indexes, constraints, enums, extensions, roles, grants, and RLS declarations, together with the derived dependency maps that decide creation order.
Package schemamodel is the database-agnostic model of a schema as a SOURCE declared it: tables, fields, indexes, constraints, enums, extensions, roles, grants, and RLS declarations, together with the derived dependency maps that decide creation order.
schemapreparation
Package schemapreparation defines target-owned normalization before comparison: of captured tables, and of a whole desired schema into the shape the target's reader reports it in.
Package schemapreparation defines target-owned normalization before comparison: of captured tables, and of a whole desired schema into the shape the target's reader reports it in.
schemaprojection
Package schemaprojection defines target-owned predictions of accepted schema changes.
Package schemaprojection defines target-owned predictions of accepted schema changes.
schemaproperties
Package schemaproperties moves source properties through the selected feature owners.
Package schemaproperties moves source properties through the selected feature owners.
schemasource
Package schemasource runs an external program that emits a desired schema to its standard output and parses that output into Ptah's schema IR.
Package schemasource runs an external program that emits a desired schema to its standard output and parses that output into Ptah's schema IR.
schemavalidation
Package schemavalidation defines target-owned validation of captured schema declarations.
Package schemavalidation defines target-owned validation of captured schema declarations.
selectext
Package selectext is the contract by which a feature owner says how a command's scope names its objects: the `--include`, `--exclude` and `--schema` selectors of the schema commands.
Package selectext is the contract by which a feature owner says how a command's scope names its objects: the `--include`, `--exclude` and `--schema` selectors of the schema commands.
sqlext
Package sqlext is the contract between the SQL schema frontend and the feature owners whose syntax a SQL document can carry.
Package sqlext is the contract between the SQL schema frontend and the feature owners whose syntax a SQL document can carry.
sqlutil
Package sqlutil provides SQL text utilities shared across Ptah: splitting scripts into statements, stripping comments, rewriting bind placeholders per dialect, normalizing client-side delimiter directives, and classifying routine body fragments.
Package sqlutil provides SQL text utilities shared across Ptah: splitting scripts into statements, stripping comments, rewriting bind placeholders per dialect, normalizing client-side delimiter directives, and classifying routine body fragments.
yamlext
Package yamlext is the contract between the YAML schema frontend and the feature owners whose models a YAML document can declare.
Package yamlext is the contract between the YAML schema frontend and the feature owners whose models a YAML document can declare.
yamlschema
Package yamlschema reads a desired schema written in Ptah's YAML format.
Package yamlschema reads a desired schema written in Ptah's YAML format.
Package dbschema provides database connection management plus schema reading and writing against a live database.
Package dbschema provides database connection management plus schema reading and writing against a live database.
dialect
clickhouse/chast
Package chast defines owned ClickHouse operations for common AST extension envelopes.
Package chast defines owned ClickHouse operations for common AST extension envelopes.
clickhouse/chcompare
Package chcompare compares ClickHouse table and index facets using captured source knowledge.
Package chcompare compares ClickHouse table and index facets using captured source knowledge.
clickhouse/chconvert
Package chconvert projects ClickHouse storage settings, refresh schedules and row policies between desired and observed representations.
Package chconvert projects ClickHouse storage settings, refresh schedules and row policies between desired and observed representations.
clickhouse/chdiff
Package chdiff owns captured directional changes to ClickHouse storage settings.
Package chdiff owns captured directional changes to ClickHouse storage settings.
clickhouse/chplan
Package chplan plans ClickHouse-owned storage changes from captured table state and contributes operations to the host's complete dependency graph.
Package chplan plans ClickHouse-owned storage changes from captured table state and contributes operations to the host's complete dependency graph.
clickhouse/chprepare
Package chprepare resolves ClickHouse storage settings and column key membership before shared comparison.
Package chprepare resolves ClickHouse storage settings and column key membership before shared comparison.
clickhouse/chprobe
Package chprobe asks a connected ClickHouse server to spell the filters of declared row policies and the conditions of CHECK constraints the way it stores them, so a comparison holds the same spelling on both sides.
Package chprobe asks a connected ClickHouse server to spell the filters of declared row policies and the conditions of CHECK constraints the way it stores them, so a comparison holds the same spelling on both sides.
clickhouse/chrender
Package chrender validates and renders ClickHouse-owned extension payloads.
Package chrender validates and renders ClickHouse-owned extension payloads.
clickhouse/chreport
Package chreport describes captured ClickHouse storage settings for reports.
Package chreport describes captured ClickHouse storage settings for reports.
clickhouse/chresolve
Package chresolve resolves ClickHouse storage intent against captured state and creation rules.
Package chresolve resolves ClickHouse storage intent against captured state and creation rules.
clickhouse/chreverse
Package chreverse reverses captured ClickHouse storage changes and reports data that restoring the definition cannot recover.
Package chreverse reverses captured ClickHouse storage changes and reports data that restoring the definition cannot recover.
clickhouse/chschema
Package chschema owns the ClickHouse models in their desired and observed representations: the storage settings of tables and data-skipping indexes, the refresh schedule of a materialized view and the coverage of its storage, and row policies as feature objects of their own.
Package chschema owns the ClickHouse models in their desired and observed representations: the storage settings of tables and data-skipping indexes, the refresh schedule of a materialized view and the coverage of its storage, and row policies as feature objects of their own.
clickhouse/chsource
Package chsource encodes ClickHouse table and index intent in source property groups.
Package chsource encodes ClickHouse table and index intent in source property groups.
clickhouse/internal/chsql
Package chsql shares ClickHouse storage expression comparisons and the rules of in-place storage changes between the owning comparator, planner, renderer and reversal.
Package chsql shares ClickHouse storage expression comparisons and the rules of in-place storage changes between the owning comparator, planner, renderer and reversal.
cockroachdb/crdbast
Package crdbast defines owned CockroachDB operations for common AST extension envelopes.
Package crdbast defines owned CockroachDB operations for common AST extension envelopes.
cockroachdb/crdbcompare
Package crdbcompare compares CockroachDB row-level TTL facets using captured source knowledge.
Package crdbcompare compares CockroachDB row-level TTL facets using captured source knowledge.
cockroachdb/crdbconvert
Package crdbconvert projects CockroachDB row-level TTL between desired and observed representations without reading a server, and answers what a CockroachDB read reports for a declared column type (ReadBack).
Package crdbconvert projects CockroachDB row-level TTL between desired and observed representations without reading a server, and answers what a CockroachDB read reports for a declared column type (ReadBack).
cockroachdb/crdbdiff
Package crdbdiff owns captured directional changes to CockroachDB row-level TTL.
Package crdbdiff owns captured directional changes to CockroachDB row-level TTL.
cockroachdb/crdbplan
Package crdbplan plans CockroachDB row-level TTL changes from captured operands and contributes owned operations to the host's plan.
Package crdbplan plans CockroachDB row-level TTL changes from captured operands and contributes owned operations to the host's plan.
cockroachdb/crdbrender
Package crdbrender validates and renders CockroachDB-owned row-level TTL: the storage parameters a CREATE TABLE carries and the ALTER TABLE statements an owned change lowers to.
Package crdbrender validates and renders CockroachDB-owned row-level TTL: the storage parameters a CREATE TABLE carries and the ALTER TABLE statements an owned change lowers to.
cockroachdb/crdbreport
Package crdbreport describes captured CockroachDB row-level TTL for reports.
Package crdbreport describes captured CockroachDB row-level TTL for reports.
cockroachdb/crdbreverse
Package crdbreverse reverses captured CockroachDB row-level TTL changes and reports the data that restoring a policy cannot recover.
Package crdbreverse reverses captured CockroachDB row-level TTL changes and reports the data that restoring a policy cannot recover.
cockroachdb/crdbschema
Package crdbschema owns CockroachDB row-level TTL and its desired and observed representations.
Package crdbschema owns CockroachDB row-level TTL and its desired and observed representations.
cockroachdb/crdbsource
Package crdbsource encodes CockroachDB row-level TTL in source property groups and records what a source format can declare.
Package crdbsource encodes CockroachDB row-level TTL in source property groups and records what a source format can declare.
cockroachdb/internal/ttlsql
Package ttlsql holds the CockroachDB row-level TTL rules that comparison, planning, rendering and reversal share: value equivalence, the storage parameter spelling a statement carries, and the parameters a change resets.
Package ttlsql holds the CockroachDB row-level TTL rules that comparison, planning, rendering and reversal share: value equivalence, the storage parameter spelling a statement carries, and the parameters a change resets.
mssql/mssqlast
Package mssqlast holds the operation that carries one SQL Server security policy change to rendering, and its codec.
Package mssqlast holds the operation that carries one SQL Server security policy change to rendering, and its codec.
mssql/mssqlcompare
Package mssqlcompare compares SQL Server security policies, declared against observed, into changes that carry their access assessment, and the options a routine's header writes.
Package mssqlcompare compares SQL Server security policies, declared against observed, into changes that carry their access assessment, and the options a routine's header writes.
mssql/mssqlconvert
Package mssqlconvert projects SQL Server security policies, and the options a routine's header writes, between their desired and observed representations.
Package mssqlconvert projects SQL Server security policies, and the options a routine's header writes, between their desired and observed representations.
mssql/mssqldiff
Package mssqldiff holds the directional change of one SQL Server security policy: the policy a read observed, the policy a declaration asks for, and the owner's assessment of what the change does to access.
Package mssqldiff holds the directional change of one SQL Server security policy: the policy a read observed, the policy a declaration asks for, and the owner's assessment of what the change does to access.
mssql/mssqllint
Package mssqllint holds what the SQL Server owner contributes to the readers of migration SQL: the splitter that reads a SQL Server migration in T-SQL's lexing and judges the statements whose effect only this owner knows, as ptah.run/core/lintext describes.
Package mssqllint holds what the SQL Server owner contributes to the readers of migration SQL: the splitter that reads a SQL Server migration in T-SQL's lexing and judges the statements whose effect only this owner knows, as ptah.run/core/lintext describes.
mssql/mssqlplan
Package mssqlplan plans SQL Server security policy changes and authored policies into operations for the host's dependency graph.
Package mssqlplan plans SQL Server security policy changes and authored policies into operations for the host's dependency graph.
mssql/mssqlprobe
Package mssqlprobe asks a connected SQL Server to spell the predicates of declared security policies the way sys.security_predicates stores them, for the owner of package mssqlschema, so a comparison holds the server's spelling on both sides.
Package mssqlprobe asks a connected SQL Server to spell the predicates of declared security policies the way sys.security_predicates stores them, for the owner of package mssqlschema, so a comparison holds the server's spelling on both sides.
mssql/mssqlproperty
Package mssqlproperty owns SQL Server extended properties: the name and value pairs sp_addextendedproperty attaches to the database, a schema, a table or a column.
Package mssqlproperty owns SQL Server extended properties: the name and value pairs sp_addextendedproperty attaches to the database, a schema, a table or a column.
mssql/mssqlrelation
Package mssqlrelation describes the objects a captured SQL Server security policy depends on.
Package mssqlrelation describes the objects a captured SQL Server security policy depends on.
mssql/mssqlrender
Package mssqlrender lowers the SQL Server security policy operation to T-SQL.
Package mssqlrender lowers the SQL Server security policy operation to T-SQL.
mssql/mssqlreport
Package mssqlreport counts captured SQL Server security policies for inventory and omission reports.
Package mssqlreport counts captured SQL Server security policies for inventory and omission reports.
mssql/mssqlreverse
Package mssqlreverse reverses captured SQL Server security policy changes and reports what restoring a policy cannot recover, and reverses a change of the options a routine's header writes.
Package mssqlreverse reverses captured SQL Server security policy changes and reports what restoring a policy cannot recover, and reverses a change of the options a routine's header writes.
mssql/mssqlroutine
Package mssqlroutine reads SQL Server routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes, what it reads, and where it builds SQL at run time.
Package mssqlroutine reads SQL Server routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes, what it reads, and where it builds SQL at run time.
mssql/mssqlschema
Package mssqlschema owns the SQL Server security policy model: one schema-scoped feature object holding the policy's state and every predicate it binds to a table, in a desired and an observed representation.
Package mssqlschema owns the SQL Server security policy model: one schema-scoped feature object holding the policy's state and every predicate it binds to a table, in a desired and an observed representation.
mysql/mysqlast
Package mysqlast holds the operations the MySQL and MariaDB owner adds to a plan: what an ALTER TABLE statement does to one of the owner's settings, as operands a renderer writes without the schema.
Package mysqlast holds the operations the MySQL and MariaDB owner adds to a plan: what an ALTER TABLE statement does to one of the owner's settings, as operands a renderer writes without the schema.
mysql/mysqlcompare
Package mysqlcompare compares the MySQL and MariaDB models a declaration states with the ones a read found, without database access.
Package mysqlcompare compares the MySQL and MariaDB models a declaration states with the ones a read found, without database access.
mysql/mysqlconvert
Package mysqlconvert converts the MySQL and MariaDB models between their desired and observed representations.
Package mysqlconvert converts the MySQL and MariaDB models between their desired and observed representations.
mysql/mysqldiff
Package mysqldiff holds the MySQL and MariaDB change models: what a comparison found different between a declaration and a read, in a form a planner and a reversal read without the schema.
Package mysqldiff holds the MySQL and MariaDB change models: what a comparison found different between a declaration and a read, in a form a planner and a reversal read without the schema.
mysql/mysqllint
Package mysqllint holds the migration lint rules the MySQL owner checks for MySQL and MariaDB: the MY family of MySQL-family hazards and the online-mode rule online/unproven.
Package mysqllint holds the migration lint rules the MySQL owner checks for MySQL and MariaDB: the MY family of MySQL-family hazards and the online-mode rule online/unproven.
mysql/mysqlplan
Package mysqlplan accounts for the MySQL and MariaDB models through the plans the common planner makes.
Package mysqlplan accounts for the MySQL and MariaDB models through the plans the common planner makes.
mysql/mysqlprepare
Package mysqlprepare resolves, before the shared comparison, the collations a MySQL or MariaDB declaration leaves to the server: the collation of a column that names none, and the table's default collation.
Package mysqlprepare resolves, before the shared comparison, the collations a MySQL or MariaDB declaration leaves to the server: the collation of a column that names none, and the table's default collation.
mysql/mysqlrender
Package mysqlrender gives the MySQL and MariaDB renderers what the owner's models write: the options of a new table, and the character set and ON UPDATE clause of a column definition.
Package mysqlrender gives the MySQL and MariaDB renderers what the owner's models write: the options of a new table, and the character set and ON UPDATE clause of a column definition.
mysql/mysqlreport
Package mysqlreport reports the MySQL and MariaDB models a schema captures, without inspecting a server.
Package mysqlreport reports the MySQL and MariaDB models a schema captures, without inspecting a server.
mysql/mysqlroutine
Package mysqlroutine reads MySQL and MariaDB routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes, and where it builds SQL at run time.
Package mysqlroutine reads MySQL and MariaDB routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes, and where it builds SQL at run time.
mysql/mysqlschema
Package mysqlschema owns the MySQL and MariaDB models in their desired and observed representations: the options a table is created with, and the character set and ON UPDATE clause of a column.
Package mysqlschema owns the MySQL and MariaDB models in their desired and observed representations: the options a table is created with, and the character set and ON UPDATE clause of a column.
mysql/mysqlsource
Package mysqlsource reads MySQL and MariaDB table, index and column settings from the platform properties of a source and writes them back, and reads an index's block-size hint from the Go index directive.
Package mysqlsource reads MySQL and MariaDB table, index and column settings from the platform properties of a source and writes them back, and reads an index's block-size hint from the Go index directive.
postgres/pglint
Package pglint holds the migration lint rules the PostgreSQL owner checks: the PG family of PostgreSQL hazards, the online-mode rules online/unproven and online/lock-held-across-scan, and the TX family, which judges the transaction shape of a migration file.
Package pglint holds the migration lint rules the PostgreSQL owner checks: the PG family of PostgreSQL hazards, the online-mode rules online/unproven and online/lock-held-across-scan, and the TX family, which judges the transaction shape of a migration file.
postgres/pgproject
Package pgproject predicts PostgreSQL-owned schema effects for reverse plans.
Package pgproject predicts PostgreSQL-owned schema effects for reverse plans.
postgres/pgrole
Package pgrole owns PostgreSQL role configuration settings: the defaults `ALTER ROLE name SET parameter = value` stores for a role in every database, which PostgreSQL keeps in pg_db_role_setting with setdatabase 0.
Package pgrole owns PostgreSQL role configuration settings: the defaults `ALTER ROLE name SET parameter = value` stores for a role in every database, which PostgreSQL keeps in pg_db_role_setting with setdatabase 0.
postgres/pgrolerender
Package pgrolerender renders owner-validated PostgreSQL role settings: the ALTER ROLE statements of a planned change, and the ones a CREATE ROLE needs after it for the settings the new role declares.
Package pgrolerender renders owner-validated PostgreSQL role settings: the ALTER ROLE statements of a planned change, and the ones a CREATE ROLE needs after it for the settings the new role declares.
postgres/pgroutine
Package pgroutine reads PostgreSQL routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes and reads, and where it builds SQL at run time.
Package pgroutine reads PostgreSQL routine bodies for the hosts that analyze them, as the routine body contract ptah.run/core/routineext describes: what a body writes and reads, and where it builds SQL at run time.
postgres/pgtable
Package pgtable owns PostgreSQL table persistence, partition keys and their schema contracts.
Package pgtable owns PostgreSQL table persistence, partition keys and their schema contracts.
postgres/pgtableprobe
Package pgtableprobe captures PostgreSQL partition-key and exclusion-clause normalization in rolled-back transactions.
Package pgtableprobe captures PostgreSQL partition-key and exclusion-clause normalization in rolled-back transactions.
postgres/pgtablerender
Package pgtablerender renders explicitly selected PostgreSQL table features.
Package pgtablerender renders explicitly selected PostgreSQL table features.
sqlite/sqlitetable
Package sqlitetable owns what a SQLite table is created as: the options STRICT and WITHOUT ROWID, and the module declaration that makes a table virtual.
Package sqlitetable owns what a SQLite table is created as: the options STRICT and WITHOUT ROWID, and the module declaration that makes a table virtual.
timescaledb/tsast
Package tsast defines TimescaleDB operation payloads carried through the common AST extension envelope.
Package tsast defines TimescaleDB operation payloads carried through the common AST extension envelope.
timescaledb/tscompare
Package tscompare compares TimescaleDB state using captured source knowledge: hypertable settings attached to tables, and continuous aggregates as named objects.
Package tscompare compares TimescaleDB state using captured source knowledge: hypertable settings attached to tables, and continuous aggregates as named objects.
timescaledb/tsconvert
Package tsconvert projects TimescaleDB values between their desired and observed representations.
Package tsconvert projects TimescaleDB values between their desired and observed representations.
timescaledb/tsdiff
Package tsdiff owns captured directional changes to TimescaleDB state: a surviving table's hypertable settings and a continuous aggregate.
Package tsdiff owns captured directional changes to TimescaleDB state: a surviving table's hypertable settings and a continuous aggregate.
timescaledb/tsplan
Package tsplan plans TimescaleDB changes and authored continuous aggregates into operations for the host's dependency graph.
Package tsplan plans TimescaleDB changes and authored continuous aggregates into operations for the host's dependency graph.
timescaledb/tsprobe
Package tsprobe asks a connected TimescaleDB server to normalize declared continuous aggregates, so a comparison holds the same spelling on both sides.
Package tsprobe asks a connected TimescaleDB server to normalize declared continuous aggregates, so a comparison holds the same spelling on both sides.
timescaledb/tsrelation
Package tsrelation describes the relations captured TimescaleDB values depend on.
Package tsrelation describes the relations captured TimescaleDB values depend on.
timescaledb/tsrender
Package tsrender validates and renders TimescaleDB operation payloads for the PostgreSQL family, and lowers the table facets a CREATE TABLE cannot carry into those payloads.
Package tsrender validates and renders TimescaleDB operation payloads for the PostgreSQL family, and lowers the table facets a CREATE TABLE cannot carry into those payloads.
timescaledb/tsreport
Package tsreport describes captured TimescaleDB values for inventory and export-loss reports.
Package tsreport describes captured TimescaleDB values for inventory and export-loss reports.
timescaledb/tsreverse
Package tsreverse reverses captured TimescaleDB changes and reports what restoring a definition cannot recover.
Package tsreverse reverses captured TimescaleDB changes and reports what restoring a definition cannot recover.
timescaledb/tsschema
Package tsschema owns the TimescaleDB schema model: the hypertable settings a table carries as a facet, and the continuous aggregates a schema holds as named objects, each in a desired and an observed representation.
Package tsschema owns the TimescaleDB schema model: the hypertable settings a table carries as a facet, and the continuous aggregates a schema holds as named objects, each in a desired and an observed representation.
timescaledb/tssource
Package tssource decodes TimescaleDB's Go annotation directives into the owner's models: a hypertable, which partitions the table it names, and a continuous aggregate, a materialized view TimescaleDB keeps up to date.
Package tssource decodes TimescaleDB's Go annotation directives into the owner's models: a hypertable, which partitions the table it names, and a continuous aggregate, a materialized view TimescaleDB keeps up to date.
Package docs carries Ptah's own documentation, and the agent skills Ptah ships, inside the binary.
Package docs carries Ptah's own documentation, and the agent skills Ptah ships, inside the binary.
site/fixtures/schema-ui/internal/base-models
Package models declares the baseline schema used by documentation UI fixtures.
Package models declares the baseline schema used by documentation UI fixtures.
site/fixtures/schema-ui/internal/models
Package models declares the desired schema used by documentation UI fixtures.
Package models declares the desired schema used by documentation UI fixtures.
Package engine assembles explicit providers for the schema pipeline.
Package engine assembles explicit providers for the schema pipeline.
builtin
Package builtin assembles the database implementations bundled with Ptah.
Package builtin assembles the database implementations bundled with Ptah.
builtin/internal/dialects/clickhouse
Package clickhouse provides a ClickHouse-specific SQL renderer.
Package clickhouse provides a ClickHouse-specific SQL renderer.
builtin/internal/dialects/internal/bufwriter
Package bufwriter provides the small line-oriented output buffer the dialect renderers share for accumulating generated SQL.
Package bufwriter provides the small line-oriented output buffer the dialect renderers share for accumulating generated SQL.
builtin/internal/dialects/internal/grantrefusal
Package grantrefusal holds the refusals the MySQL-family, SQL Server, Oracle and ClickHouse renderers make for a GRANT or REVOKE whose target they cannot spell: a function or procedure, which only the PostgreSQL renderer spells, and columns of a table, which the Oracle and ClickHouse renderers do not.
Package grantrefusal holds the refusals the MySQL-family, SQL Server, Oracle and ClickHouse renderers make for a GRANT or REVOKE whose target they cannot spell: a function or procedure, which only the PostgreSQL renderer spells, and columns of a table, which the Oracle and ClickHouse renderers do not.
builtin/internal/dialects/internal/nodedispatch
Package nodedispatch holds the answers every dialect renderer's VisitNode dispatcher has to give identically.
Package nodedispatch holds the answers every dialect renderer's VisitNode dispatcher has to give identically.
builtin/internal/dialects/internal/viewrefusal
Package viewrefusal holds the refusal every renderer but SQL Server's makes for a view that declares attributes of its own WITH clause.
Package viewrefusal holds the refusal every renderer but SQL Server's makes for a view that declares attributes of its own WITH clause.
builtin/internal/dialects/mariadb
Package mariadb provides the MariaDB SQL renderer: a thin wrapper over the shared mysqllike renderer configured with MariaDB capabilities.
Package mariadb provides the MariaDB SQL renderer: a thin wrapper over the shared mysqllike renderer configured with MariaDB capabilities.
builtin/internal/dialects/mssql
Package mssql renders Ptah AST nodes to Microsoft SQL Server T-SQL DDL.
Package mssql renders Ptah AST nodes to Microsoft SQL Server T-SQL DDL.
builtin/internal/dialects/mysql
Package mysql provides the MySQL SQL renderer: a thin wrapper over the shared mysqllike renderer configured with strict MySQL capabilities.
Package mysql provides the MySQL SQL renderer: a thin wrapper over the shared mysqllike renderer configured with strict MySQL capabilities.
builtin/internal/dialects/mysqllike
Package mysqllike implements the shared SQL renderer for the MySQL family of dialects.
Package mysqllike implements the shared SQL renderer for the MySQL family of dialects.
builtin/internal/dialects/oracle
Package oracle renders Ptah AST nodes to Oracle DDL.
Package oracle renders Ptah AST nodes to Oracle DDL.
builtin/internal/dialects/postgres
Package postgres implements the PostgreSQL SQL renderer, turning Ptah AST nodes into PostgreSQL DDL including enums, sequences, roles, row-level security policies, and check constraints.
Package postgres implements the PostgreSQL SQL renderer, turning Ptah AST nodes into PostgreSQL DDL including enums, sequences, roles, row-level security policies, and check constraints.
builtin/internal/dialects/sqlite
Package sqlite renders Ptah AST nodes to SQLite DDL.
Package sqlite renders Ptah AST nodes to SQLite DDL.
examples
annotation_parser/models
Package models contains the annotated example entities parsed by the annotation_parser example to demonstrate Ptah schema annotations, including embedded struct fields.
Package models contains the annotated example entities parsed by the annotation_parser example to demonstrate Ptah schema annotations, including embedded struct fields.
extension_ignore command
Package main demonstrates the PostgreSQL extension ignore functionality in Ptah.
Package main demonstrates the PostgreSQL extension ignore functionality in Ptah.
migrator
Package examplemigrations embeds a sample migrations directory demonstrating the Ptah migration file layout; migrator package examples run against this embedded filesystem.
Package examplemigrations embeds a sample migrations directory demonstrating the Ptah migration file layout; migrator package examples run against this embedded filesystem.
feature
oratype
Package oratype owns Oracle's user-defined data types: domains, which Oracle 23 creates with CREATE DOMAIN, and object types, created with CREATE TYPE ...
Package oratype owns Oracle's user-defined data types: domains, which Oracle 23 creates with CREATE DOMAIN, and object types, created with CREATE TYPE ...
pgdefaultprivilege
Package pgdefaultprivilege owns PostgreSQL default-privilege declarations and observations.
Package pgdefaultprivilege owns PostgreSQL default-privilege declarations and observations.
pgdefaultprivilege/privilegecompare
Package privilegecompare compares default-privilege deltas for the pgdefaultprivilege owner.
Package privilegecompare compares default-privilege deltas for the pgdefaultprivilege owner.
pgdefaultprivilege/privilegeconvert
Package privilegeconvert projects PostgreSQL default privileges between their desired and observed representations for the owner of package pgdefaultprivilege.
Package privilegeconvert projects PostgreSQL default privileges between their desired and observed representations for the owner of package pgdefaultprivilege.
pgdefaultprivilege/privilegeplan
Package privilegeplan plans default ACL adjustments as typed operations in the host's plan graph.
Package privilegeplan plans default ACL adjustments as typed operations in the host's plan graph.
pgdefaultprivilege/privilegerender
Package privilegerender renders owner-validated default-privilege operations for the PostgreSQL family.
Package privilegerender renders owner-validated default-privilege operations for the PostgreSQL family.
pgdefaultprivilege/privilegereport
Package privilegereport counts PostgreSQL default privileges for inventory reports, for the owner of package pgdefaultprivilege.
Package privilegereport counts PostgreSQL default privileges for inventory reports, for the owner of package pgdefaultprivilege.
pgdefaultprivilege/privilegereverse
Package privilegereverse restores captured default ACLs without enumerating the server's interpretation of ALL.
Package privilegereverse restores captured default ACLs without enumerating the server's interpretation of ALL.
pgdefaultprivilege/privilegeselect
Package privilegeselect describes the schema and roles default privileges reference.
Package privilegeselect describes the schema and roles default privileges reference.
pgextension
Package pgextension owns the PostgreSQL extension model: an extension as a database-wide feature object identified by its name, in a desired and an observed representation, the change between them, and the operations that carry a change to a renderer.
Package pgextension owns the PostgreSQL extension model: an extension as a database-wide feature object identified by its name, in a desired and an observed representation, the change between them, and the operations that carry a change to a renderer.
pgextension/extensioncompare
Package extensioncompare compares PostgreSQL extensions for the owner of package pgextension.
Package extensioncompare compares PostgreSQL extensions for the owner of package pgextension.
pgextension/extensionconvert
Package extensionconvert projects PostgreSQL extensions between their desired and observed representations for the owner of package pgextension.
Package extensionconvert projects PostgreSQL extensions between their desired and observed representations for the owner of package pgextension.
pgextension/extensionplan
Package extensionplan plans PostgreSQL extension changes into operations for a host's dependency graph, for the owner of package pgextension.
Package extensionplan plans PostgreSQL extension changes into operations for a host's dependency graph, for the owner of package pgextension.
pgextension/extensionrender
Package extensionrender validates and renders the PostgreSQL extension operation payloads of package pgextension for the PostgreSQL family.
Package extensionrender validates and renders the PostgreSQL extension operation payloads of package pgextension for the PostgreSQL family.
pgextension/extensionreport
Package extensionreport counts PostgreSQL extensions for inventory reports, for the owner of package pgextension.
Package extensionreport counts PostgreSQL extensions for inventory reports, for the owner of package pgextension.
pgextension/extensionreverse
Package extensionreverse reverses captured PostgreSQL extension changes for the owner of package pgextension and reports what a rollback cannot recover.
Package extensionreverse reverses captured PostgreSQL extension changes for the owner of package pgextension and reports what a rollback cannot recover.
pgpolicy
Package pgpolicy owns the PostgreSQL row-security model: a policy as a feature object identified by its table and name, and a table's row-security switches as a facet of that table, each in a desired and an observed representation.
Package pgpolicy owns the PostgreSQL row-security model: a policy as a feature object identified by its table and name, and a table's row-security switches as a facet of that table, each in a desired and an observed representation.
pgpolicy/policycompare
Package policycompare compares PostgreSQL row-security state for the owner of package pgpolicy: policies as feature objects of their tables, and a table's ENABLE and FORCE switches as a facet of it.
Package policycompare compares PostgreSQL row-security state for the owner of package pgpolicy: policies as feature objects of their tables, and a table's ENABLE and FORCE switches as a facet of it.
pgpolicy/policyconvert
Package policyconvert projects PostgreSQL row-security values between their desired and observed representations for the owner of package pgpolicy.
Package policyconvert projects PostgreSQL row-security values between their desired and observed representations for the owner of package pgpolicy.
pgpolicy/policyplan
Package policyplan plans PostgreSQL row-security changes into operations for a host's dependency graph, for the owner of package pgpolicy, and accounts for a table's policies and switches through the host's operations on the table.
Package policyplan plans PostgreSQL row-security changes into operations for a host's dependency graph, for the owner of package pgpolicy, and accounts for a table's policies and switches through the host's operations on the table.
pgpolicy/policyprobe
Package policyprobe asks a connected PostgreSQL server to normalize declared row-security policies for the owner of package pgpolicy, so a comparison holds the server's spelling on both sides.
Package policyprobe asks a connected PostgreSQL server to normalize declared row-security policies for the owner of package pgpolicy, so a comparison holds the server's spelling on both sides.
pgpolicy/policyrender
Package policyrender validates and renders the PostgreSQL row-security operation payloads of package pgpolicy for the PostgreSQL family, and lowers a new table's row-security switches into the statements that follow its CREATE TABLE.
Package policyrender validates and renders the PostgreSQL row-security operation payloads of package pgpolicy for the PostgreSQL family, and lowers a new table's row-security switches into the statements that follow its CREATE TABLE.
pgpolicy/policyreport
Package policyreport counts captured PostgreSQL row-security values for inventory and omission reports, for the owner of package pgpolicy.
Package policyreport counts captured PostgreSQL row-security values for inventory and omission reports, for the owner of package pgpolicy.
pgpolicy/policyreverse
Package policyreverse reverses captured PostgreSQL row-security changes for the owner of package pgpolicy and reports what restoring a definition cannot recover.
Package policyreverse reverses captured PostgreSQL row-security changes for the owner of package pgpolicy and reports what restoring a definition cannot recover.
pgpublication
Package pgpublication owns the PostgreSQL logical replication publication model: a publication as a database-wide feature object identified by its name, in a desired and an observed representation, the change between them, and the operations that carry a change to a renderer.
Package pgpublication owns the PostgreSQL logical replication publication model: a publication as a database-wide feature object identified by its name, in a desired and an observed representation, the change between them, and the operations that carry a change to a renderer.
pgpublication/publicationcompare
Package publicationcompare compares PostgreSQL logical replication publications for the owner of package pgpublication.
Package publicationcompare compares PostgreSQL logical replication publications for the owner of package pgpublication.
pgpublication/publicationconvert
Package publicationconvert projects PostgreSQL publications between their desired and observed representations for the owner of package pgpublication.
Package publicationconvert projects PostgreSQL publications between their desired and observed representations for the owner of package pgpublication.
pgpublication/publicationplan
Package publicationplan plans PostgreSQL publication changes into operations for a host's dependency graph, for the owner of package pgpublication.
Package publicationplan plans PostgreSQL publication changes into operations for a host's dependency graph, for the owner of package pgpublication.
pgpublication/publicationrender
Package publicationrender validates and renders the publication operation payload of package pgpublication for PostgreSQL.
Package publicationrender validates and renders the publication operation payload of package pgpublication for PostgreSQL.
pgpublication/publicationreport
Package publicationreport counts PostgreSQL publications for inventory reports, for the owner of package pgpublication.
Package publicationreport counts PostgreSQL publications for inventory reports, for the owner of package pgpublication.
pgpublication/publicationreverse
Package publicationreverse reverses captured PostgreSQL publication changes for the owner of package pgpublication and reports what a rollback cannot recover.
Package publicationreverse reverses captured PostgreSQL publication changes for the owner of package pgpublication and reports what a rollback cannot recover.
pgtype
Package pgtype owns the PostgreSQL user-defined data types other than enums: domains, composite types and range types.
Package pgtype owns the PostgreSQL user-defined data types other than enums: domains, composite types and range types.
pgtype/typecompare
Package typecompare compares PostgreSQL domains, composite types and range types for the owner of package pgtype.
Package typecompare compares PostgreSQL domains, composite types and range types for the owner of package pgtype.
pgtype/typeconvert
Package typeconvert projects PostgreSQL domains, composite types and range types between their desired and observed representations for the owner of package pgtype.
Package typeconvert projects PostgreSQL domains, composite types and range types between their desired and observed representations for the owner of package pgtype.
pgtype/typeplan
Package typeplan plans PostgreSQL domain, composite type and range type changes into operations for a host's dependency graph, for the owner of package pgtype.
Package typeplan plans PostgreSQL domain, composite type and range type changes into operations for a host's dependency graph, for the owner of package pgtype.
pgtype/typeprobe
Package typeprobe asks a connected PostgreSQL server to spell the CHECK and default of declared domains for the owner of package pgtype, so a comparison holds the server's spelling on both sides.
Package typeprobe asks a connected PostgreSQL server to spell the CHECK and default of declared domains for the owner of package pgtype, so a comparison holds the server's spelling on both sides.
pgtype/typerender
Package typerender validates and renders the PostgreSQL user-type operation payloads of package pgtype for the PostgreSQL family.
Package typerender validates and renders the PostgreSQL user-type operation payloads of package pgtype for the PostgreSQL family.
pgtype/typereport
Package typereport counts PostgreSQL domains, composite types and range types for inventory reports, for the owner of package pgtype.
Package typereport counts PostgreSQL domains, composite types and range types for inventory reports, for the owner of package pgtype.
pgtype/typereverse
Package typereverse reverses captured PostgreSQL domain, composite type and range type changes for the owner of package pgtype, and reports what a rollback cannot recover.
Package typereverse reverses captured PostgreSQL domain, composite type and range type changes for the owner of package pgtype, and reports what a rollback cannot recover.
synonym
Package synonym owns synonyms: schema-qualified aliases that SQL Server and Oracle resolve to another object.
Package synonym owns synonyms: schema-qualified aliases that SQL Server and Oracle resolve to another object.
integration
internal/fixtures/entities/000-initial
Package entities is integration fixture 000-initial: the baseline users and products schema that the schema-evolution scenarios start from.
Package entities is integration fixture 000-initial: the baseline users and products schema that the schema-evolution scenarios start from.
internal/fixtures/entities/001-add-fields
Package entities is integration fixture 001-add-fields: extends 000-initial by adding new columns to the users and products tables.
Package entities is integration fixture 001-add-fields: extends 000-initial by adding new columns to the users and products tables.
internal/fixtures/entities/002-add-posts
Package entities is integration fixture 002-add-posts: adds a posts table referencing users on top of 001-add-fields.
Package entities is integration fixture 002-add-posts: adds a posts table referencing users on top of 001-add-fields.
internal/fixtures/entities/003-add-enums
Package entities is integration fixture 003-add-enums: introduces enum-typed columns across the users, posts, and products tables.
Package entities is integration fixture 003-add-enums: introduces enum-typed columns across the users, posts, and products tables.
internal/fixtures/entities/004-field-rename
Package entities is integration fixture 004-field-rename: renames user columns (age to user_age, bio to description) to exercise field-rename diffs.
Package entities is integration fixture 004-field-rename: renames user columns (age to user_age, bio to description) to exercise field-rename diffs.
internal/fixtures/entities/005-field-type-change
Package entities is integration fixture 005-field-type-change: changes an existing column's type to exercise type-change migrations.
Package entities is integration fixture 005-field-type-change: changes an existing column's type to exercise type-change migrations.
internal/fixtures/entities/006-field-drop
Package entities is integration fixture 006-field-drop: drops a column to exercise column-removal migrations.
Package entities is integration fixture 006-field-drop: drops a column to exercise column-removal migrations.
internal/fixtures/entities/007-index-add
Package entities is integration fixture 007-index-add: adds an index to exercise index-creation migrations.
Package entities is integration fixture 007-index-add: adds an index to exercise index-creation migrations.
internal/fixtures/entities/008-index-remove
Package entities is integration fixture 008-index-remove: removes the index introduced in 007-index-add.
Package entities is integration fixture 008-index-remove: removes the index introduced in 007-index-add.
internal/fixtures/entities/009-add-constraints
Package entities is integration fixture 009-add-constraints: adds table constraints to exercise constraint-creation migrations.
Package entities is integration fixture 009-add-constraints: adds table constraints to exercise constraint-creation migrations.
internal/fixtures/entities/010-drop-constraints
Package entities is integration fixture 010-drop-constraints: removes the constraints introduced in 009-add-constraints.
Package entities is integration fixture 010-drop-constraints: removes the constraints introduced in 009-add-constraints.
internal/fixtures/entities/011-add-entity
Package entities is integration fixture 011-add-entity: adds a new category entity to exercise table creation within an existing schema.
Package entities is integration fixture 011-add-entity: adds a new category entity to exercise table creation within an existing schema.
internal/fixtures/entities/012-drop-entity
Package entities is integration fixture 012-drop-entity: removes an entity to exercise table-drop migrations.
Package entities is integration fixture 012-drop-entity: removes an entity to exercise table-drop migrations.
internal/fixtures/entities/013-embedded-fields
Package entities is integration fixture 013-embedded-fields: introduces embedded struct fields such as shared timestamps and base IDs across the entities.
Package entities is integration fixture 013-embedded-fields: introduces embedded struct fields such as shared timestamps and base IDs across the entities.
internal/fixtures/entities/014-rls-functions
Package entities is integration fixture 014-rls-functions: adds PostgreSQL functions and row-level security policies for tenant isolation.
Package entities is integration fixture 014-rls-functions: adds PostgreSQL functions and row-level security policies for tenant isolation.
internal/fixtures/entities/015-rls-advanced
Package entities is integration fixture 015-rls-advanced: exercises advanced row-level security policy configurations.
Package entities is integration fixture 015-rls-advanced: exercises advanced row-level security policy configurations.
internal/fixtures/entities/016-rls-multiple-files
Package entities is integration fixture 016-rls-multiple-files: spreads RLS-enabled entities (locations, areas, commodities, files) across multiple files to verify multi-file annotation parsing.
Package entities is integration fixture 016-rls-multiple-files: spreads RLS-enabled entities (locations, areas, commodities, files) across multiple files to verify multi-file annotation parsing.
internal/fixtures/entities/016-roles
Package entities is integration fixture 016-roles: declares PostgreSQL roles (application, admin, read-only) alongside the users and products tables.
Package entities is integration fixture 016-roles: declares PostgreSQL roles (application, admin, read-only) alongside the users and products tables.
internal/fixtures/entities/017-rls-inventario-reproduction
Package entities is integration fixture 017-rls-inventario-reproduction: reproduces the Inventario multi-tenant RLS schema used to debug tenant-isolation policy generation.
Package entities is integration fixture 017-rls-inventario-reproduction: reproduces the Inventario multi-tenant RLS schema used to debug tenant-isolation policy generation.
internal/fixtures/entities/017-roles-advanced
Package entities is integration fixture 017-roles-advanced: evolves the role declarations from 016-roles to exercise role alterations.
Package entities is integration fixture 017-roles-advanced: evolves the role declarations from 016-roles to exercise role alterations.
internal/fixtures/entities/018-rls-functions-modified
Package entities is integration fixture 018-rls-functions-modified: modifies the RLS functions from 014-rls-functions to exercise function-change migrations.
Package entities is integration fixture 018-rls-functions-modified: modifies the RLS functions from 014-rls-functions to exercise function-change migrations.
internal/fixtures/entities/019-field-check-constraints
Package entities is integration fixture 019-field-check-constraints: adds column-level check constraints to the users and products tables.
Package entities is integration fixture 019-field-check-constraints: adds column-level check constraints to the users and products tables.
internal/fixtures/entities/020-field-check-constraints-modified
Package entities is integration fixture 020-field-check-constraints-modified: modifies the check constraints from 019-field-check-constraints to exercise check-change diffs.
Package entities is integration fixture 020-field-check-constraints-modified: modifies the check constraints from 019-field-check-constraints to exercise check-change diffs.
internal/fixtures/entities/021-fk-actions-initial
Package entities is integration fixture 021-fk-actions-initial: a users/orders schema with the field-level foreign key fk_orders_user declared without explicit referential actions.
Package entities is integration fixture 021-fk-actions-initial: a users/orders schema with the field-level foreign key fk_orders_user declared without explicit referential actions.
internal/fixtures/entities/022-fk-actions-changed
Package entities is integration fixture 022-fk-actions-changed: changes fk_orders_user from 021-fk-actions-initial to carry ON DELETE SET NULL and ON UPDATE CASCADE.
Package entities is integration fixture 022-fk-actions-changed: changes fk_orders_user from 021-fk-actions-initial to carry ON DELETE SET NULL and ON UPDATE CASCADE.
internal/fixtures/entities/023-go-annotations-objects
Package entities is integration fixture 023-go-annotations-objects: declares non-table schema objects (such as views) through Go annotations, including a duplicate declaration case.
Package entities is integration fixture 023-go-annotations-objects: declares non-table schema objects (such as views) through Go annotations, including a duplicate declaration case.
internal/fixtures/entities/024-roundtrip-empty
Package entities is integration fixture 024-roundtrip-empty: an intentionally empty schema serving as the empty endpoint of round-trip scenarios.
Package entities is integration fixture 024-roundtrip-empty: an intentionally empty schema serving as the empty endpoint of round-trip scenarios.
internal/fixtures/entities/025-roundtrip-single-table
Package entities is integration fixture 025-roundtrip-single-table: a single users table for the minimal round-trip scenario.
Package entities is integration fixture 025-roundtrip-single-table: a single users table for the minimal round-trip scenario.
internal/fixtures/entities/026-roundtrip-composite-pk
Package entities is integration fixture 026-roundtrip-composite-pk: a memberships table with a composite primary key for round-trip testing.
Package entities is integration fixture 026-roundtrip-composite-pk: a memberships table with a composite primary key for round-trip testing.
internal/fixtures/entities/027-roundtrip-self-reference
Package entities is integration fixture 027-roundtrip-self-reference: a category table with a self-referencing foreign key.
Package entities is integration fixture 027-roundtrip-self-reference: a category table with a self-referencing foreign key.
internal/fixtures/entities/028-roundtrip-parent-child
Package entities is integration fixture 028-roundtrip-parent-child: a customer/order pair linked by a parent-child foreign key.
Package entities is integration fixture 028-roundtrip-parent-child: a customer/order pair linked by a parent-child foreign key.
internal/fixtures/entities/029-roundtrip-mutual-cycle
Package entities is integration fixture 029-roundtrip-mutual-cycle: left_nodes and right_nodes tables referencing each other to round-trip a mutual foreign-key cycle.
Package entities is integration fixture 029-roundtrip-mutual-cycle: left_nodes and right_nodes tables referencing each other to round-trip a mutual foreign-key cycle.
internal/fixtures/entities/030-roundtrip-check-v1
Package entities is integration fixture 030-roundtrip-check-v1: a product table with a check constraint, the first half of the check-constraint round-trip pair.
Package entities is integration fixture 030-roundtrip-check-v1: a product table with a check constraint, the first half of the check-constraint round-trip pair.
internal/fixtures/entities/031-roundtrip-check-v2
Package entities is integration fixture 031-roundtrip-check-v2: the modified check constraint completing the pair started in 030-roundtrip-check-v1.
Package entities is integration fixture 031-roundtrip-check-v2: the modified check constraint completing the pair started in 030-roundtrip-check-v1.
internal/fixtures/entities/032-roundtrip-unique-v1
Package entities is integration fixture 032-roundtrip-unique-v1: an account table with a unique constraint, the first half of the unique-constraint round-trip pair.
Package entities is integration fixture 032-roundtrip-unique-v1: an account table with a unique constraint, the first half of the unique-constraint round-trip pair.
internal/fixtures/entities/033-roundtrip-unique-v2
Package entities is integration fixture 033-roundtrip-unique-v2: the modified unique constraint completing the pair started in 032-roundtrip-unique-v1.
Package entities is integration fixture 033-roundtrip-unique-v2: the modified unique constraint completing the pair started in 032-roundtrip-unique-v1.
internal/fixtures/entities/034-roundtrip-fk-chain
Package entities is integration fixture 034-roundtrip-fk-chain: an organization, project, and task chain linked by foreign keys.
Package entities is integration fixture 034-roundtrip-fk-chain: an organization, project, and task chain linked by foreign keys.
internal/fixtures/entities/035-roundtrip-fk-diamond
Package entities is integration fixture 035-roundtrip-fk-diamond: a diamond-shaped foreign-key graph across account, team, project, and assignment tables.
Package entities is integration fixture 035-roundtrip-fk-diamond: a diamond-shaped foreign-key graph across account, team, project, and assignment tables.
internal/fixtures/entities/036-roundtrip-pk-base
Package entities is integration fixture 036-roundtrip-pk-base: a memberships table without a primary key, the base for the composite-primary-key round trips.
Package entities is integration fixture 036-roundtrip-pk-base: a memberships table without a primary key, the base for the composite-primary-key round trips.
internal/fixtures/entities/037-roundtrip-pk-composite-added
Package entities is integration fixture 037-roundtrip-pk-composite-added: adds a composite primary key (org_id, user_id) to the 036-roundtrip-pk-base memberships table.
Package entities is integration fixture 037-roundtrip-pk-composite-added: adds a composite primary key (org_id, user_id) to the 036-roundtrip-pk-base memberships table.
internal/fixtures/entities/038-roundtrip-pk-composite-removed
Package entities is integration fixture 038-roundtrip-pk-composite-removed: removes the composite primary key again, matching 036-roundtrip-pk-base.
Package entities is integration fixture 038-roundtrip-pk-composite-removed: removes the composite primary key again, matching 036-roundtrip-pk-base.
internal/fixtures/entities/039-roundtrip-enum-v1
Package entities is integration fixture 039-roundtrip-enum-v1: a product table with an enum status column, the first step of the enum round-trip sequence.
Package entities is integration fixture 039-roundtrip-enum-v1: a product table with an enum status column, the first step of the enum round-trip sequence.
internal/fixtures/entities/040-roundtrip-enum-v2-add
Package entities is integration fixture 040-roundtrip-enum-v2-add: adds an enum value to the 039-roundtrip-enum-v1 schema.
Package entities is integration fixture 040-roundtrip-enum-v2-add: adds an enum value to the 039-roundtrip-enum-v1 schema.
internal/fixtures/entities/041-roundtrip-enum-v3-remove
Package entities is integration fixture 041-roundtrip-enum-v3-remove: removes an enum value relative to 040-roundtrip-enum-v2-add.
Package entities is integration fixture 041-roundtrip-enum-v3-remove: removes an enum value relative to 040-roundtrip-enum-v2-add.
internal/fixtures/entities/042-roundtrip-check-to-unique-v1
Package entities is integration fixture 042-roundtrip-check-to-unique-v1: an account table with a check constraint that 043-roundtrip-check-to-unique-v2 replaces with a unique constraint.
Package entities is integration fixture 042-roundtrip-check-to-unique-v1: an account table with a check constraint that 043-roundtrip-check-to-unique-v2 replaces with a unique constraint.
internal/fixtures/entities/043-roundtrip-check-to-unique-v2
Package entities is integration fixture 043-roundtrip-check-to-unique-v2: replaces the check constraint from 042-roundtrip-check-to-unique-v1 with a unique constraint.
Package entities is integration fixture 043-roundtrip-check-to-unique-v2: replaces the check constraint from 042-roundtrip-check-to-unique-v1 with a unique constraint.
internal/fixtures/entities/044-roundtrip-unique-to-check-v1
Package entities is integration fixture 044-roundtrip-unique-to-check-v1: a product table with a unique constraint that 045-roundtrip-unique-to-check-v2 replaces with a check constraint.
Package entities is integration fixture 044-roundtrip-unique-to-check-v1: a product table with a unique constraint that 045-roundtrip-unique-to-check-v2 replaces with a check constraint.
internal/fixtures/entities/045-roundtrip-unique-to-check-v2
Package entities is integration fixture 045-roundtrip-unique-to-check-v2: replaces the unique constraint from 044-roundtrip-unique-to-check-v1 with a check constraint.
Package entities is integration fixture 045-roundtrip-unique-to-check-v2: replaces the unique constraint from 044-roundtrip-unique-to-check-v1 with a check constraint.
internal/fixtures/entities/046-roundtrip-existing-fk-base
Package entities is integration fixture 046-roundtrip-existing-fk-base: users and accounts tables where account_id and manager_id exist as plain columns without foreign keys.
Package entities is integration fixture 046-roundtrip-existing-fk-base: users and accounts tables where account_id and manager_id exist as plain columns without foreign keys.
internal/fixtures/entities/047-roundtrip-existing-fk-added
Package entities is integration fixture 047-roundtrip-existing-fk-added: adds foreign keys onto the pre-existing account_id and manager_id columns from 046-roundtrip-existing-fk-base.
Package entities is integration fixture 047-roundtrip-existing-fk-added: adds foreign keys onto the pre-existing account_id and manager_id columns from 046-roundtrip-existing-fk-base.
internal/fixtures/entities/048-ydb-topics
Package entities is integration fixture 048-ydb-topics: declares a YDB topic and its consumers through Go annotations.
Package entities is integration fixture 048-ydb-topics: declares a YDB topic and its consumers through Go annotations.
internal/fixtures/entities/049-ydb-coordination-nodes
Package entities is integration fixture 049-ydb-coordination-nodes: a YDB row table and the coordination nodes an application keeps beside it, one at the database root with YDB's defaults and one in a directory with every setting declared.
Package entities is integration fixture 049-ydb-coordination-nodes: a YDB row table and the coordination nodes an application keeps beside it, one at the database root with YDB's defaults and one in a directory with every setting declared.
internal/fixtures/entities/050-ydb-replication
Package entities is integration fixture 050-ydb-replication: declares a YDB async replication with its items, and a transfer from a changefeed's topic into a table, through Go annotations.
Package entities is integration fixture 050-ydb-replication: declares a YDB async replication with its items, and a transfer from a changefeed's topic into a table, through Go annotations.
internal/fixtures/entities/052-ydb-secrets
Package entities is integration fixture 052-ydb-secrets: declares YDB secrets through Go annotations, each naming the environment variable its value comes from.
Package entities is integration fixture 052-ydb-secrets: declares YDB secrets through Go annotations, each naming the environment variable its value comes from.
internal/fixtures/entities/053-ydb-external-sources
Package entities is integration fixture 053-ydb-external-sources: declares YDB external data sources, one naming its password by a secret's path, and an external table over files in object storage.
Package entities is integration fixture 053-ydb-external-sources: declares YDB external data sources, one naming its password by a secret's path, and an external table over files in object storage.
internal/fixtures/entities/054-ydb-resource-pools
Package entities is integration fixture 054-ydb-resource-pools: declares a YDB resource pool and a classifier that sends a group's queries to it, through Go annotations.
Package entities is integration fixture 054-ydb-resource-pools: declares a YDB resource pool and a classifier that sends a group's queries to it, through Go annotations.
internal/fixtures/entities/055-ydb-streaming-queries
Package entities declares a stopped streaming query for schema round trips.
Package entities declares a stopped streaming query for schema round trips.
internal
accessscope
Package accessscope refuses the access-control declarations a target cannot hold, before anything is rendered, compared or planned: a group declared as a principal of its own kind, a membership of one role in another, a grant on the database itself, a grant on a scheme object such as a topic, and a DENY.
Package accessscope refuses the access-control declarations a target cannot hold, before anything is rendered, compared or planned: a group declared as a principal of its own kind, a membership of one role in another, a grant on the database itself, a grant on a scheme object such as a topic, and a DENY.
aclitem
Package aclitem parses the text form of a PostgreSQL access-control list, the value of a column such as pg_default_acl.defaclacl.
Package aclitem parses the text form of a PostgreSQL access-control list, the value of a column such as pg_default_acl.defaclacl.
adoptpreflight
Package adoptpreflight answers one question about a database that already carries migration history: may native Ptah take over as its writer?
Package adoptpreflight answers one question about a database that already carries migration history: may native Ptah take over as its writer?
advisorysource
Package advisorysource supplies the reviewed advisory snapshots that `ptah db vulnerabilities` matches when no --advisories file is selected.
Package advisorysource supplies the reviewed advisory snapshots that `ptah db vulnerabilities` matches when no --advisories file is selected.
agentapi
Package agentapi is the versioned, read-only operation contract that both AI surfaces consume: the MCP server for external clients, and Ptah Assist.
Package agentapi is the versioned, read-only operation contract that both AI surfaces consume: the MCP server for external clients, and Ptah Assist.
agentaudit
Package agentaudit records what an AI-driven session asked for and what Ptah decided, so a change can be explained after the fact by something other than the transcript.
Package agentaudit records what an AI-driven session asked for and what Ptah decided, so a change can be explained after the fact by something other than the transcript.
agentdiag
Package agentdiag is the error taxonomy both AI surfaces answer with.
Package agentdiag is the error taxonomy both AI surfaces answer with.
agentgate
Package agentgate runs the deterministic checks that stand between an agent-written artifact and a report that the write succeeded.
Package agentgate runs the deterministic checks that stand between an agent-written artifact and a report that the write succeeded.
agentpatch
Package agentpatch is the only way an agent-driven surface changes a file in a Ptah workspace.
Package agentpatch is the only way an agent-driven surface changes a file in a Ptah workspace.
agentpolicy
Package agentpolicy decides what an AI-driven caller may do, outside the model loop and before any work happens.
Package agentpolicy decides what an AI-driven caller may do, outside the model loop and before any work happens.
agentsurface
Package agentsurface classifies every Ptah verb by what it does to the databases it is given.
Package agentsurface classifies every Ptah verb by what it does to the databases it is given.
agenttarget
Package agenttarget carries the live databases an agent may be permitted to inspect.
Package agenttarget carries the live databases an agent may be permitted to inspect.
agentworkspace
Package agentworkspace is the one place an agent operation learns where it may read and write, and the one place it learns what those files currently contain.
Package agentworkspace is the one place an agent operation learns where it may read and write, and the one place it learns what those files currently contain.
aiprovider
Package aiprovider is the provider-neutral contract Ptah Assist talks to a model through: bring your own key, your own model, and your own endpoint.
Package aiprovider is the provider-neutral contract Ptah Assist talks to a model through: bring your own key, your own model, and your own endpoint.
analysisboundary
Package analysisboundary records which processes the analysis trees may start, and holds them to it.
Package analysisboundary records which processes the analysis trees may start, and holds them to it.
annotationmeta
Package annotationmeta defines Ptah Go annotation directive metadata.
Package annotationmeta defines Ptah Go annotation directive metadata.
annotationparse
Package annotationparse scans Ptah Go annotation comments with positions.
Package annotationparse scans Ptah Go annotation comments with positions.
annotationschema
Package annotationschema renders JSON Schema for Ptah Go annotations.
Package annotationschema renders JSON Schema for Ptah Go annotations.
asciihost
Package asciihost compares the hosts a credential may be sent to.
Package asciihost compares the hosts a credential may be sent to.
assistconfig
Package assistconfig resolves which model Ptah Assist talks to, and how it gets the credential to do it.
Package assistconfig resolves which model Ptah Assist talks to, and how it gets the credential to do it.
assistloop
Package assistloop runs Ptah Assist's model loop: the model proposes, Ptah's own tools answer, and Ptah decides what the model was allowed to do.
Package assistloop runs Ptah Assist's model loop: the model proposes, Ptah's own tools answer, and Ptah decides what the model was allowed to do.
assistsession
Package assistsession stores what a Ptah Assist conversation did, so it can be read afterwards and continued later.
Package assistsession stores what a Ptah Assist conversation did, so it can be read afterwards and continued later.
astrouteguard
Package astrouteguard holds every dialect renderer to a decision about every AST node kind.
Package astrouteguard holds every dialect renderer to a decision about every AST node kind.
atlasargs
Package atlasargs maps Atlas-compatible command flags to native Ptah flags.
Package atlasargs maps Atlas-compatible command flags to native Ptah flags.
atlaschange
Package atlaschange names the change a planned statement makes, in the words the Atlas CLI writes above each statement of a migration file: `create "users" table`, `modify "users" table`, `drop index "i" from table: "t"`.
Package atlaschange names the change a planned statement makes, in the words the Atlas CLI writes above each statement of a migration file: `create "users" table`, `modify "users" table`, `drop index "i" from table: "t"`.
atlascheckform
Package atlascheckform writes the CHECK expressions a compatibility plan adds in the form the pinned community binary prints them.
Package atlascheckform writes the CHECK expressions a compatibility plan adds in the form the pinned community binary prints them.
atlascodes
Package atlascodes is the Atlas compatibility layer of lint: the table from Ptah rule names to the Atlas check codes they report, the Atlas analyzer names and the rules each one covers, the Atlas check list with what Ptah does about each check, and the reviewed snapshot of Atlas's own list that the table is gated against.
Package atlascodes is the Atlas compatibility layer of lint: the table from Ptah rule names to the Atlas check codes they report, the Atlas analyzer names and the rules each one covers, the Atlas check list with what Ptah does about each check, and the reviewed snapshot of Atlas's own list that the table is gated against.
atlascompatpolicy
Package atlascompatpolicy owns the process-wide policy that selects the complete ptah-compat surface or the Atlas Community Edition compatibility subset.
Package atlascompatpolicy owns the process-wide policy that selects the complete ptah-compat surface or the Atlas Community Edition compatibility subset.
atlasfilter
Package atlasfilter applies Atlas-style resource filters to introspected schemas.
Package atlasfilter applies Atlas-style resource filters to introspected schemas.
atlashash
Package atlashash implements Atlas-compatible cumulative migration hashes.
Package atlashash implements Atlas-compatible cumulative migration hashes.
atlashcl
Package atlashcl parses HCL schema files into Ptah's schema IR.
Package atlashcl parses HCL schema files into Ptah's schema IR.
atlashclfmt
Package atlashclfmt formats Atlas HCL schema files with canonical hclwrite formatting.
Package atlashclfmt formats Atlas HCL schema files with canonical hclwrite formatting.
atlashclrender
Package atlashclrender renders Ptah schema IR as HCL schema text.
Package atlashclrender renders Ptah schema IR as HCL schema text.
atlasmigrate
Package atlasmigrate implements the engine behind the ptah-compat binary's Atlas OSS "migrate" commands: applying, diffing, rolling back, and reporting status of versioned migration directories with Atlas-compatible semantics.
Package atlasmigrate implements the engine behind the ptah-compat binary's Atlas OSS "migrate" commands: applying, diffing, rolling back, and reporting status of versioned migration directories with Atlas-compatible semantics.
atlasmigrateimport
Package atlasmigrateimport converts migration directories from Atlas-supported tools (golang-migrate, Goose, Flyway, Liquibase, dbmate) to Atlas single-file migration layout.
Package atlasmigrateimport converts migration directories from Atlas-supported tools (golang-migrate, Goose, Flyway, Liquibase, dbmate) to Atlas single-file migration layout.
atlasmigratereport
Package atlasmigratereport renders Atlas-compatible "migrate apply" report output from Ptah runtime results, resolving the applied migration filesystem and connection details the report templates need.
Package atlasmigratereport renders Atlas-compatible "migrate apply" report output from Ptah runtime results, resolving the applied migration filesystem and connection details the report templates need.
atlasprojectpath
Package atlasprojectpath resolves local paths declared in atlas.hcl.
Package atlasprojectpath resolves local paths declared in atlas.hcl.
atlasreference
Package atlasreference names the pinned Atlas community binary the conformance tests measure against, and the one place its address is spelled.
Package atlasreference names the pinned Atlas community binary the conformance tests measure against, and the one place its address is spelled.
atlasregistry
Package atlasregistry maps Atlas's logical `atlas://` references onto ordinary OCI references.
Package atlasregistry maps Atlas's logical `atlas://` references onto ordinary OCI references.
atlasreport
Package atlasreport defines the Atlas CLI-compatible report payloads and template rendering used by the ptah-compat binary for migrate apply, down, lint, and status output in JSON and Go-template formats.
Package atlasreport defines the Atlas CLI-compatible report payloads and template rendering used by the ptah-compat binary for migrate apply, down, lint, and status output in JSON and Go-template formats.
atlasretry
Package atlasretry classifies transient database errors, the conflicts after which a transaction can safely run again, for Atlas-compatible metadata updates and the migrator's tag writes.
Package atlasretry classifies transient database errors, the conflicts after which a transaction can safely run again, for Atlas-compatible metadata updates and the migrator's tag writes.
atlasruntimevar
Package atlasruntimevar opens the runtime-variable URL schemes exposed by Atlas Community Edition through Go CDK.
Package atlasruntimevar opens the runtime-variable URL schemes exposed by Atlas Community Edition through Go CDK.
atlasruntimevar/awsparamstore
Package awsparamstore is the runtimevar driver behind Atlas awsparamstore:// URLs: a variable read from AWS Systems Manager Parameter Store with the GetParameter call.
Package awsparamstore is the runtimevar driver behind Atlas awsparamstore:// URLs: a variable read from AWS Systems Manager Parameter Store with the GetParameter call.
atlasschema
Package atlasschema implements the engine behind the ptah-compat binary's Atlas OSS "schema" commands: inspecting live databases, diffing schema sources, and applying desired state with Atlas-compatible policies and plan locking.
Package atlasschema implements the engine behind the ptah-compat binary's Atlas OSS "schema" commands: inspecting live databases, diffing schema sources, and applying desired state with Atlas-compatible policies and plan locking.
atlasscript
Package atlasscript implements the Atlas Scripts surface on the compatibility binary: the `script` HCL grammar and the verbs that run it.
Package atlasscript implements the Atlas Scripts surface on the compatibility binary: the `script` HCL grammar and the verbs that run it.
atlassource
Package atlassource classifies and resolves Atlas desired-state source URLs.
Package atlassource classifies and resolves Atlas desired-state source URLs.
atlasurl
Package atlasurl interprets Atlas-style database URLs: mapping a URL to a Ptah dialect, validating that a URL matches a target dialect, and deciding whether two URLs address the same database.
Package atlasurl interprets Atlas-style database URLs: mapping a URL to a Ptah dialect, validating that a URL matches a target dialect, and deciding whether two URLs address the same database.
autoincrement
Package autoincrement says whether a declared column is built auto-incrementing.
Package autoincrement says whether a declared column is built auto-incrementing.
backslashmode
Package backslashmode decides which spelling of a backslash Ptah writes for a MySQL-family session, and when text written for one session must not run on another.
Package backslashmode decides which spelling of a backslash Ptah writes for a MySQL-family session, and when text written for one session must not run on another.
blankimportguard
Package blankimportguard hosts the test that makes every blank import say why it is there.
Package blankimportguard hosts the test that makes every blank import say why it is there.
buildinfo
Package buildinfo exposes version metadata stamped into Ptah binaries.
Package buildinfo exposes version metadata stamped into Ptah binaries.
builtindialects
Package builtindialects holds the descriptors of the database engines Ptah ships, one file per engine.
Package builtindialects holds the descriptors of the database engines Ptah ships, one file per engine.
builtinlowering
Package builtinlowering composes common schema lowering with selected owner services.
Package builtinlowering composes common schema lowering with selected owner services.
builtintest
Package builtintest gives the tests of a test binary one bundled runtime to share.
Package builtintest gives the tests of a test binary one bundled runtime to share.
cabundle
Package cabundle reads a PEM file of certificate authorities into a pool a TLS client verifies a server against.
Package cabundle reads a PEM file of certificate authorities into a pool a TLS client verifies a server against.
capabilityline
Package capabilityline holds measured release-line identifiers shared by capability resolution and the CI matrix.
Package capabilityline holds measured release-line identifiers shared by capability resolution and the CI matrix.
capabilityprobe
Package capabilityprobe measures a live database server against the capability preset Ptah hands out for it.
Package capabilityprobe measures a live database server against the capability preset Ptah hands out for it.
capabilitysource
Package capabilitysource holds the line an executable provider states for each engine it serves about where the engine's connection reads capabilities that differ from its release line (contract 25.35, engine.connection-capability-source).
Package capabilitysource holds the line an executable provider states for each engine it serves about where the engine's connection reads capabilities that differ from its release line (contract 25.35, engine.connection-capability-source).
capmatrix
Package capmatrix drives the tiered capability-matrix pipeline of stokaro/ptah#1341: it turns the release lines declared in internal/capabilityprobe into a CI fan-out, runs one cell of it against a live server, and aggregates the per-cell results back into one attributable verdict.
Package capmatrix drives the tiered capability-matrix pipeline of stokaro/ptah#1341: it turns the release lines declared in internal/capabilityprobe into a CI fan-out, runs one cell of it against a live server, and aggregates the per-cell results back into one attributable verdict.
catalogfield
Package catalogfield describes one column a database reported as a field of the desired-schema model.
Package catalogfield describes one column a database reported as a field of the desired-schema model.
catalogspelling
Package catalogspelling gives the names a live read reports the spelling that addresses them.
Package catalogspelling gives the names a live read reports the spelling that addresses them.
chcolumn
Package chcolumn spells a declared column for ClickHouse: the type it maps to, whether that type is wrapped in Nullable, the DEFAULT or computed clause, and the column definition CREATE TABLE and ADD COLUMN take.
Package chcolumn spells a declared column for ClickHouse: the type it maps to, whether that type is wrapped in Nullable, the DEFAULT or computed clause, and the column definition CREATE TABLE and ADD COLUMN take.
chindexkey
Package chindexkey reads the key of a ClickHouse data-skipping index: it joins an index's key parts into the expression ADD INDEX takes, and decides whether a declared key and the one system.data_skipping_indices reports are one key.
Package chindexkey reads the key of a ClickHouse data-skipping index: it joins an index's key parts into the expression ADD INDEX takes, and decides whether a declared key and the one system.data_skipping_indices reports are one key.
chkey
Package chkey reads which columns a ClickHouse table's primary key uses, from the key clauses a declaration states, the way the server reports it in system.columns.is_in_primary_key.
Package chkey reads which columns a ClickHouse table's primary key uses, from the key clauses a declaration states, the way the server reports it in system.columns.is_in_primary_key.
chpolicyexport
Package chpolicyexport prepares the ClickHouse row policies of a database read for a schema written from it: the file ptah db read, ptah schema inspect and ptah introspect write, and the desired schema a database or a replayed migration directory stands for in a comparison.
Package chpolicyexport prepares the ClickHouse row policies of a database read for a schema written from it: the file ptah db read, ptah schema inspect and ptah introspect write, and the desired schema a database or a replayed migration directory stands for in a comparison.
chpolicysource
Package chpolicysource reads the ClickHouse owner's row policies (chschema.DesiredRowPolicy) out of the attributes a schema source spells them with.
Package chpolicysource reads the ClickHouse owner's row policies (chschema.DesiredRowPolicy) out of the attributes a schema source spells them with.
chrefresh
Package chrefresh converts a ClickHouse materialized-view refresh schedule into the form the server stores, and refuses the schedules it will not keep.
Package chrefresh converts a ClickHouse materialized-view refresh schedule into the form the server stores, and refuses the schedules it will not keep.
chronologyguard
Package chronologyguard hosts the test that keeps Ptah's own past out of Go comments.
Package chronologyguard hosts the test that keeps Ptah's own past out of Go comments.
chtype
Package chtype reads ClickHouse column types for the renderer that writes them, the parser and reader that ask whether a column admits NULL, and the schema comparison that asks whether a live column already has the declared type.
Package chtype reads ClickHouse column types for the renderer that writes them, the parser and reader that ask whether a column admits NULL, and the schema comparison that asks whether a live column already has the declared type.
cli/assist
Package assist implements "ptah assist", the native Ptah surface that talks to a model the operator chose, through a key the operator holds.
Package assist implements "ptah assist", the native Ptah surface that talks to a model the operator chose, through a key the operator holds.
cli/atlas
Package atlas exposes Atlas-compatible command paths.
Package atlas exposes Atlas-compatible command paths.
cli/atlas/internal/atlastest
Package atlastest holds the test helpers that more than one of internal/cli/atlas's test packages needs.
Package atlastest holds the test helpers that more than one of internal/cli/atlas's test packages needs.
cli/atlas/internal/migratetests
Package migratetests holds the external tests of internal/cli/atlas's `migrate` verbs.
Package migratetests holds the external tests of internal/cli/atlas's `migrate` verbs.
cli/atlas/internal/schematests
Package schematests holds the external tests of internal/cli/atlas's `schema` verbs.
Package schematests holds the external tests of internal/cli/atlas's `schema` verbs.
cli/banner
Package banner renders the shared Ptah identity the command-line binaries show on their top-level entry screen.
Package banner renders the shared Ptah identity the command-line binaries show on their top-level entry screen.
cli/cliobs
Package cliobs wires command-line logging, tracing, and metrics helpers.
Package cliobs wires command-line logging, tracing, and metrics helpers.
cli/compare
Package compare implements "ptah schema compare", which builds the desired schema from Go entities or schema files and reports how it differs from a live database.
Package compare implements "ptah schema compare", which builds the desired schema from Go entities or schema files and reports how it differs from a live database.
cli/db
Package db contains native live-database command groups.
Package db contains native live-database command groups.
cli/dbcapabilities
Package dbcapabilities implements "ptah db capabilities", which connects to a live database and reports what Ptah has established about it: the server it identified, the capability preset it will plan with and how that preset was reached, what this repository promises about the release line, and every capability key with its value there.
Package dbcapabilities implements "ptah db capabilities", which connects to a live database and reports what Ptah has established about it: the server it identified, the capability preset it will plan with and how that preset was reached, what this repository promises about the release line, and every capability key with its value there.
cli/dbverify
Package dbverify implements "ptah db verify", which evaluates release-state assertions against an existing database and changes nothing in it.
Package dbverify implements "ptah db verify", which evaluates release-state assertions against an existing database and changes nothing in it.
cli/dbvulnerabilities
Package dbvulnerabilities contains the native local advisory scan command.
Package dbvulnerabilities contains the native local advisory scan command.
cli/drift
Package drift implements "ptah schema drift", which checks a live database for drift against the desired schema and signals divergence through its exit code.
Package drift implements "ptah schema drift", which checks a live database for drift against the desired schema and signals divergence through its exit code.
cli/dropall
Package dropall implements "ptah db drop-all", the destructive command that drops all tables and enums from the target database.
Package dropall implements "ptah db drop-all", the destructive command that drops all tables and enums from the target database.
cli/generate
Package generate implements "ptah schema render", which renders the desired schema from Go entity annotations or local schema files as dialect-specific SQL DDL.
Package generate implements "ptah schema render", which renders the desired schema from Go entity annotations or local schema files as dialect-specific SQL DDL.
cli/inference
Package inference implements "ptah inference", which plans, runs, verifies and cuts over an embedding-generation migration.
Package inference implements "ptah inference", which plans, runs, verifies and cuts over an embedding-generation migration.
cli/internal/agentflags
Package agentflags is the one place `ptah mcp` and `ptah assist` resolve what an AI-driven session may reach.
Package agentflags is the one place `ptah mcp` and `ptah assist` resolve what an AI-driven session may reach.
cli/internal/checkscan
Package checkscan declares --skip-check-scan, the flag a native command that plans schema changes takes to add a CHECK constraint without scanning the rows the table already holds.
Package checkscan declares --skip-check-scan, the flag a native command that plans schema changes takes to add a CHECK constraint without scanning the rows the table already holds.
cli/internal/cmdadapter
Package cmdadapter contains small Cobra forwarding helpers for external command surfaces that delegate to native Ptah command implementations.
Package cmdadapter contains small Cobra forwarding helpers for external command surfaces that delegate to native Ptah command implementations.
cli/internal/cmdflags
Package cmdflags contains small helpers for Ptah command flag wiring.
Package cmdflags contains small helpers for Ptah command flag wiring.
cli/internal/cmdutil
Package cmdutil holds small helpers shared by CLI subcommands: consistent usage-error reporting, command-tree error policies, and directory validation.
Package cmdutil holds small helpers shared by CLI subcommands: consistent usage-error reporting, command-tree error policies, and directory validation.
cli/internal/dbcli
Package dbcli holds small helpers shared by the CLI subcommands that connect to a database.
Package dbcli holds small helpers shared by the CLI subcommands that connect to a database.
cli/internal/devsnapshot
Package devsnapshot reproduces, on the Atlas-compatible surface, the pinned community binary's refusal of a dev database that is not clean.
Package devsnapshot reproduces, on the Atlas-compatible surface, the pinned community binary's refusal of a dev database that is not clean.
cli/internal/diffreport
Package diffreport turns a schema diff into the list of change categories it carries, for the CLI commands that report a comparison to an operator.
Package diffreport turns a schema diff into the list of change categories it carries, for the CLI commands that report a comparison to an operator.
cli/internal/dirtyhint
Package dirtyhint words the command that ends a dirty migration revision, for the native commands that meet one: `ptah migrations status` prints it under the revision, and `ptah migrations down` adds it to its refusal to roll back past one.
Package dirtyhint words the command that ends a dirty migration revision, for the native commands that meet one: `ptah migrations status` prints it under the revision, and `ptah migrations down` adds it to its refusal to roll back past one.
cli/internal/editor
Package editor resolves and launches the operator-configured text editor for commands that open migration or plan files for interactive editing.
Package editor resolves and launches the operator-configured text editor for commands that open migration or plan files for interactive editing.
cli/internal/engineruntime
Package engineruntime selects the schema runtime for one command invocation.
Package engineruntime selects the schema runtime for one command invocation.
cli/internal/envboolguard
Package envboolguard hosts the repository guard for the boolean `PTAH_*` environment-variable contract.
Package envboolguard hosts the repository guard for the boolean `PTAH_*` environment-variable contract.
cli/internal/exitcode
Package exitcode carries explicit process exit codes through cobra command execution without making every command know about os.Exit.
Package exitcode carries explicit process exit codes through cobra command execution without making every command know about os.Exit.
cli/internal/licensetext
Package licensetext holds the license and attribution text shared by the native `ptah license` command and the Atlas-compatible `license` verb, so both surfaces print exactly the same notice.
Package licensetext holds the license and attribution text shared by the native `ptah license` command and the Atlas-compatible `license` verb, so both surfaces print exactly the same notice.
cli/internal/migrateflags
Package migrateflags parses the CLI flag values the migration commands share into migrator types.
Package migrateflags parses the CLI flag values the migration commands share into migrator types.
cli/internal/migratelock
Package migratelock answers a migration advisory lock timeout aimed at a target whose dialect has no such lock.
Package migratelock answers a migration advisory lock timeout aimed at a target whose dialect has no such lock.
cli/internal/migratemaint
Package migratemaint holds the flag surface and applied-migration guard shared by the migration-directory maintenance commands (`ptah migrations rm | edit | rebase`, #662).
Package migratemaint holds the flag surface and applied-migration guard shared by the migration-directory maintenance commands (`ptah migrations rm | edit | rebase`, #662).
cli/internal/migrateread
Package migrateread holds the flag surface and source resolution shared by the migration-directory commands that only READ the directory and print what they found: `ptah migrations ls` and `ptah migrations show` (#1618).
Package migrateread holds the flag surface and source resolution shared by the migration-directory commands that only READ the directory and print what they found: `ptah migrations ls` and `ptah migrations show` (#1618).
cli/internal/migraterun
Package migraterun writes the run document `ptah migrations up --json` and `ptah migrations down --json` print: one JSON document per run, on success and on failure, built from the migrator's own evidence by migrator.NewRunResult.
Package migraterun writes the run document `ptah migrations up --json` and `ptah migrations down --json` print: one JSON document per run, on success and on failure, built from the migrator's own evidence by migrator.NewRunResult.
cli/internal/migratetimeout
Package migratetimeout refuses a run-wide lock or statement timeout aimed at a target that cannot carry one.
Package migratetimeout refuses a run-wide lock or statement timeout aimed at a target that cannot carry one.
cli/internal/migrationsource
Package migrationsource resolves local and OCI-backed migration directories.
Package migrationsource resolves local and OCI-backed migration directories.
cli/internal/providercommand
Package providercommand owns the provider selection of one native command, including every error and panic exit from that command.
Package providercommand owns the provider selection of one native command, including every error and panic exit from that command.
cli/internal/pushreceipt
Package pushreceipt writes what `ptah schema push` and `ptah migrations push` published, in the format the caller chose with --format.
Package pushreceipt writes what `ptah schema push` and `ptah migrations push` published, in the format the caller chose with --format.
cli/internal/schemaops
Package schemaops contains shared command-line schema comparison helpers.
Package schemaops contains shared command-line schema comparison helpers.
cli/internal/schemaserve
Package schemaserve serves a live view of a schema and the database it describes.
Package schemaserve serves a live view of a schema and the database it describes.
cli/internal/secretrotation
Package secretrotation declares --rotate-secret, the flag a native command that plans schema changes takes to give a YDB secret a new value.
Package secretrotation declares --rotate-secret, the flag a native command that plans schema changes takes to give a YDB secret a new value.
cli/internal/serverversion
Package serverversion registers the flag that lets an offline command pin the server it is planning for, and identifies that flag again in a built command tree.
Package serverversion registers the flag that lets an offline command pin the server it is planning for, and identifies that flag again in a built command tree.
cli/internal/sourcepull
Package sourcepull is the Git and HTTPS side of `ptah schema pull` and `ptah migrations pull`: the flags that say what to read, the fetch, the files it writes, and the report.
Package sourcepull is the Git and HTTPS side of `ptah schema pull` and `ptah migrations pull`: the flags that say what to read, the fetch, the files it writes, and the report.
cli/internal/tablerebuild
Package tablerebuild declares --allow-table-rebuild, the flag a native command that plans schema changes takes to rebuild a table where the target cannot change it in place.
Package tablerebuild declares --allow-table-rebuild, the flag a native command that plans schema changes takes to rebuild a table where the target cannot change it in place.
cli/internal/terminologyguard
Package terminologyguard hosts the repository guard that holds the native command tree's help text to the terminology registry.
Package terminologyguard hosts the repository guard that holds the native command tree's help text to the terminology registry.
cli/internal/testexternal
Package testexternal answers whether a `.test.hcl` case may run its `external` step, so `ptah schema test`, `ptah migrations test` and the compatibility test verbs cannot answer the question differently.
Package testexternal answers whether a `.test.hcl` case may run its `external` step, so `ptah schema test`, `ptah migrations test` and the compatibility test verbs cannot answer the question differently.
cli/internal/valuerounding
Package valuerounding declares --allow-value-rounding, the flag a native command that plans schema changes takes to convert a column to a type that keeps fewer digits after the point without reading the values its table holds, and that `migrations up` and `migrations down` take to execute such a conversion a migration file's check would refuse.
Package valuerounding declares --allow-value-rounding, the flag a native command that plans schema changes takes to convert a column to a type that keeps fewer digits after the point without reading the values its table holds, and that `migrations up` and `migrations down` take to execute such a conversion a migration file's check would refuse.
cli/internal/webartifact
Package webartifact writes a schema ERD a person can look at, and offers to open it.
Package webartifact writes a schema ERD a person can look at, and offers to open it.
cli/introspect
Package introspect implements live database import into annotated Go models.
Package introspect implements live database import into annotated Go models.
cli/license
Package license implements the native `ptah license` command.
Package license implements the native `ptah license` command.
cli/lint
Package lint implements the migration lint command: a sqlcheck-style linter for migration directories with named findings (issue #151).
Package lint implements the migration lint command: a sqlcheck-style linter for migration directories with named findings (issue #151).
cli/mcp
Package mcp implements "ptah mcp", the Model Context Protocol server that exposes Ptah's operations to external AI clients.
Package mcp implements "ptah mcp", the Model Context Protocol server that exposes Ptah's operations to external AI clients.
cli/migrate
Package migrate implements the "ptah migrations" planning commands: "plan" prints migration SQL from schema differences, "generate" writes timestamped migration files, and "create" scaffolds empty migration files for manual SQL.
Package migrate implements the "ptah migrations" planning commands: "plan" prints migration SQL from schema differences, "generate" writes timestamped migration files, and "create" scaffolds empty migration files for manual SQL.
cli/migratebaseline
Package migratebaseline implements "ptah migrations baseline", which records existing migration files as already applied in the revision table without executing them.
Package migratebaseline implements "ptah migrations baseline", which records existing migration files as already applied in the revision table without executing them.
cli/migratecheckpoint
Package migratecheckpoint implements `ptah migrations checkpoint`, which squashes a migration directory's history into a cumulative-schema checkpoint.
Package migratecheckpoint implements `ptah migrations checkpoint`, which squashes a migration directory's history into a cumulative-schema checkpoint.
cli/migratedata
Package migratedata implements `ptah migrations data`, which generates an ordinary migration from the drift between declarative reference/seed data (//ptah:schema:data annotations) and a live database.
Package migratedata implements `ptah migrations data`, which generates an ordinary migration from the drift between declarative reference/seed data (//ptah:schema:data annotations) and a live database.
cli/migratedown
Package migratedown implements "ptah migrations down", which rolls back applied migrations to a target version against a live database.
Package migratedown implements "ptah migrations down", which rolls back applied migrations to a target version against a live database.
cli/migrateedit
Package migrateedit implements the migrations edit command: it edits a migration's up/down SQL (interactively via $EDITOR, or non-interactively from --up-file / --down-file) and rewrites the integrity file, refusing to edit an already-applied migration unless forced (#662).
Package migrateedit implements the migrations edit command: it edits a migration's up/down SQL (interactively via $EDITOR, or non-interactively from --up-file / --down-file) and rewrites the integrity file, refusing to edit an already-applied migration unless forced (#662).
cli/migratehash
Package migratehash implements the migration hash command: it writes or updates the ptah.sum integrity file for a migrations directory (#161).
Package migratehash implements the migration hash command: it writes or updates the ptah.sum integrity file for a migrations directory (#161).
cli/migratelog
Package migratelog implements the native `ptah migrations log` command: it reads the append-only record of migration operations a database has seen.
Package migratelog implements the native `ptah migrations log` command: it reads the append-only record of migration operations a database has seen.
cli/migratels
Package migratels implements the migrations ls command: it lists the migration files a migration directory holds, without connecting to a database (#1618).
Package migratels implements the migrations ls command: it lists the migration files a migration directory holds, without connecting to a database (#1618).
cli/migraterebase
Package migraterebase implements the migrations rebase command: it moves a migration to the end of history by re-timestamping its up/down pair and rewriting the integrity file, refusing to rebase an already-applied migration unless forced (#662).
Package migraterebase implements the migrations rebase command: it moves a migration to the end of history by re-timestamping its up/down pair and rewriting the integrity file, refusing to rebase an already-applied migration unless forced (#662).
cli/migraterepair
Package migraterepair implements "ptah migrations repair", which fixes dirty or partial migration revision metadata after a failed run.
Package migraterepair implements "ptah migrations repair", which fixes dirty or partial migration revision metadata after a failed run.
cli/migraterm
Package migraterm implements the migrations rm command: it deletes a migration's up/down pair and rewrites the integrity file, refusing to remove an already-applied migration unless forced (#662).
Package migraterm implements the migrations rm command: it deletes a migration's up/down pair and rewrites the integrity file, refusing to remove an already-applied migration unless forced (#662).
cli/migraterollout
Package migraterollout implements `ptah migrations rollout`: the native surface of the staged rollout in internal/migrationrollout.
Package migraterollout implements `ptah migrations rollout`: the native surface of the staged rollout in internal/migrationrollout.
cli/migrateset
Package migrateset implements the native `ptah migrations set` command: it moves the revision boundary to an arbitrary migration version in both directions without executing migration SQL.
Package migrateset implements the native `ptah migrations set` command: it moves the revision boundary to an arbitrary migration version in both directions without executing migration SQL.
cli/migrateshow
Package migrateshow implements the migrations show command: it prints the SQL stored in a migration directory, without connecting to a database (#1618).
Package migrateshow implements the migrations show command: it prints the SQL stored in a migration directory, without connecting to a database (#1618).
cli/migratestatus
Package migratestatus implements "ptah migrations status", which reports applied and pending migrations for a live database and migrations directory.
Package migratestatus implements "ptah migrations status", which reports applied and pending migrations for a live database and migrations directory.
cli/migratetag
Package migratetag implements the native `ptah migrations tag` command: it records, lists, and removes the tags that name a migration-directory state, so `ptah migrations down --to-tag` has something to resolve against.
Package migratetag implements the native `ptah migrations tag` command: it records, lists, and removes the tags that name a migration-directory state, so `ptah migrations down --to-tag` has something to resolve against.
cli/migrateup
Package migrateup implements "ptah migrations up", which applies pending migrations to a live database with optional lint checks, apply limits, and online-DDL configuration.
Package migrateup implements "ptah migrations up", which applies pending migrations to a live database with optional lint checks, apply limits, and online-DDL configuration.
cli/migratevalidate
Package migratevalidate implements the migration validation command: it verifies a migrations directory against its committed ptah.sum and exits non-zero on any drift (#161).
Package migratevalidate implements the migration validation command: it verifies a migrations directory against its committed ptah.sum and exits non-zero on any drift (#161).
cli/migrations
Package migrations contains Ptah's native migration command group.
Package migrations contains Ptah's native migration command group.
cli/migrationsdrift
Package migrationsdrift implements "ptah migrations drift", which reports whether a database still holds the schema its applied migration history produces, and applies nothing.
Package migrationsdrift implements "ptah migrations drift", which reports whether a database still holds the schema its applied migration history produces, and applies nothing.
cli/migrationsimport
Package migrationsimport implements the migrations import command: it converts a migration directory produced by another versioned-migration tool (golang-migrate, Goose, Flyway, Liquibase, and dbmate) into Ptah's native NNNNNNNNNN_description.up.sql / .down.sql layout, preserving version order and history (#667).
Package migrationsimport implements the migrations import command: it converts a migration directory produced by another versioned-migration tool (golang-migrate, Goose, Flyway, Liquibase, and dbmate) into Ptah's native NNNNNNNNNN_description.up.sql / .down.sql layout, preserving version order and history (#667).
cli/migrationspull
Package migrationspull implements migration directory retrieval from OCI registries, Git repositories and HTTPS URLs.
Package migrationspull implements migration directory retrieval from OCI registries, Git repositories and HTTPS URLs.
cli/migrationspush
Package migrationspush implements migration artifact publication to OCI registries.
Package migrationspush implements migration artifact publication to OCI registries.
cli/migrationstest
Package migrationstest implements the "ptah migrations test" command, which runs declarative YAML migration test cases against an ephemeral or throwaway database.
Package migrationstest implements the "ptah migrations test" command, which runs declarative YAML migration test cases against an ephemeral or throwaway database.
cli/oci
Package oci contains commands for inspecting Ptah OCI artifacts.
Package oci contains commands for inspecting Ptah OCI artifacts.
cli/project
Package project implements `ptah project`: the verbs that read a project file and say what Ptah makes of it.
Package project implements `ptah project`: the verbs that read a project file and say what Ptah makes of it.
cli/providers
Package providers exposes provider catalog, installation, and negotiation diagnostics, and installs a release of an engine's official provider into the user store.
Package providers exposes provider catalog, installation, and negotiation diagnostics, and installs a release of an engine's official provider into the user store.
cli/readdb
Package readdb implements "ptah db read", which introspects a live database and displays its tables, columns, indexes, and constraints.
Package readdb implements "ptah db read", which introspects a live database and displays its tables, columns, indexes, and constraints.
cli/root
Package root wires the Ptah command tree.
Package root wires the Ptah command tree.
cli/schema
Package schema contains schema-source conversion commands.
Package schema contains schema-source conversion commands.
cli/schemapull
Package schemapull implements desired-schema retrieval from OCI registries, Git repositories and HTTPS URLs.
Package schemapull implements desired-schema retrieval from OCI registries, Git repositories and HTTPS URLs.
cli/schemapush
Package schemapush implements desired-schema publication to OCI registries.
Package schemapush implements desired-schema publication to OCI registries.
cli/seed
Package seed implements "ptah seed", which applies environment-scoped SQL seed files to a live database.
Package seed implements "ptah seed", which applies environment-scoped SQL seed files to a live database.
cli/skill
Package skill implements `ptah skill`, which lists the agent skills Ptah ships and installs them where a coding agent reads skills.
Package skill implements `ptah skill`, which lists the agent skills Ptah ships and installs them where a coding agent reads skills.
cli/sql
Package sql contains commands for standalone SQL files.
Package sql contains commands for standalone SQL files.
cli/version
Package version contains the ptah version command.
Package version contains the ptah version command.
cli/viz
Package viz contains the native schema visualization command.
Package viz contains the native schema visualization command.
clickhousecomparison
Package clickhousecomparison holds the rules ClickHouse gives the shared schema comparison (schemacomparison.Rules): how a data-skipping index's definition and a computed column's expression read on ClickHouse, and the server that decides whether two CHECKs are one.
Package clickhousecomparison holds the rules ClickHouse gives the shared schema comparison (schemacomparison.Rules): how a data-skipping index's definition and a computed column's expression read on ClickHouse, and the server that decides whether two CHECKs are one.
clickhouserbac
Package clickhouserbac decides which declared ClickHouse roles and grants Ptah will manage, and refuses the rest before anything reaches a server.
Package clickhouserbac decides which declared ClickHouse roles and grants Ptah will manage, and refuses the rest before anything reaches a server.
clientdelimiter
Package clientdelimiter recognizes a client delimiter directive, the MySQL client's `DELIMITER $$` line and Atlas's `-- atlas:delimiter $$` comment, and rewrites the script around one into ordinary semicolon-terminated SQL.
Package clientdelimiter recognizes a client delimiter directive, the MySQL client's `DELIMITER $$` line and Atlas's `-- atlas:delimiter $$` comment, and rewrites the script around one into ordinary semicolon-terminated SQL.
clirun
Package clirun builds and runs Ptah's shipped binaries for end-to-end tests.
Package clirun builds and runs Ptah's shipped binaries for end-to-end tests.
clirunguard
Package clirunguard hosts the test that keeps every package building with ptah.run/internal/clirun from leaving its programs in the temp directory.
Package clirunguard hosts the test that keeps every package building with ptah.run/internal/clirun from leaving its programs in the temp directory.
cloudtoken
Package cloudtoken mints the short-lived IAM credentials an atlas.hcl project can name as a database password.
Package cloudtoken mints the short-lived IAM credentials an atlas.hcl project can name as a database password.
cmd/agentsurface command
Command agentsurface prints the agent-exposure classification of every Ptah verb as markdown, for docs/agent-surface.md.
Command agentsurface prints the agent-exposure classification of every Ptah verb as markdown, for docs/agent-surface.md.
cmd/atlasref command
Command atlasref compares the committed Atlas analyzer reference with the published page, and reports what changed.
Command atlasref compares the committed Atlas analyzer reference with the published page, and reports what changed.
cmd/boundaries command
Command boundaries measures the architecture boundaries ADR 0001 declares and refuses the ones that grow.
Command boundaries measures the architecture boundaries ADR 0001 declares and refuses the ones that grow.
cmd/capmatrix command
Command capmatrix is the driver for Ptah's tiered capability-matrix pipeline (stokaro/ptah#1341).
Command capmatrix is the driver for Ptah's tiered capability-matrix pipeline (stokaro/ptah#1341).
cmd/cmdref command
Command cmdref prints one command-reference rendering for a contributor who wants to see it without running the documentation sync.
Command cmdref prints one command-reference rendering for a contributor who wants to see it without running the documentation sync.
cmd/docsync command
Command docsync keeps every generated documentation block equal to what its generator renders, and rewrites them all on `--write`.
Command docsync keeps every generated documentation block equal to what its generator renders, and rewrites them all on `--write`.
cmd/eolcheck command
Command eolcheck asks endoflife.date whether the release lines this repository declares are still supported by their vendors, and lowers one declaration when asked to.
Command eolcheck asks endoflife.date whether the release lines this repository declares are still supported by their vendors, and lowers one declaration when asked to.
cmd/exporteddocs command
Command exporteddocs refuses an undocumented declaration on the public embedder surface.
Command exporteddocs refuses an undocumented declaration on the public embedder surface.
cmd/featureinventory command
Command featureinventory derives Ptah's feature register from the product's own declarations, and checks the committed artifact against that derivation.
Command featureinventory derives Ptah's feature register from the product's own declarations, and checks the committed artifact against that derivation.
cmd/gotoolchain command
Command gotoolchain checks that the Go toolchain is declared once, in the root go.mod, and derived everywhere else.
Command gotoolchain checks that the Go toolchain is declared once, in the root go.mod, and derived everywhere else.
cmd/lintrules command
Command lintrules renders the documented lint-rule enumeration from the registries the linters actually consult (stokaro/ptah#1482).
Command lintrules renders the documented lint-rule enumeration from the registries the linters actually consult (stokaro/ptah#1482).
cmd/pgsecuritysnapshot command
Command pgsecuritysnapshot updates the reviewed local PostgreSQL advisories.
Command pgsecuritysnapshot updates the reviewed local PostgreSQL advisories.
cmd/providerpublished command
Command providerpublished records what an official executable provider publishes about its engines, for the tools that run without it: the lint rule catalog, the Go annotation schema and the language server read the record through internal/providerpublished.
Command providerpublished records what an official executable provider publishes about its engines, for the tools that run without it: the lint rule catalog, the Go annotation schema and the language server read the record through internal/providerpublished.
cmd/quickstart command
Command quickstart runs the commands the quick-start pages publish and checks them against the output those pages show.
Command quickstart runs the commands the quick-start pages publish and checks them against the output those pages show.
cmd/renovateregex command
Command renovateregex compiles every custom-manager pattern in renovate.json with the engine Renovate evaluates them with.
Command renovateregex compiles every custom-manager pattern in renovate.json with the engine Renovate evaluates them with.
cmd/securitysnapshots command
Command securitysnapshots checks the bundled server advisories against their upstream pages.
Command securitysnapshots checks the bundled server advisories against their upstream pages.
cmd/testcontour command
Package main runs Ptah's build-tagged integration package contour, whole or one shard of it, and verifies that a sharded contour's reports add up to the whole.
Package main runs Ptah's build-tagged integration package contour, whole or one shard of it, and verifies that a sharded contour's reports add up to the whole.
cmd/workflowimagepins command
Command workflowimagepins prints container images that GitHub Actions workflows actually start.
Command workflowimagepins prints container images that GitHub Actions workflows actually start.
cmdforward
Package cmdforward records what a forwarding command runs, so code that reads a command tree without executing it can find out.
Package cmdforward records what a forwarding command runs, so code that reads a command tree without executing it can find out.
cmdref
Package cmdref turns the cobra trees the two Ptah binaries ship into the generated half of the command reference.
Package cmdref turns the cobra trees the two Ptah binaries ship into the generated half of the command reference.
cmdrefviews
Package cmdrefviews names the four command-reference renderings and builds the surfaces each one measures.
Package cmdrefviews names the four command-reference renderings and builds the surfaces each one measures.
cockroachcomparison
Package cockroachcomparison holds the rules CockroachDB gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on CockroachDB.
Package cockroachcomparison holds the rules CockroachDB gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on CockroachDB.
cockroachtype
Package cockroachtype answers what CockroachDB builds for a declared column type where that differs from the declared spelling.
Package cockroachtype answers what CockroachDB builds for a declared column type where that differs from the declared spelling.
collatedkey
Package collatedkey spells an index key that is a column under a COLLATE of its own, `code COLLATE NOCASE`, in the one form a SQL document and a read of the database both give it.
Package collatedkey spells an index key that is a column under a COLLATE of its own, `code COLLATE NOCASE`, in the one form a SQL document and a read of the database both give it.
columnkey
Package columnkey names the key a column's own UNIQUE builds, as the server names it, on the engines whose naming is measured.
Package columnkey names the key a column's own UNIQUE builds, as the server names it, on the engines whose naming is measured.
columnsemantics
Package columnsemantics binds offline column receipts to shared conversion paths without changing captured declarations or observations.
Package columnsemantics binds offline column receipts to shared conversion paths without changing captured declarations or observations.
columnsequence
Package columnsequence answers which sequence is part of a PostgreSQL column: the one a serial or an identity column creates.
Package columnsequence answers which sequence is part of a PostgreSQL column: the one a serial or an identity column creates.
concurrentindex
Package concurrentindex decides which index additions a PostgreSQL-family target should build with CREATE INDEX CONCURRENTLY.
Package concurrentindex decides which index additions a PostgreSQL-family target should build with CREATE INDEX CONCURRENTLY.
connectgate
Package connectgate lets a command surface refuse a database dialect for every connection opened under a context, before anything is dialed.
Package connectgate lets a command surface refuse a database dialect for every connection opened under a context, before anything is dialed.
connector
Package connector declares the service an engine provides to connect to its servers, and the registry dbschema chooses one from.
Package connector declares the service an engine provides to connect to its servers, and the registry dbschema chooses one from.
connector/clickhouseconnect
Package clickhouseconnect connects to ClickHouse through clickhouse-go's database/sql driver.
Package clickhouseconnect connects to ClickHouse through clickhouse-go's database/sql driver.
connector/mssqlconnect
Package mssqlconnect connects to SQL Server through go-mssqldb.
Package mssqlconnect connects to SQL Server through go-mssqldb.
connector/mysqlconnect
Package mysqlconnect connects to the engines that speak the MySQL wire protocol, MySQL and MariaDB, through go-sql-driver/mysql.
Package mysqlconnect connects to the engines that speak the MySQL wire protocol, MySQL and MariaDB, through go-sql-driver/mysql.
connector/oracleconnect
Package oracleconnect connects to Oracle Database through go-ora.
Package oracleconnect connects to Oracle Database through go-ora.
connector/pgconnect
Package pgconnect connects to the engines that speak the PostgreSQL wire protocol: PostgreSQL, CockroachDB and YugabyteDB.
Package pgconnect connects to the engines that speak the PostgreSQL wire protocol: PostgreSQL, CockroachDB and YugabyteDB.
connector/sqliteconnect
Package sqliteconnect connects to SQLite: a local file or an in-memory database through modernc's driver, or a remote libSQL (Turso) server, which keeps SQLite's schema semantics over its own transport.
Package sqliteconnect connects to SQLite: a local file or an in-memory database through modernc's driver, or a remote libSQL (Turso) server, which keeps SQLite's schema semantics over its own transport.
constraintkind
Package constraintkind defines which constraint kinds belong to the common model.
Package constraintkind defines which constraint kinds belong to the common model.
constraintowner
Package constraintowner answers which declared table a constraint of a desired schema belongs to.
Package constraintowner answers which declared table a constraint of a desired schema belongs to.
constraintscope
Package constraintscope derives the identity that makes two constraint records one object.
Package constraintscope derives the identity that makes two constraint records one object.
convert/dbschematogo
Package dbschematogo converts an introspected database schema (catalog.Database) into the goschema entity model, so live databases can flow through the same diff and planning pipeline as annotated Go sources.
Package dbschematogo converts an introspected database schema (catalog.Database) into the goschema entity model, so live databases can flow through the same diff and planning pipeline as annotated Go sources.
convert/features
Package features batches feature values alongside common schema conversion.
Package features batches feature values alongside common schema conversion.
convert/goschematodb
Package goschematodb converts Ptah's desired-schema IR into the DB schema shape used by schema comparison.
Package goschematodb converts Ptah's desired-schema IR into the DB schema shape used by schema comparison.
convert/goschematogo
Package goschematogo renders goschema databases as annotated Go source.
Package goschematogo renders goschema databases as annotated Go source.
countsubjectguard
Package countsubjectguard hosts the test that keeps a count out of the subject position in Go comments.
Package countsubjectguard hosts the test that keeps a count out of the subject position in Go comments.
crdbduration
Package crdbduration converts a CockroachDB duration-valued storage parameter into the form the server stores, and refuses the values it cannot represent.
Package crdbduration converts a CockroachDB duration-valued storage parameter into the form the server stores, and refuses the values it cannot represent.
crdbinterval
Package crdbinterval reads a CockroachDB interval literal into the value it denotes, so two spellings of the same interval can be compared.
Package crdbinterval reads a CockroachDB interval literal into the value it denotes, so two spellings of the same interval can be compared.
datamigrate
Package datamigrate composes the declarative reference/seed data pipeline: it parses //ptah:schema:data annotations, reads the corresponding live rows, diffs them, and answers either with counts (Inspect) or with a single reversible SQL migration body pair (Generate).
Package datamigrate composes the declarative reference/seed data pipeline: it parses //ptah:schema:data annotations, reads the corresponding live rows, diffs them, and answers either with counts (Inspect) or with a single reversible SQL migration body pair (Generate).
dataorder
Package dataorder ranks a table against the order a schema's dependency sort put its tables in, so a stage that writes rows can put parents first.
Package dataorder ranks a table against the order a schema's dependency sort put its tables in, so a stage that writes rows can put parents first.
dbanswer
Package dbanswer finds, in the error of a statement that failed, the error the database answered with, below the context Ptah wrapped around it.
Package dbanswer finds, in the error of a statement that failed, the error the database answered with, below the context Ptah wrapped around it.
dbexprprobe
Package dbexprprobe asks a live server to re-spell declared expressions, so a comparison holds the same spelling on both sides.
Package dbexprprobe asks a live server to re-spell declared expressions, so a comparison holds the same spelling on both sides.
dblock
Package dblock acquires dialect-aware, session-scoped database advisory locks used to serialize schema-mutating operations such as migration runs and Atlas schema apply.
Package dblock acquires dialect-aware, session-scoped database advisory locks used to serialize schema-mutating operations such as migration runs and Atlas schema apply.
dblockext
Package dblockext declares the lock service an engine gives internal/dblock: how the engine takes and gives back the session-scoped lock that serializes schema-changing runs.
Package dblockext declares the lock service an engine gives internal/dblock: how the engine takes and gives back the session-scoped lock that serializes schema-changing runs.
dblockext/builtin
Package builtin lists the lock services of the engines Ptah ships and looks one up by dialect.
Package builtin lists the lock services of the engines Ptah ships and looks one up by dialect.
dblockext/mysql
Package mysql takes the named lock of MySQL and MariaDB for internal/dblock: GET_LOCK, with the wait in whole seconds, and RELEASE_LOCK.
Package mysql takes the named lock of MySQL and MariaDB for internal/dblock: GET_LOCK, with the wait in whole seconds, and RELEASE_LOCK.
dblockext/oracle
Package oracle takes Ptah's lock on Oracle for internal/dblock: a row lock on the row a lock name has in the table ptah_locks, taken with SELECT ...
Package oracle takes Ptah's lock on Oracle for internal/dblock: a row lock on the row a lock name has in the table ptah_locks, taken with SELECT ...
dblockext/postgres
Package postgres takes the session advisory lock of PostgreSQL and YugabyteDB for internal/dblock: pg_try_advisory_lock, asked again until the wait ends, and pg_advisory_unlock.
Package postgres takes the session advisory lock of PostgreSQL and YugabyteDB for internal/dblock: pg_try_advisory_lock, asked again until the wait ends, and pg_advisory_unlock.
dblockext/sqlserver
Package sqlserver takes SQL Server's application lock for internal/dblock: sp_getapplock with a session owner, with the wait in milliseconds, and sp_releaseapplock.
Package sqlserver takes SQL Server's application lock for internal/dblock: sp_getapplock with a session owner, with the wait in milliseconds, and sp_releaseapplock.
dbmlparse
Package dbmlparse reads DBML into Ptah's schema model.
Package dbmlparse reads DBML into Ptah's schema model.
dbmlrender
Package dbmlrender writes a Ptah schema as DBML.
Package dbmlrender writes a Ptah schema as DBML.
dbreset
Package dbreset names what a reset of a dev database drops.
Package dbreset names what a reset of a dev database drops.
dbschema/clickhouse
Package clickhouse provides ClickHouse-specific schema reading and writing.
Package clickhouse provides ClickHouse-specific schema reading and writing.
dbschema/dbtest
Package dbtest provides an in-memory database/sql driver whose query and exec behavior is scripted per test, so dialect readers and writers can be tested without a live database.
Package dbtest provides an in-memory database/sql driver whose query and exec behavior is scripted per test, so dialect readers and writers can be tested without a live database.
dbschema/mssql
Package mssql implements SQL Server schema introspection and DDL execution for the dbschema connection layer.
Package mssql implements SQL Server schema introspection and DDL execution for the dbschema connection layer.
dbschema/mysql
Package mysql implements MySQL schema introspection and DDL execution for the dbschema connection layer.
Package mysql implements MySQL schema introspection and DDL execution for the dbschema connection layer.
dbschema/mysql/catalogtext
Package catalogtext turns an expression MySQL's information_schema reports back into the SQL it stands for.
Package catalogtext turns an expression MySQL's information_schema reports back into the SQL it stands for.
dbschema/oracle
Package oracle reads schema information from Oracle databases.
Package oracle reads schema information from Oracle databases.
dbschema/postgres
Package postgres implements schema introspection and DDL execution for PostgreSQL-family databases in the dbschema connection layer.
Package postgres implements schema introspection and DDL execution for PostgreSQL-family databases in the dbschema connection layer.
dbschema/sqlite
Package sqlite implements SQLite schema introspection and DDL execution for the dbschema connection layer.
Package sqlite implements SQLite schema introspection and DDL execution for the dbschema connection layer.
dbtarget
Package dbtarget resolves the address of a live database for an integration test, from one declaration of which environment variable names an engine.
Package dbtarget resolves the address of a live database for an integration test, from one declaration of which environment variable names an engine.
dburldisplay
Package dburldisplay renders a database URL for display, with every secret it may carry redacted.
Package dburldisplay renders a database URL for display, with every secret it may carry redacted.
dburlext
Package dburlext declares what an engine does differently with a database URL before anything is connected: which servers and which database the URL selects, whether two of its URLs address one database, how a URL is renamed to another database, and which database root a URL names.
Package dburlext declares what an engine does differently with a database URL before anything is connected: which servers and which database the URL selects, whether two of its URLs address one database, how a URL is renamed to another database, and which database root a URL names.
dburlext/builtin
Package builtin lists the database URL services of the engines Ptah ships and looks one up by dialect.
Package builtin lists the database URL services of the engines Ptah ships and looks one up by dialect.
dburlext/clickhouse
Package clickhouse reads what a ClickHouse URL selects, as clickhouse-go reads it: every address the URL lists is a server it may reach.
Package clickhouse reads what a ClickHouse URL selects, as clickhouse-go reads it: every address the URL lists is a server it may reach.
dburlext/postgres
Package postgres reads what a URL of a PostgreSQL-protocol engine selects: PostgreSQL, CockroachDB and YugabyteDB, whose URLs pgx's pgconn reads.
Package postgres reads what a URL of a PostgreSQL-protocol engine selects: PostgreSQL, CockroachDB and YugabyteDB, whose URLs pgx's pgconn reads.
dburlext/sqlite
Package sqlite decides whether two SQLite URLs address one database: the database is a file, so two URLs address one database when they name one file, or both name one shared-cache database in memory.
Package sqlite decides whether two SQLite URLs address one database: the database is a file, so two URLs address one database when they name one file, or both name one shared-cache database in memory.
dburlext/sqlserver
Package sqlserver reads what a SQL Server URL selects, as go-mssqldb's msdsn reads it: a named instance and a failover partner are part of the servers the URL may reach.
Package sqlserver reads what a SQL Server URL selects, as go-mssqldb's msdsn reads it: a named instance and a failover partner are part of the servers the URL may reach.
ddltx
Package ddltx names the data definition language (DDL) transaction contract Ptah's migrator implements for each dialect.
Package ddltx names the data definition language (DDL) transaction contract Ptah's migrator implements for each dialect.
defaultlit
Package defaultlit decides whether a column default already carries SQL literal syntax, so that a renderer quotes it exactly once.
Package defaultlit decides whether a column default already carries SQL literal syntax, so that a renderer quotes it exactly once.
defaultprivnote
Package defaultprivnote reports incomplete default privilege observations on schema read surfaces.
Package defaultprivnote reports incomplete default privilege observations on schema read surfaces.
definedtypetest
Package definedtypetest gives tests a feature object that defines a data type, as a feature owner's domain, composite type or range type does, without the owner.
Package definedtypetest gives tests a feature object that defines a data type, as a feature owner's domain, composite type or range type does, without the owner.
definer
Package definer decides whether a statement that writes a stored object again keeps the account the object runs as.
Package definer decides whether a statement that writes a stored object again keeps the account the object runs as.
deploymentreport
Package deploymentreport builds redacted, deterministic deployment reports.
Package deploymentreport builds redacted, deterministic deployment reports.
deporder
Package deporder provides deterministic dependency ordering for schema objects: stable topological sorts used to create objects such as views in dependency order and drop them in reverse.
Package deporder provides deterministic dependency ordering for schema objects: stable topological sorts used to create objects such as views in dependency order and drop them in reverse.
descriptortable
Package descriptortable keeps an answer derived from each dialect descriptor of the process registry, for a package that asks about a dialect on a path where copying its descriptor would cost more than the work it decides.
Package descriptortable keeps an answer derived from each dialect descriptor of the process registry, for a package that asks about a dialect on a path where copying its descriptor would cost more than the work it decides.
devclean
Package devclean resets disposable development databases between migration replay operations.
Package devclean resets disposable development databases between migration replay operations.
devclean/clickhousereplay
Package clickhousereplay is the ClickHouse migration replay guard: it refuses a statement whose effects cannot be confined to the dev database, such as ON CLUSTER, a table engine or a dictionary source that reaches outside it, or a write to another database, and on a run that trusts its SQL lifts the refusals whose only reason is confinement.
Package clickhousereplay is the ClickHouse migration replay guard: it refuses a statement whose effects cannot be confined to the dev database, such as ON CLUSTER, a table engine or a dictionary source that reaches outside it, or a write to another database, and on a run that trusts its SQL lifts the refusals whose only reason is confinement.
devclean/mysqlreplay
Package mysqlreplay is the MySQL and MariaDB migration replay guard: it refuses a statement whose effects cannot be confined to the dev database, such as an executable comment, a stored body or a write to another database, and lifts what a server the run owns, a server named as a whole, or a run that trusts its SQL lets a replay change.
Package mysqlreplay is the MySQL and MariaDB migration replay guard: it refuses a statement whose effects cannot be confined to the dev database, such as an executable comment, a stored body or a write to another database, and lifts what a server the run owns, a server named as a whole, or a run that trusts its SQL lets a replay change.
devclean/postgresreplay
Package postgresreplay is the PostgreSQL family's migration replay guard: it refuses a statement on PostgreSQL, CockroachDB or YugabyteDB whose effects cannot be confined to the dev database, on a server the run owns it lifts the refusals whose only reason is the rest of the server, and on a run that trusts its SQL it lifts every refusal whose only reason is confinement.
Package postgresreplay is the PostgreSQL family's migration replay guard: it refuses a statement on PostgreSQL, CockroachDB or YugabyteDB whose effects cannot be confined to the dev database, on a server the run owns it lifts the refusals whose only reason is the rest of the server, and on a run that trusts its SQL it lifts every refusal whose only reason is confinement.
devclean/replay
Package replay is the contract between internal/devclean's replay guard and the engines that guard statements for it.
Package replay is the contract between internal/devclean's replay guard and the engines that guard statements for it.
devclean/replayguards
Package replayguards lists the migration replay guards of the engines Ptah ships, for internal/devclean to look up by dialect.
Package replayguards lists the migration replay guards of the engines Ptah ships, for internal/devclean to look up by dialect.
devclean/sqlitereplay
Package sqlitereplay is the SQLite owner's migration replay guard: it refuses a SQLite statement whose effects reach past the dev database file, such as ATTACH, a TEMP object outside a session scope or load_extension.
Package sqlitereplay is the SQLite owner's migration replay guard: it refuses a SQLite statement whose effects reach past the dev database file, such as ATTACH, a TEMP object outside a session scope or load_extension.
devclean/sqlserverreplay
Package sqlserverreplay is the SQL Server migration replay guard: it refuses a T-SQL statement whose effects cannot be confined to the dev database, such as USE, a remote EXECUTE, an EXEC other than the sp_rename calls and default batches the renderer writes, a server-scoped object or a temporary one, a name of another database, a read included, a DBCC, and a function that reads a file on the server.
Package sqlserverreplay is the SQL Server migration replay guard: it refuses a T-SQL statement whose effects cannot be confined to the dev database, such as USE, a remote EXECUTE, an EXEC other than the sp_rename calls and default batches the renderer writes, a server-scoped object or a temporary one, a name of another database, a read included, a DBCC, and a function that reads a file on the server.
devcollation
Package devcollation refuses a dev database that compares names other than the target it stands in for.
Package devcollation refuses a dev database that compares names other than the target it stands in for.
devdocker
Package devdocker turns an Atlas-style `docker://` dev-database URL into a directly connectable one by starting a throwaway container and removing it again.
Package devdocker turns an Atlas-style `docker://` dev-database URL into a directly connectable one by starting a throwaway container and removing it again.
devdocker/dockerengine
Package dockerengine declares what internal/devdocker needs to know to start one database engine in a throwaway container: the image, the port, the environment that creates the database and the URL that reaches it.
Package dockerengine declares what internal/devdocker needs to know to start one database engine in a throwaway container: the image, the port, the environment that creates the database and the URL that reaches it.
devdocker/mysqldocker
Package mysqldocker declares the MySQL and MariaDB images internal/devdocker starts from a docker URL.
Package mysqldocker declares the MySQL and MariaDB images internal/devdocker starts from a docker URL.
devdocker/pgdocker
Package pgdocker declares the PostgreSQL images internal/devdocker starts from a docker URL: the official image and the pgvector and PostGIS images built on it.
Package pgdocker declares the PostgreSQL images internal/devdocker starts from a docker URL: the official image and the pgvector and PostGIS images built on it.
devlock
Package devlock serializes destructive replay work by disposable database realm.
Package devlock serializes destructive replay work by disposable database realm.
devqualifier
Package devqualifier takes the name of a dev database off what a read of it reports, for a migration file written from that read.
Package devqualifier takes the name of a dev database off what a read of it reports, for a migration file written from that read.
devreach
Package devreach opens the dev database a command was given, for the commands that would otherwise never open it.
Package devreach opens the dev database a command was given, for the commands that would otherwise never open it.
devseed
Package devseed decides what a dev database rehearsal recreates beyond the state its plan compared.
Package devseed decides what a dev database rehearsal recreates beyond the state its plan compared.
dialectlexer
Package dialectlexer provides shared SQL lexer configuration for database dialects used by internal parsing and analysis packages.
Package dialectlexer provides shared SQL lexer configuration for database dialects used by internal parsing and analysis packages.
dialectscope
Package dialectscope resolves the set of target dialects a declared schema object belongs to.
Package dialectscope resolves the set of target dialects a declared schema object belongs to.
directiveplacement
Package directiveplacement carries the one table of positions a migration file directive can occupy, so every directive in the class is measured against the same seven shapes.
Package directiveplacement carries the one table of positions a migration file directive can occupy, so every directive in the class is measured against the same seven shapes.
dispatchwitness
Package dispatchwitness tells a schema apply run when its first statement leaves for the database.
Package dispatchwitness tells a schema apply run when its first statement leaves for the database.
doblockext
Package doblockext declares what a procedural language brings to the SQL schema reader: the roles an anonymous DO block of a schema file declares when the file is read as a desired schema.
Package doblockext declares what a procedural language brings to the SQL schema reader: the roles an anonymous DO block of a schema file declares when the file is read as a desired schema.
doblockext/builtin
Package builtin lists the DO-block readers of the procedural languages Ptah ships and looks one up by the language a descriptor names.
Package builtin lists the DO-block readers of the procedural languages Ptah ships and looks one up by the language a descriptor names.
doblockext/postgres
Package postgres reads the roles a PostgreSQL DO block declares in a schema file.
Package postgres reads the roles a PostgreSQL DO block declares in a schema file.
doccommands
Package doccommands finds the ptah and ptah-compat command lines that documentation publishes, and checks each one against the command tree the binary builds.
Package doccommands finds the ptah and ptah-compat command lines that documentation publishes, and checks each one against the command tree the binary builds.
docsembed
Package docsembed turns the documentation carried in the binary into a searchable index.
Package docsembed turns the documentation carried in the binary into a searchable index.
docsindex
Package docsindex builds a searchable index over Ptah's own documentation and answers a question with the passages that address it.
Package docsindex builds a searchable index over Ptah's own documentation and answers a question with the passages that address it.
docsrender
Package docsrender turns a desired schema into Markdown reference documentation.
Package docsrender turns a desired schema into Markdown reference documentation.
docsync
Package docsync keeps a generated block in a document equal to what a generator renders, and rewrites it on request.
Package docsync keeps a generated block in a document equal to what a generator renders, and rewrites it on request.
driftgate
Package driftgate is the drift check of a migration target: a comparison of the target with the schema its applied history produces, made under the migration lock.
Package driftgate is the drift check of a migration target: a comparison of the target with the schema its applied history produces, made under the migration lock.
driverlinkguard
Package driverlinkguard hosts the test that keeps a database driver out of the paths that turn Go structs into SQL.
Package driverlinkguard hosts the test that keeps a database driver out of the paths that turn Go structs into SQL.
droppedviews
Package droppedviews splits the views and materialized views a schema diff removes into the ones an addition of the other kind replaces under the same name and the ones the plan drops for good.
Package droppedviews splits the views and materialized views a schema diff removes into the ones an addition of the other kind replaces under the same name and the ones the plan drops for good.
embedbackend
Package embedbackend is the contract between the inference lifecycle and the database a generation lives in.
Package embedbackend is the contract between the inference lifecycle and the database a generation lives in.
embedcatchup
Package embedcatchup accounts for source changes that happen while a generation is being built.
Package embedcatchup accounts for source changes that happen while a generation is being built.
embedconnect
Package embedconnect opens the inference backend a database URL names.
Package embedconnect opens the inference backend a database URL names.
embedcorpus
Package embedcorpus is the evaluation corpus an operator writes: the queries a generation has to answer, and which documents answering them means.
Package embedcorpus is the evaluation corpus an operator writes: the queries a generation has to answer, and which documents answering them means.
embedcutover
Package embedcutover decides whether a generation may become the one queries read, whether an older one can still be rolled back to, and whether one may be destroyed.
Package embedcutover decides whether a generation may become the one queries read, whether an older one can still be rolled back to, and whether one may be destroyed.
embeddigest
Package embeddigest encodes a list of components into one content address.
Package embeddigest encodes a list of components into one content address.
embedengine
Package embedengine runs a backfill: it reads the source, canonicalizes what it read, asks the provider, and commits the vectors with the checkpoint that records them.
Package embedengine runs a backfill: it reads the source, canonicalizes what it read, asks the provider, and commits the vectors with the checkpoint that records them.
embedeval
Package embedeval measures whether a generation still finds what the corpus says it should.
Package embedeval measures whether a generation still finds what the corpus says it should.
embedgen
Package embedgen models an embedding generation: what produced a set of vectors, and what makes two sets of vectors comparable or incomparable.
Package embedgen models an embedding generation: what produced a set of vectors, and what makes two sets of vectors comparable or incomparable.
embedguard
Package embedguard reports a decision the inference vertical makes nowhere.
Package embedguard reports a decision the inference vertical makes nowhere.
embedpg
Package embedpg is the PostgreSQL half of an inference migration: the tables the run state lives in, the keyset scan that reads the source, and the transaction that writes vectors and their checkpoint together.
Package embedpg is the PostgreSQL half of an inference migration: the tables the run state lives in, the keyset scan that reads the source, and the transaction that writes vectors and their checkpoint together.
embedplan
Package embedplan turns a resolved specification into a plan that says where every one of its answers came from.
Package embedplan turns a resolved specification into a plan that says where every one of its answers came from.
embedprovider
Package embedprovider is the contract an embedding endpoint is reached through, and the checks every answer from one has to survive.
Package embedprovider is the contract an embedding endpoint is reached through, and the checks every answer from one has to survive.
embedrelease
Package embedrelease is the evidence a generation change leaves behind: what was built, what was measured about it, and what was done with it.
Package embedrelease is the evidence a generation change leaves behind: what was built, what was measured about it, and what was done with it.
embedreport
Package embedreport answers what a generation change would do and how far it has got, without answering anything about the content it moves.
Package embedreport answers what a generation change would do and how far it has got, without answering anything about the content it moves.
embedrpc
Package embedrpc is embedbackend.Backend over the embedding store an executable provider serves (ADR 0032).
Package embedrpc is embedbackend.Backend over the embedding store an executable provider serves (ADR 0032).
embedrun
Package embedrun is the durable state of one embedding migration: where it got to, who is allowed to move it, and what happened.
Package embedrun is the durable state of one embedding migration: where it got to, who is allowed to move it, and what happened.
embedspec
Package embedspec loads an embedding-migration specification from a file.
Package embedspec loads an embedding-migration specification from a file.
embedstore
Package embedstore is where an inference migration's own state lives, and what may move it.
Package embedstore is where an inference migration's own state lives, and what may move it.
embedverify
Package embedverify decides whether a generation may be cut over to.
Package embedverify decides whether a generation may be cut over to.
envbinding
Package envbinding holds the one rule that decides which environment variable a command-line flag reads, and the two cobra annotations that record where the rule has been applied.
Package envbinding holds the one rule that decides which environment variable a command-line flag reads, and the two cobra annotations that record where the rule has been applied.
envbool
Package envbool owns the one grammar Ptah accepts for a boolean `PTAH_*` environment variable, and the one error it reports for anything else.
Package envbool owns the one grammar Ptah accepts for a boolean `PTAH_*` environment variable, and the one error it reports for anything else.
envbool/envbooltest
Package envbooltest carries the environment manipulation that every boolean `PTAH_*` contract test needs, so the four states the contract distinguishes are spelled the same way wherever they are exercised.
Package envbooltest carries the environment manipulation that every boolean `PTAH_*` contract test needs, so the four states the contract distinguishes are spelled the same way wherever they are exercised.
eolcheck
Package eolcheck asks endoflife.date whether a declared release line is still supported by its vendor, and reports the lines whose declared support level promises more than the vendor's calendar allows.
Package eolcheck asks endoflife.date whether a declared release line is still supported by its vendor, and reports the lines whose declared support level promises more than the vendor's calendar allows.
errorkind
Package errorkind names why a command could not open its connection to the target database, or could not see what it reads there, from a closed vocabulary a program can branch on.
Package errorkind names why a command could not open its connection to the target database, or could not see what it reads there, from a closed vocabulary a program can branch on.
execoutcome
Package execoutcome says whether a statement that failed may have been applied all the same.
Package execoutcome says whether a statement that failed may have been applied all the same.
execpolicy
Package execpolicy decides whether a program that a project file or a test file names may run.
Package execpolicy decides whether a program that a project file or a test file names may run.
exeext
Package exeext carries the one fact that differs between operating systems about what an executable file is called.
Package exeext carries the one fact that differs between operating systems about what an executable file is called.
exprkey
Package exprkey builds the keys the expression-resolution maps in package config are read by: [config.CompareOptions.CheckExpressions] and [config.CompareOptions.GeneratedExpressions].
Package exprkey builds the keys the expression-resolution maps in package config are read by: [config.CompareOptions.CheckExpressions] and [config.CompareOptions.GeneratedExpressions].
facetsplit
Package facetsplit takes the table and index facets an exporter writes itself out of a schema before the platform property encoder sees it, and puts them back afterwards.
Package facetsplit takes the table and index facets an exporter writes itself out of a schema before the platform property encoder sees it, and puts them back afterwards.
fanout
Package fanout runs independent calls over a set of workers, one goroutine for each, and answers them in the order they were asked, so a caller that spreads its reads over several database sessions gets the result a sequential loop would give.
Package fanout runs independent calls over a set of workers, one goroutine for each, and answers them in the order they were asked, so a caller that spreads its reads over several database sessions gets the result a sequential loop would give.
featureinventory
Package featureinventory derives Ptah's feature register from the product's own declarations and checks the committed artifact against that derivation.
Package featureinventory derives Ptah's feature register from the product's own declarations and checks the committed artifact against that derivation.
featurejson
Package featurejson writes and reads JSON documents that carry feature data owned by schema extension providers: change records, facets, feature objects and source coverage.
Package featurejson writes and reads JSON documents that carry feature data owned by schema extension providers: change records, facets, feature objects and source coverage.
featureops
Package featureops lowers typed owner operations into local AST envelopes.
Package featureops lowers typed owner operations into local AST envelopes.
featurereport
Package featurereport collects common schema extension envelopes for reporting.
Package featurereport collects common schema extension envelopes for reporting.
featureselect
Package featureselect keeps feature objects and knowledge aligned with common table selection, including the objects that bind tables without belonging to one, which their owners' relation discovery describes.
Package featureselect keeps feature objects and knowledge aligned with common table selection, including the objects that bind tables without belonging to one, which their owners' relation discovery describes.
fileopen
Package fileopen hands a local file to the desktop's own handler.
Package fileopen hands a local file to the desktop's own handler.
fileplan
Package fileplan applies planned multi-file outputs to the local filesystem.
Package fileplan applies planned multi-file outputs to the local filesystem.
filetx
Package filetx reads the transactions a migration file opens and closes itself, in PostgreSQL's spelling of transaction control.
Package filetx reads the transactions a migration file opens and closes itself, in PostgreSQL's spelling of transaction control.
foreignkeyscope
Package foreignkeyscope decides whether a foreign key names a table in a schema its description holds nothing of.
Package foreignkeyscope decides whether a foreign key names a table in a schema its description holds nothing of.
fsdurable
Package fsdurable provides filesystem operations for durable artifact publication across supported operating systems.
Package fsdurable provides filesystem operations for durable artifact publication across supported operating systems.
fsnapshot
Package fsnapshot captures a read-only, in-memory view of an fs.FS.
Package fsnapshot captures a read-only, in-memory view of an fs.FS.
fsretry
Package fsretry retries a file replacement that a platform refuses only while another handle holds the file.
Package fsretry retries a file replacement that a platform refuses only while another handle holds the file.
genexprprobe
Package genexprprobe turns a desired schema into the probes that ask a dev database how it spells each declared generated expression.
Package genexprprobe turns a desired schema into the probes that ask a dev database how it spells each declared generated expression.
gitsource
Package gitsource fetches a schema file or a migration directory from a Git repository: one commit, shallowly, and only the selected path of its tree, with no working tree, hook, filter, submodule or LFS step.
Package gitsource fetches a schema file or a migration directory from a Git repository: one commit, shallowly, and only the selected path of its tree, with no working tree, hook, filter, submodule or LFS step.
gitsource/gitsourcetest
Package gitsourcetest stands up Git repositories and servers for the tests of Ptah's Git pull: a bare repository the git CLI commits to, served over smart HTTP behind TLS by git http-backend, and over SSH by git-upload-pack.
Package gitsourcetest stands up Git repositories and servers for the tests of Ptah's Git pull: a bare repository the git CLI commits to, served over smart HTTP behind TLS by git http-backend, and over SSH by git-upload-pack.
goannotationcleanup
Package goannotationcleanup removes Ptah schema annotations from Go source.
Package goannotationcleanup removes Ptah schema annotations from Go source.
goannotationexport
Package goannotationexport migrates Ptah Go annotations to HCL schema files.
Package goannotationexport migrates Ptah Go annotations to HCL schema files.
goannotationsource
Package goannotationsource captures the Go files that define one annotation parsing and cleanup operation.
Package goannotationsource captures the Go files that define one annotation parsing and cleanup operation.
gotoolchain
Package gotoolchain checks that the Go toolchain is declared once, in the root go.mod, and that everything else derives it.
Package gotoolchain checks that the Go toolchain is declared once, in the root go.mod, and that everything else derives it.
grantcover
Package grantcover finds the grants wider than one table that keep a privilege a declared REVOKE on the table names: the ones the database holds, and the grants on the table's database the schema declares and the plan adds.
Package grantcover finds the grants wider than one table that keep a privilege a declared REVOKE on the table names: the ones the database holds, and the grants on the table's database the schema declares and the plan adds.
graphqlrender
Package graphqlrender renders a Ptah schema as GraphQL SDL: one object type per table, enum types for enum columns and object relations for foreign keys.
Package graphqlrender renders a Ptah schema as GraphQL SDL: one object type per table, enum types for enum columns and object relations for foreign keys.
hashshard
Package hashshard reports the CockroachDB keys and indexes a schema read describes without their hash sharding.
Package hashshard reports the CockroachDB keys and indexes a schema read describes without their hash sharding.
hcldiag
Package hcldiag makes the HCL library's diagnostics deterministic before they become messages.
Package hcldiag makes the HCL library's diagnostics deterministic before they become messages.
htmlstyle
Package htmlstyle is the one appearance every HTML document Ptah writes.
Package htmlstyle is the one appearance every HTML document Ptah writes.
httpsource
Package httpsource fetches a schema file or a migration directory from an https:// URL whose bytes are pinned by their SHA-256.
Package httpsource fetches a schema file or a migration directory from an https:// URL whose bytes are pinned by their SHA-256.
indexbacking
Package indexbacking answers one question about a live catalog: is the index the server reports the physical backing of a constraint, created and dropped through that constraint rather than on its own.
Package indexbacking answers one question about a live catalog: is the index the server reports the physical backing of a constraint, created and dropped through that constraint rather than on its own.
indexbackingguard
Package indexbackingguard hosts the test that keeps one answer to constraint-backed index ownership from becoming two again.
Package indexbackingguard hosts the test that keeps one answer to constraint-backed index ownership from becoming two again.
indexscope
Package indexscope compares index names using database namespace semantics.
Package indexscope compares index names using database namespace semantics.
inputapproval
Package inputapproval retains approved input references for exact SQL bodies while a selected migration plan crosses a string-based execution interface.
Package inputapproval retains approved input references for exact SQL bodies while a selected migration plan crosses a string-based execution interface.
integrationfixture
Package integrationfixture defines deterministic metadata used by Ptah's integration harness without coupling its unit tests to live databases.
Package integrationfixture defines deterministic metadata used by Ptah's integration harness without coupling its unit tests to live databases.
integrationharness
Package integrationharness implements Ptah's dynamic integration-test framework: it loads versioned entity fixtures from an injected filesystem (integration/internal/fixtures/entities in this repository), runs migration scenarios (up, down, idempotency, round-trip) against live databases, and produces the reports consumed by the integration-test binary.
Package integrationharness implements Ptah's dynamic integration-test framework: it loads versioned entity fixtures from an injected filesystem (integration/internal/fixtures/entities in this repository), runs migration scenarios (up, down, idempotency, round-trip) against live databases, and produces the reports consumed by the integration-test binary.
keyedversions
Package keyedversions writes a migration document whose numeric versions name no migration: those of an Atlas directory whose files run under their positions in file-name order.
Package keyedversions writes a migration document whose numeric versions name no migration: those of an Atlas directory whose files run under their positions in file-name order.
lexer
Package lexer provides SQL tokenization and lexical analysis for the Ptah schema management system.
Package lexer provides SQL tokenization and lexical analysis for the Ptah schema management system.
lexerext
Package lexerext declares what a lexer of an engine's own brings to the readers of SQL text: the scanner that reads the engine's text in place of the shared rules of internal/lexer.
Package lexerext declares what a lexer of an engine's own brings to the readers of SQL text: the scanner that reads the engine's text in place of the shared rules of internal/lexer.
lexerext/builtin
Package builtin lists the lexer services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
Package builtin lists the lexer services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
lintartifact
Package lintartifact publishes migration lint reports as OCI referrers.
Package lintartifact publishes migration lint reports as OCI referrers.
lintcatalog
Package lintcatalog enumerates every lint rule Ptah's binaries can report.
Package lintcatalog enumerates every lint rule Ptah's binaries can report.
lintdialect
Package lintdialect defines the SQL dialects accepted by migration linting.
Package lintdialect defines the SQL dialects accepted by migration linting.
lintexpr
Package lintexpr compiles the expression a declared lint rule is written as.
Package lintexpr compiles the expression a declared lint rule is written as.
lintkit
Package lintkit is the code migration lint shares with the bundled engine owners that check their own lint rules: the recognizers that read a statement's words, the index of the schema state a version starts from, and the scan for the unique indexes a file builds.
Package lintkit is the code migration lint shares with the bundled engine owners that check their own lint rules: the recognizers that read a statement's words, the index of the schema state a version starts from, and the scan for the unique indexes a file builds.
lintkit/mytype
Package mytype is the MySQL type model migration lint reads out of statements: a column type as MySQL and MariaDB store it (base, parameters, sign, character set, collation and the members of an ENUM or SET), the MODIFY and CHANGE clauses that spell a new one, and the character set a table carries at a statement.
Package mytype is the MySQL type model migration lint reads out of statements: a column type as MySQL and MariaDB store it (base, parameters, sign, character set, collation and the members of an ENUM or SET), the MODIFY and CHANGE clauses that spell a new one, and the character set a table carries at a statement.
lintkit/pgtype
Package pgtype reads PostgreSQL column types out of migration statements and decides what PostgreSQL does when a column changes from one to another: nothing, a catalog edit, an index rebuild or a table rewrite.
Package pgtype reads PostgreSQL column types out of migration statements and decides what PostgreSQL does when a column changes from one to another: nothing, a catalog edit, an index rebuild or a table rewrite.
lintnames
Package lintnames declares the categories every Ptah lint rule name begins with, the grammar of a name, and the predicate that decides whether a selector written as a name or a category selects a rule.
Package lintnames declares the categories every Ptah lint rule name begins with, the grammar of a name, and the predicate that decides whether a selector written as a name or a category selects a rule.
lintscan
Package lintscan is the statement scanner of migration lint: where a statement ends, what is a comment, and the word forms rules read, for each built-in dialect.
Package lintscan is the statement scanner of migration lint: where a statement ends, what is a comment, and the word forms rules read, for each built-in dialect.
liquibaserun
Package liquibaserun recognizes the attributes of a Liquibase changeset and says what each asks of an import: nothing, a no-transaction migration, a changeset Liquibase never runs, or a refusal.
Package liquibaserun recognizes the attributes of a Liquibase changeset and says what each asks of an import: nothing, a no-transaction migration, a changeset Liquibase never runs, or a refusal.
managedrows
Package managedrows holds the one comparison of a declared row set against the live table.
Package managedrows holds the one comparison of a declared row set against the live table.
matviewrefresh
Package matviewrefresh holds Ptah's one answer to a declared materialized-view refresh strategy: it refuses the declaration, and says why.
Package matviewrefresh holds Ptah's one answer to a declared materialized-view refresh strategy: it refuses the declaration, and says why.
mcpserver
Package mcpserver exposes Ptah's agent operations to external AI clients over the Model Context Protocol.
Package mcpserver exposes Ptah's agent operations to external AI clients over the Model Context Protocol.
migrateclean
Package migrateclean answers whether a database is clean, the question the pinned community binary asks in two places: before `migrate apply` adopts a database for the first time, and before any verb uses a dev database.
Package migrateclean answers whether a database is clean, the question the pinned community binary asks in two places: before `migrate apply` adopts a database for the first time, and before any verb uses a dev database.
migrateops
Package migrateops implements checksum-aware maintenance of a migration directory: removing, rebasing (re-timestamping to the end of history), and re-hashing after an in-place edit.
Package migrateops implements checksum-aware maintenance of a migration directory: removing, rebasing (re-timestamping to the end of history), and re-hashing after an in-place edit.
migratesum
Package migratesum provides a migration-directory integrity check: a committed checksum file records the hash of every migration file plus a directory-level hash, so an out-of-band edit to an already-applied migration is caught in CI instead of silently breaking reproducibility (issue #161).
Package migratesum provides a migration-directory integrity check: a committed checksum file records the hash of every migration file plus a directory-level hash, so an out-of-band edit to an already-applied migration is caught in CI instead of silently breaking reproducibility (issue #161).
migrationartifact
Package migrationartifact maps Ptah migration directories to OCI artifacts.
Package migrationartifact maps Ptah migration directories to OCI artifacts.
migrationfailure
Package migrationfailure explains the statement or the commit a failed migration run stopped at, for a person who asked to see the database server's own account of it: the migration file the statement came from, where the error falls in the statement and in the file, and what the server said beyond its code (see internal/serverdiag).
Package migrationfailure explains the statement or the commit a failed migration run stopped at, for a person who asked to see the database server's own account of it: the migration file the statement came from, where the error falls in the statement and in the file, and what the server said beyond its code (see internal/serverdiag).
migrationintegrity
Package migrationintegrity owns the one rule every Ptah verb that EXECUTES SQL from a migration directory runs before executing any of it: a directory that carries an integrity file has to match it.
Package migrationintegrity owns the one rule every Ptah verb that EXECUTES SQL from a migration directory runs before executing any of it: a directory that carries an integrity file has to match it.
migrationlintgate
Package migrationlintgate applies migration lint policy to pending database migrations before execution.
Package migrationlintgate applies migration lint policy to pending database migrations before execution.
migrationlintreport
Package migrationlintreport builds and renders migration lint reports.
Package migrationlintreport builds and renders migration lint reports.
migrationreplay
Package migrationreplay replays migration directories on disposable dev databases for Atlas-compatible validation and lint workflows.
Package migrationreplay replays migration directories on disposable dev databases for Atlas-compatible validation and lint workflows.
migrationrollout
Package migrationrollout coordinates one versioned migration release across many databases: a staged rollout.
Package migrationrollout coordinates one versioned migration release across many databases: a staged rollout.
migrationsnapshot
Package migrationsnapshot captures the files that define one migration run.
Package migrationsnapshot captures the files that define one migration run.
migrationsplit
Package migrationsplit carries a provider's split of a migration body from internal/providerhost, which asks the provider for it, to migration/migrator, which runs it.
Package migrationsplit carries a provider's split of a migration body from internal/providerhost, which asks the provider for it, to migration/migrator, which runs it.
migrationvalidate
Package migrationvalidate implements migration-directory validation runtime.
Package migrationvalidate implements migration-directory validation runtime.
migrationversion
Package migrationversion answers the one question every writer that picks a migration version has to answer before it writes: can the reader read this version back.
Package migrationversion answers the one question every writer that picks a migration version has to answer before it writes: can the reader read this version back.
migratorext
Package migratorext declares the services an engine gives migration/migrator beyond what its dialect descriptor states: behavior a statement of data cannot carry, such as how to ask the engine's catalog about one of the migrator's own tables, how to bound a migration's waits, or how to split a migration body into the queries the engine runs.
Package migratorext declares the services an engine gives migration/migrator beyond what its dialect descriptor states: behavior a statement of data cannot carry, such as how to ask the engine's catalog about one of the migrator's own tables, how to bound a migration's waits, or how to split a migration body into the queries the engine runs.
migratorext/builtin
Package builtin lists the migrator services of the engines Ptah ships and looks one up by dialect.
Package builtin lists the migrator services of the engines Ptah ships and looks one up by dialect.
migratorext/clickhouse
Package clickhouse gives migration/migrator what ClickHouse does differently from what its descriptor states: the catalog queries about the migrator's own tables, which ClickHouse answers from its system tables.
Package clickhouse gives migration/migrator what ClickHouse does differently from what its descriptor states: the catalog queries about the migrator's own tables, which ClickHouse answers from its system tables.
migratorext/mysql
Package mysql gives migration/migrator what MySQL and MariaDB do differently from what their descriptors state: the catalog queries about the migrator's own tables, which resolve an unconfigured schema to the connected database, the widening of an older revision table's version column, and the session variables that bound a migration's waits, which the two engines name differently.
Package mysql gives migration/migrator what MySQL and MariaDB do differently from what their descriptors state: the catalog queries about the migrator's own tables, which resolve an unconfigured schema to the connected database, the widening of an older revision table's version column, and the session variables that bound a migration's waits, which the two engines name differently.
migratorext/oracle
Package oracle gives migration/migrator what Oracle does differently from what its descriptor states: the catalog queries about the migrator's own tables, which Oracle answers from its ALL_ views because it has no information_schema, the owner check, and what it adds to proving a check assertion read-only.
Package oracle gives migration/migrator what Oracle does differently from what its descriptor states: the catalog queries about the migrator's own tables, which Oracle answers from its ALL_ views because it has no information_schema, the owner check, and what it adds to proving a check assertion read-only.
migratorext/postgres
Package postgres gives migration/migrator what PostgreSQL, CockroachDB and YugabyteDB do differently from what their descriptors state: the catalog queries about the migrator's own tables, written around current_schema(), the widening of an older revision table's version column, the owner check and the spelling of a migration's timeouts.
Package postgres gives migration/migrator what PostgreSQL, CockroachDB and YugabyteDB do differently from what their descriptors state: the catalog queries about the migrator's own tables, written around current_schema(), the widening of an older revision table's version column, the owner check and the spelling of a migration's timeouts.
migratorext/sqlite
Package sqlite gives migration/migrator what SQLite does differently from what its descriptor states: the catalog queries about the migrator's own tables, which SQLite answers from sqlite_schema and PRAGMA table_info.
Package sqlite gives migration/migrator what SQLite does differently from what its descriptor states: the catalog queries about the migrator's own tables, which SQLite answers from sqlite_schema and PRAGMA table_info.
migratorext/sqlserver
Package sqlserver gives migration/migrator what SQL Server does differently from what its descriptor states: the catalog queries about the migrator's own tables, the statement grammar a no-transaction run reads, and what it adds to proving a check assertion read-only.
Package sqlserver gives migration/migrator what SQL Server does differently from what its descriptor states: the catalog queries about the migrator's own tables, the statement grammar a no-transaction run reads, and what it adds to proving a check assertion read-only.
modelast
Package modelast lowers canonical desired-schema model fragments into SQL AST nodes.
Package modelast lowers canonical desired-schema model fragments into SQL AST nodes.
mssqlpolicysource
Package mssqlpolicysource turns a row-level security declaration scoped to SQL Server into a security policy of the owner in package mssqlschema.
Package mssqlpolicysource turns a row-level security declaration scoped to SQL Server into a security policy of the owner in package mssqlschema.
mssqlroutineprep
Package mssqlroutineprep lowers SQL Server routine declarations to the parameter spelling its catalog reports before common comparison and facet capture.
Package mssqlroutineprep lowers SQL Server routine declarations to the parameter spelling its catalog reports before common comparison and facet capture.
mssqlroutinesource
Package mssqlroutinesource is the SQL Server owner's routine syntax in the SQL frontend: the options of a routine's WITH list the owner's facet holds (see mssqlschema.RoutineOptionsKind), the principal its EXECUTE AS names among them.
Package mssqlroutinesource is the SQL Server owner's routine syntax in the SQL frontend: the options of a routine's WITH list the owner's facet holds (see mssqlschema.RoutineOptionsKind), the principal its EXECUTE AS names among them.
mysqlcheck
Package mysqlcheck holds MySQL's rule for a CHECK written on a column: it may name that column and no other.
Package mysqlcheck holds MySQL's rule for a CHECK written on a column: it may name that column and no other.
mysqlcollation
Package mysqlcollation resolves the collations a MySQL or MariaDB table declaration leaves to the server: the table's default collation, and the collation of each column that names none.
Package mysqlcollation resolves the collations a MySQL or MariaDB table declaration leaves to the server: the table's default collation, and the collation of each column that names none.
mysqlcomparison
Package mysqlcomparison holds the rules MySQL and MariaDB give the shared schema comparison (schemacomparison.Rules): how an index definition and a generated column's expression read on the two engines, and which index the server built for a foreign key.
Package mysqlcomparison holds the rules MySQL and MariaDB give the shared schema comparison (schemacomparison.Rules): how an index definition and a generated column's expression read on the two engines, and which index the server built for a foreign key.
mysqldefiner
Package mysqldefiner finds the definer accounts MySQL and MariaDB statements name, and decides before the first of them runs whether the connected account may name them.
Package mysqldefiner finds the definer accounts MySQL and MariaDB statements name, and decides before the first of them runs whether the connected account may name them.
mysqlenum
Package mysqlenum reads the values of a MySQL-family ENUM column type, such as enum('a','b'), the members of a SET column type, such as set('a','b'), and the character set and collation such a type names after its list.
Package mysqlenum reads the values of a MySQL-family ENUM column type, such as enum('a','b'), the members of a SET column type, such as set('a','b'), and the character set and collation such a type names after its list.
mysqlgrants
Package mysqlgrants reads what SHOW GRANTS prints for a MySQL or MariaDB session and answers which privileges the session holds on a database or a table.
Package mysqlgrants reads what SHOW GRANTS prints for a MySQL or MariaDB session and answers which privileges the session holds on a database or a table.
mysqlindex
Package mysqlindex answers which access method a MySQL-family index asks for, from either half of a comparison: a desired index's declared type, or the `INDEX_TYPE` the server reports for one that exists.
Package mysqlindex answers which access method a MySQL-family index asks for, from either half of a comparison: a desired index's declared type, or the `INDEX_TYPE` the server reports for one that exists.
mysqlname
Package mysqlname derives the names MySQL and MariaDB give a foreign key or a CHECK a statement leaves unnamed, and recognizes the name of the index the server builds for a foreign key.
Package mysqlname derives the names MySQL and MariaDB give a foreign key or a CHECK a statement leaves unnamed, and recognizes the name of the index the server builds for a foreign key.
mysqlpartition
Package mysqlpartition refuses a MySQL or MariaDB table's partitioning, and words the note a read gives for a table partitioned outside Ptah.
Package mysqlpartition refuses a MySQL or MariaDB table's partitioning, and words the note a read gives for a table partitioned outside Ptah.
mysqlroutine
Package mysqlroutine holds the single description of how Ptah's PostgreSQL-shaped stored-function fields are encoded into the MySQL family's own routine model, and how they are recovered from its catalog.
Package mysqlroutine holds the single description of how Ptah's PostgreSQL-shaped stored-function fields are encoded into the MySQL family's own routine model, and how they are recovered from its catalog.
mysqlstored
Package mysqlstored reads the head of a MySQL or MariaDB statement that defines a stored object: a view, a stored function or procedure, a trigger, an event, or a MariaDB package or package body.
Package mysqlstored reads the head of a MySQL or MariaDB statement that defines a stored object: a view, a stored function or procedure, a trigger, an event, or a MariaDB package or package body.
mysqlsystemdb
Package mysqlsystemdb answers, from a database NAME alone, which databases a MySQL or MariaDB server owns rather than the user, and renders the predicate a whole-server read and cleanup keep the user's databases with.
Package mysqlsystemdb answers, from a database NAME alone, which databases a MySQL or MariaDB server owns rather than the user, and renders the predicate a whole-server read and cleanup keep the user's databases with.
mysqlviewsecurity
Package mysqlviewsecurity handles the SQL SECURITY mode of MySQL and MariaDB views.
Package mysqlviewsecurity handles the SQL SECURITY mode of MySQL and MariaDB views.
normalize
Package normalize canonicalizes type names, default values, and expressions read from live databases so schema comparison is not tripped by cosmetic dialect spellings such as PostgreSQL typecasts.
Package normalize canonicalizes type names, default values, and expressions read from live databases so schema comparison is not tripped by cosmetic dialect spellings such as PostgreSQL typecasts.
notnullfill
Package notnullfill decides whether a PostgreSQL-family column modification fills the column's NULL rows with its declared default before SET NOT NULL.
Package notnullfill decides whether a PostgreSQL-family column modification fills the column's NULL rows with its declared default before SET NOT NULL.
nullsdistinct
Package nullsdistinct holds the one refusal for PostgreSQL's NULLS [NOT] DISTINCT unique semantics on dialects that have no spelling for them.
Package nullsdistinct holds the one refusal for PostgreSQL's NULLS [NOT] DISTINCT unique semantics on dialects that have no spelling for them.
objectlookup
Package objectlookup answers one question for every migration planner: is the object a SchemaDiff entry names the object a schema declares, and which one.
Package objectlookup answers one question for every migration planner: is the object a SchemaDiff entry names the object a schema declares, and which one.
objectowner
Package objectowner holds the rules every source, the comparison and the planner share for the owner a desired schema declares for an object: which kinds of object a target manages the owner of, which role a declaration may name, and how a declared owner meets the one a read reports.
Package objectowner holds the rules every source, the comparison and the planner share for the owner a desired schema declares for an object: which kinds of object a target manages the owner of, which role a declaration may name, and how a declared owner meets the one a read reports.
ociartifact
Package ociartifact stores Ptah artifacts in OCI-compliant registries.
Package ociartifact stores Ptah artifacts in OCI-compliant registries.
ocicredentials
Package ocicredentials resolves the registry credentials every OCI verb uses, and owns the store `ptah oci login` writes to.
Package ocicredentials resolves the registry credentials every OCI verb uses, and owns the store `ptah oci login` writes to.
ocireferrers
Package ocireferrers lists and renders metadata attached to OCI artifacts.
Package ocireferrers lists and renders metadata attached to OCI artifacts.
ociregistrytest
Package ociregistrytest serves an in-process OCI distribution registry that accepts pushes, for tests that publish through Ptah's own registry client without a container.
Package ociregistrytest serves an in-process OCI distribution registry that accepts pushes, for tests that publish through Ptah's own registry client without a container.
ociverify
Package ociverify checks a published OCI artifact against a policy before anything consumes it.
Package ociverify checks a published OCI artifact against a policy before anything consumes it.
offlinenames
Package offlinenames says whether a target's names can be compared without a connection.
Package offlinenames says whether a target's names can be compared without a connection.
offsetguard
Package offsetguard hosts the test that keeps a byte offset out of a refusal's sentence.
Package offsetguard hosts the test that keeps a byte offset out of a refusal's sentence.
omissionnote
Package omissionnote reports the declarations a render goes on without: a property the target keeps only in part, such as the length of a VARCHAR(255) on an engine whose string type has none, or an object the target has no statement for.
Package omissionnote reports the declarations a render goes on without: a property the target keeps only in part, such as the length of a VARCHAR(255) on an engine whose string type has none, or an object the target has no statement for.
onlineddl
Package onlineddl routes ALTER TABLE migration statements through external online-DDL tools such as gh-ost and pt-online-schema-change.
Package onlineddl routes ALTER TABLE migration statements through external online-DDL tools such as gh-ost and pt-online-schema-change.
openapirender
Package openapirender renders a Ptah schema as an OpenAPI 3.0 document whose components.schemas holds one Schema Object per table.
Package openapirender renders a Ptah schema as an OpenAPI 3.0 document whose components.schemas holds one Schema Object per table.
oraclecollation
Package oraclecollation holds what the Oracle renderer, reader and planner agree on about a column collation, so that each reads the same rule instead of its own copy.
Package oraclecollation holds what the Oracle renderer, reader and planner agree on about a column collation, so that each reads the same rule instead of its own copy.
oracledata
Package oracledata is the Oracle owner's managed-data service: the core/dataext contract Oracle's descriptor asks for.
Package oracledata is the Oracle owner's managed-data service: the core/dataext contract Oracle's descriptor asks for.
oracleroutine
Package oracleroutine holds the single description of how Ptah's PostgreSQL-shaped stored-function fields are encoded into Oracle's PL/SQL routine model, and how they are recovered from its catalog.
Package oracleroutine holds the single description of how Ptah's PostgreSQL-shaped stored-function fields are encoded into Oracle's PL/SQL routine model, and how they are recovered from its catalog.
oracletype
Package oracletype maps a declared column type to the Oracle spelling.
Package oracletype maps a declared column type to the Oracle spelling.
oratypeprovider
Package oratypeprovider assembles the Oracle user type owner of package oratype as one engine provider: its codecs, its conversion, comparison, planning, declaration and reversal services on the Oracle target, its reports in both representations, and the Go, HCL and SQL source adapters of package oratypesource.
Package oratypeprovider assembles the Oracle user type owner of package oratype as one engine provider: its codecs, its conversion, comparison, planning, declaration and reversal services on the Oracle target, its reports in both representations, and the Go, HCL and SQL source adapters of package oratypesource.
oratypesource
Package oratypesource connects the Oracle user type models of package oratype to schema sources.
Package oratypesource connects the Oracle user type models of package oratype to schema sources.
ownqualifier
Package ownqualifier finds the schema qualifier a PostgreSQL expression writes in front of its own table and a column, as the `public` of `public.notes.owner` in a CHECK, an index or a policy on public.notes.
Package ownqualifier finds the schema qualifier a PostgreSQL expression writes in front of its own table and a column, as the `public` of `public.notes.owner` in a CHECK, an index or a policy on public.notes.
parser
Package parser provides token-to-AST parsing logic.
Package parser provides token-to-AST parsing logic.
pathguard
Package pathguard validates user-supplied filesystem paths, resolving them against an allowed root and rejecting escapes so CLI flags cannot traverse outside the intended directory.
Package pathguard validates user-supplied filesystem paths, resolving them against an allowed root and rejecting escapes so CLI flags cannot traverse outside the intended directory.
pgcatalogview
Package pgcatalogview holds the rows of the information_schema views a schema read needs, read from pg_catalog with no privilege condition.
Package pgcatalogview holds the rows of the information_schema views a schema read needs, read from pg_catalog with no privilege condition.
pgcollation
Package pgcollation reads and writes the collation a PostgreSQL column names.
Package pgcollation reads and writes the collation a PostgreSQL column names.
pgdefaultacl
Package pgdefaultacl reads pg_default_acl, the catalog of what ALTER DEFAULT PRIVILEGES established, and spells the statement that takes a default back.
Package pgdefaultacl reads pg_default_acl, the catalog of what ALTER DEFAULT PRIVILEGES established, and spells the statement that takes a default back.
pgdefaultprivilegeprovider
Package pgdefaultprivilegeprovider assembles default-privilege semantics at the engine composition boundary.
Package pgdefaultprivilegeprovider assembles default-privilege semantics at the engine composition boundary.
pgdefaultprivilegesource
Package pgdefaultprivilegesource owns default-privilege schema declarations.
Package pgdefaultprivilegesource owns default-privilege schema declarations.
pgeffects
Package pgeffects describes what a common statement does to the relations, columns, constraints, routines and roles it names: which ones it creates, changes or drops, and which declared types it uses.
Package pgeffects describes what a common statement does to the relations, columns, constraints, routines and roles it names: which ones it creates, changes or drops, and which declared types it uses.
pgexclude
Package pgexclude reads represented EXCLUDE definitions for PostgreSQL source documents, catalog reads, and normalization probes.
Package pgexclude reads represented EXCLUDE definitions for PostgreSQL source documents, catalog reads, and normalization probes.
pgextensioninstall
Package pgextensioninstall reads the PostgreSQL statements that change which extensions a database holds: CREATE EXTENSION, ALTER EXTENSION ...
Package pgextensioninstall reads the PostgreSQL statements that change which extensions a database holds: CREATE EXTENSION, ALTER EXTENSION ...
pgextensionprovider
Package pgextensionprovider assembles the PostgreSQL extension owner of package pgextension as one engine provider: its codecs, its Go annotation, YAML, SQL and HCL readers, its conversion, comparison, planning, declaration and reversal services on every PostgreSQL-family target, and its reports in both representations.
Package pgextensionprovider assembles the PostgreSQL extension owner of package pgextension as one engine provider: its codecs, its Go annotation, YAML, SQL and HCL readers, its conversion, comparison, planning, declaration and reversal services on every PostgreSQL-family target, and its reports in both representations.
pgextensionsource
Package pgextensionsource reads PostgreSQL extension declarations for the owner of package pgextension from every source: the //ptah:schema:extension directive, the YAML extensions key, the HCL extension block, and CREATE EXTENSION and COMMENT ON EXTENSION in SQL.
Package pgextensionsource reads PostgreSQL extension declarations for the owner of package pgextension from every source: the //ptah:schema:extension directive, the YAML extensions key, the HCL extension block, and CREATE EXTENSION and COMMENT ON EXTENSION in SQL.
pgindexstorage
Package pgindexstorage owns which PostgreSQL index storage parameters Ptah records, and the one switch that widens the set.
Package pgindexstorage owns which PostgreSQL index storage parameters Ptah records, and the one switch that widens the set.
pglitelock
Package pglitelock serializes schema changes against a local PGlite server.
Package pglitelock serializes schema changes against a local PGlite server.
pgname
Package pgname derives the names PostgreSQL gives the objects a statement leaves unnamed, such as the `<table>_<column>_key` of a column-level UNIQUE.
Package pgname derives the names PostgreSQL gives the objects a statement leaves unnamed, such as the `<table>_<column>_key` of a column-level UNIQUE.
pgpolicyprovider
Package pgpolicyprovider assembles the PostgreSQL row-security owner of package pgpolicy as one engine provider: its codecs, and its conversion, comparison, normalization, planning, declaration and reversal services on every PostgreSQL-family target that has row security, and its reports in both representations.
Package pgpolicyprovider assembles the PostgreSQL row-security owner of package pgpolicy as one engine provider: its codecs, and its conversion, comparison, normalization, planning, declaration and reversal services on every PostgreSQL-family target that has row security, and its reports in both representations.
pgpolicysource
Package pgpolicysource holds the source grammar of PostgreSQL row-security declarations that more than one frontend shares, for the owner of package pgpolicy: how a role list is spelled in a Go annotation or a YAML value.
Package pgpolicysource holds the source grammar of PostgreSQL row-security declarations that more than one frontend shares, for the owner of package pgpolicy: how a role list is spelled in a Go annotation or a YAML value.
pgprivilege
Package pgprivilege says what the PostgreSQL privilege keyword ALL names on each kind of object a grant can target.
Package pgprivilege says what the PostgreSQL privilege keyword ALL names on each kind of object a grant can target.
pgpublicationprovider
Package pgpublicationprovider assembles the PostgreSQL logical replication publication owner of package pgpublication as one engine provider: its codecs, its SQL and HCL readers, its scope selection, its conversion, comparison, planning, declaration and reversal services on PostgreSQL, and its reports in both representations.
Package pgpublicationprovider assembles the PostgreSQL logical replication publication owner of package pgpublication as one engine provider: its codecs, its SQL and HCL readers, its scope selection, its conversion, comparison, planning, declaration and reversal services on PostgreSQL, and its reports in both representations.
pgpublicationsource
Package pgpublicationsource reads PostgreSQL logical replication publication declarations for the owner of package pgpublication from the sources that can state one: CREATE PUBLICATION and the ALTER PUBLICATION statements pg_dump writes after it in SQL, and the publication block in HCL.
Package pgpublicationsource reads PostgreSQL logical replication publication declarations for the owner of package pgpublication from the sources that can state one: CREATE PUBLICATION and the ALTER PUBLICATION statements pg_dump writes after it in SQL, and the publication block in HCL.
pgregclass
Package pgregclass reads the regclass constants of PostgreSQL text: the relations, such as sequences, that an expression or a statement names as a string constant the server converts to a relation when it reads the text.
Package pgregclass reads the regclass constants of PostgreSQL text: the relations, such as sequences, that an expression or a statement names as a string constant the server converts to a relation when it reads the text.
pgreservedrole
Package pgreservedrole owns the single definition of a PostgreSQL role name Ptah never manages: the reserved pg_ prefix and the bootstrap superuser.
Package pgreservedrole owns the single definition of a PostgreSQL role name Ptah never manages: the reserved pg_ prefix and the bootstrap superuser.
pgrolesource
Package pgrolesource reads and writes PostgreSQL role settings in source formats: the settings and reset_settings attributes of a Go role directive and a YAML role entry, and ALTER ROLE ...
Package pgrolesource reads and writes PostgreSQL role settings in source formats: the settings and reset_settings attributes of a Go role directive and a YAML role entry, and ALTER ROLE ...
pgroutinesource
Package pgroutinesource reads and writes PostgreSQL function properties in source formats.
Package pgroutinesource reads and writes PostgreSQL function properties in source formats.
pgschemastate
Package pgschemastate plans the statements that give a PostgreSQL-family schema the owner, access list and comment a dbreset.SchemaState records: Create for a schema a dev database reset creates again, and Return for one it empties where it stands.
Package pgschemastate plans the statements that give a PostgreSQL-family schema the owner, access list and comment a dbreset.SchemaState records: Create for a schema a dev database reset creates again, and Return for one it empties where it stands.
pgsnapshot
Package pgsnapshot records the catalog state of a PostgreSQL dev database at its starting point, and plans the statements that return the database there after a run.
Package pgsnapshot records the catalog state of a PostgreSQL dev database at its starting point, and plans the statements that return the database there after a run.
pgsystemschema
Package pgsystemschema answers, from a schema NAME alone, which namespaces a PostgreSQL-family server owns rather than the user, and renders the predicate a realm read keeps the user's schemas with.
Package pgsystemschema answers, from a schema NAME alone, which namespaces a PostgreSQL-family server owns rather than the user, and renders the predicate a realm read keeps the user's schemas with.
pgtablesource
Package pgtablesource reads and writes PostgreSQL table features through source contracts.
Package pgtablesource reads and writes PostgreSQL table features through source contracts.
pgtypealias
Package pgtypealias reduces a PostgreSQL type spelling to the one the catalog's format_type reports, so a comparison of a declared type and a read one does not report an alias as a difference.
Package pgtypealias reduces a PostgreSQL type spelling to the one the catalog's format_type reports, so a comparison of a declared type and a read one does not report an alias as a difference.
pgtypeext
Package pgtypeext answers which PostgreSQL extension provides a type.
Package pgtypeext answers which PostgreSQL extension provides a type.
pgtypeprovider
Package pgtypeprovider assembles the PostgreSQL user type owner of package pgtype as one engine provider: its codecs, its conversion, comparison, domain normalization, planning, declaration and reversal services on every PostgreSQL-family target, and its reports in both representations.
Package pgtypeprovider assembles the PostgreSQL user type owner of package pgtype as one engine provider: its codecs, its conversion, comparison, domain normalization, planning, declaration and reversal services on every PostgreSQL-family target, and its reports in both representations.
pgtypesource
Package pgtypesource connects PostgreSQL user type models to schema sources.
Package pgtypesource connects PostgreSQL user type models to schema sources.
planapproval
Package planapproval records and verifies that a human approved a specific migration plan, without an identity provider and without a service.
Package planapproval records and verifies that a human approved a specific migration plan, without an identity provider and without a service.
planartifact
Package planartifact builds deterministic migration-plan OCI attachments.
Package planartifact builds deterministic migration-plan OCI attachments.
planeffect
Package planeffect describes what a planned statement does to a database object: the object it changes, the kind of statement that changes it, and the value each property it reports holds before the statement runs and after.
Package planeffect describes what a planned statement does to a database object: the object it changes, the kind of statement that changes it, and the value each property it reports holds before the statement runs and after.
planlint
Package planlint analyzes the SQL a saved schema plan file carries with Ptah's migration lint rules.
Package planlint analyzes the SQL a saved schema plan file carries with Ptah's migration lint rules.
planner/columnchange
Package columnchange reads which properties of a column a comparison changed, in the terms an ast.ModifyColumnOperation states them.
Package columnchange reads which properties of a column a comparison changed, in the terms an ast.ModifyColumnOperation states them.
planner/dialects/clickhouse
Package clickhouse implements ClickHouse-specific migration planning.
Package clickhouse implements ClickHouse-specific migration planning.
planner/dialects/mssql
Package mssql provides SQL Server migration planning.
Package mssql provides SQL Server migration planning.
planner/dialects/mysql
Package mysql implements the MySQL migration planner dialect, transforming schema differences into MySQL DDL operations.
Package mysql implements the MySQL migration planner dialect, transforming schema differences into MySQL DDL operations.
planner/dialects/oracle
Package oracle provides Oracle migration planning.
Package oracle provides Oracle migration planning.
planner/dialects/postgres
Package postgres provides PostgreSQL-specific migration planning functionality for the Ptah schema management system.
Package postgres provides PostgreSQL-specific migration planning functionality for the Ptah schema management system.
planner/dialects/sqlite
Package sqlite plans schema migrations for SQLite.
Package sqlite plans schema migrations for SQLite.
planner/featurehost
Package featurehost lowers selected feature plans into contributions to a host's common operation graph.
Package featurehost lowers selected feature plans into contributions to a host's common operation graph.
planner/guards
Package guards settles the existence guards of a plan spelled in ptah.run/core/planext.StatementStyleExact.
Package guards settles the existence guards of a plan spelled in ptah.run/core/planext.StatementStyleExact.
planner/keyrelease
Package keyrelease finds the keys a migration plan drops before a column of the same table takes its own UNIQUE, because each holds the name the server gives that key.
Package keyrelease finds the keys a migration plan drops before a column of the same table takes its own UNIQUE, because each holds the name the server gives that key.
planner/notnullname
Package notnullname keeps a migration plan from giving a NOT NULL constraint a name another column of the table still holds.
Package notnullname keeps a migration plan from giving a NOT NULL constraint a name another column of the table still holds.
planner/rolemembership
Package rolemembership turns the membership changes of a schema diff into the statement nodes the PostgreSQL, MySQL and ClickHouse planners plan.
Package rolemembership turns the membership changes of a schema diff into the statement nodes the PostgreSQL, MySQL and ClickHouse planners plan.
planner/schemaprecondition
Package schemaprecondition builds the CREATE SCHEMA node a migration plan emits before the objects that are declared inside that schema, and refuses a database change a planner does not plan.
Package schemaprecondition builds the CREATE SCHEMA node a migration plan emits before the objects that are declared inside that schema, and refuses a database change a planner does not plan.
planner/sqliterebuild
Package sqliterebuild answers the one question two subsystems must not answer differently: does converging this table diff need SQLite to rebuild the table?
Package sqliterebuild answers the one question two subsystems must not answer differently: does converging this table diff need SQLite to rebuild the table?
planrefusal
Package planrefusal declares the refusals a planner raises that a plan's machine-readable report names by a code.
Package planrefusal declares the refusals a planner raises that a plan's machine-readable report names by a code.
planshape
Package planshape rewrites a planned migration into the statement shape the Atlas CLI writes, for ptah.run/core/planext.StatementShapeCatalog: the keys and checks of a new table inside its CREATE TABLE, a type spelled the way the catalog reports it, an explicit NULL on a nullable column, and the statements in the order and the grouping the binary writes.
Package planshape rewrites a planned migration into the statement shape the Atlas CLI writes, for ptah.run/core/planext.StatementShapeCatalog: the keys and checks of a new table inside its CREATE TABLE, a type spelled the way the catalog reports it, an explicit NULL on a nullable column, and the statements in the order and the grouping the binary writes.
planstyle
Package planstyle declares the statement style Ptah's commands plan a schema change in.
Package planstyle declares the statement style Ptah's commands plan a schema change in.
postgrescomparison
Package postgrescomparison holds the rules PostgreSQL gives the shared schema comparison (schemacomparison.Rules): how an index definition and a generated column's expression read on PostgreSQL.
Package postgrescomparison holds the rules PostgreSQL gives the shared schema comparison (schemacomparison.Rules): how an index definition and a generated column's expression read on PostgreSQL.
precedence
Package precedence reads an SQL expression by an engine's operator precedence and prints the operations it groups, so that two spellings of one expression compare equal.
Package precedence reads an SQL expression by an engine's operator precedence and prints the operations it groups, so that two spellings of one expression compare equal.
preflight
Package preflight runs migration pre-flight hooks before schema changes.
Package preflight runs migration pre-flight hooks before schema changes.
privilegefold
Package privilegefold composes GRANT, REVOKE and DENY declarations in the order a SQL schema reads them.
Package privilegefold composes GRANT, REVOKE and DENY declarations in the order a SQL schema reads them.
probetext
Package probetext decides whether declared SQL text may be written into a probe statement, and raises the warning for a declaration whose text may not.
Package probetext decides whether declared SQL text may be written into a probe statement, and raises the warning for a declaration whose text may not.
probetx
Package probetx checks that a probe transaction is still the one its owner began.
Package probetx checks that a probe transaction is still the one its owner began.
processcapture
Package processcapture runs an explicit argv without a shell and captures bounded output while cancellation terminates the whole process tree.
Package processcapture runs an explicit argv without a shell and captures bounded output while cancellation terminates the whole process tree.
protectedtable
Package protectedtable decides whether a declared entry fences a table off from change.
Package protectedtable decides whether a declared entry fences a table off from change.
protobufrender
Package protobufrender renders a Ptah schema as a single Protobuf Edition 2023 definition: one message per table, one enum per enum column, and scalar fields for foreign keys.
Package protobufrender renders a Ptah schema as a single Protobuf Edition 2023 definition: one message per table, one enum per enum column, and scalar fields for foreign keys.
providerarchive
Package providerarchive reads the one executable out of an official provider archive (".tar.gz" or ".zip").
Package providerarchive reads the one executable out of an official provider archive (".tar.gz" or ".zip").
providerarchive/archivetest
Package archivetest builds small provider archives for tests.
Package archivetest builds small provider archives for tests.
providercatalog
Package providercatalog identifies official executable providers without loading implementations, opening databases, or granting execution permission.
Package providercatalog identifies official executable providers without loading implementations, opening databases, or granting execution permission.
providerconfig
Package providerconfig reads explicit provider installations and resolves engine ownership without starting executables or consulting PATH.
Package providerconfig reads explicit provider installations and resolves engine ownership without starting executables or consulting PATH.
providerdiagnostic
Package providerdiagnostic carries engine-neutral provider failures: setup and installation failures, and a provider's refusal of the SQL schema documents it read.
Package providerdiagnostic carries engine-neutral provider failures: setup and installation failures, and a provider's refusal of the SQL schema documents it read.
providerexchange
Package providerexchange records the comparison exchanges between Ptah and an executable provider so that a person can read them: each CompareModels request and the reply or the error it got, written as the contract's own JSON.
Package providerexchange records the comparison exchanges between Ptah and an executable provider so that a person can read them: each CompareModels request and the reply or the error it got, written as the contract's own JSON.
providerhost
Package providerhost adapts explicitly trusted subprocess providers to the application pipeline.
Package providerhost adapts explicitly trusted subprocess providers to the application pipeline.
providerhost/statementargs
Package statementargs gives an argument of a statement the operator wrote the wire form an executable provider binds, read from the Go type the caller passed, and puts the arguments of a statement at the positions the provider binds them in.
Package statementargs gives an argument of a statement the operator wrote the wire form an executable provider binds, read from the Go type the caller passed, and puts the arguments of a statement at the positions the provider binds them in.
providerinstall
Package providerinstall installs an official provider release into the user store and reads the store back.
Package providerinstall installs an official provider release into the user store and reads the store back.
providerinstall/releasetest
Package releasetest serves fake provider releases for tests: the GitHub releases API of one repository and the GitHub release download layout, from one HTTP server.
Package releasetest serves fake provider releases for tests: the GitHub releases API of one repository and the GitHub release download layout, from one HTTP server.
providerpublished
Package providerpublished holds what official executable providers publish about their engines, recorded from a provider build, for the tools that run without a provider: the lint rule catalog the documentation renders, the Go annotation schema `ptah schema annotations` writes, and the language server's completion.
Package providerpublished holds what official executable providers publish about their engines, recorded from a provider build, for the tools that run without a provider: the lint rule catalog the documentation renders, the Go annotation schema `ptah schema annotations` writes, and the language server's completion.
providerrelease
Package providerrelease reads what an official provider release publishes beside its archives: ptah-provider.json, which names the release's artifacts and the provider contract it needs, and checksums.txt, which holds the digests.
Package providerrelease reads what an official provider release publishes beside its archives: ptah-provider.json, which names the release's artifacts and the provider contract it needs, and checksums.txt, which holds the digests.
providerscan
Package providerscan reads the SQL text of an engine an executable provider serves with the provider's own scanner (ScanSQL, ADR 0069).
Package providerscan reads the SQL text of an engine an executable provider serves with the provider's own scanner (ScanSQL, ADR 0069).
providerscan/scantest
Package scantest scans SQL text by rules that are not the shared lexer's, for tests of readers that take an executable provider's scanner (internal/providerscan).
Package scantest scans SQL text by rules that are not the shared lexer's, for tests of readers that take an executable provider's scanner (internal/providerscan).
providerselect
Package providerselect decides which executable provider, if any, serves an invocation, starts it, and builds the runtime, connection bindings and dev-database owner the invocation runs under.
Package providerselect decides which executable provider, if any, serves an invocation, starts it, and builds the runtime, connection bindings and dev-database owner the invocation runs under.
providersource
Package providersource converts captured frontend data to the provider source contract.
Package providersource converts captured frontend data to the provider source contract.
providerurl
Package providerurl reads which engine a database or dev-database URL names when an executable provider may serve it.
Package providerurl reads which engine a database or dev-database URL names when an executable provider may serve it.
ptahdirective
Package ptahdirective locates line-anchored Ptah migration directives in SQL without confusing directive-looking bytes inside other SQL tokens.
Package ptahdirective locates line-anchored Ptah migration directives in SQL without confusing directive-looking bytes inside other SQL tokens.
ptahls
Package ptahls implements the Ptah annotation language server.
Package ptahls implements the Ptah annotation language server.
quickstart
Package quickstart runs the commands a quick-start page publishes and checks the output the page shows against what the commands actually print.
Package quickstart runs the commands a quick-start page publishes and checks the output the page shows against what the commands actually print.
reachext
Package reachext declares what a lexer of an engine's own brings to the scan of internal/sqlreach: the constructs of the text it reads that reach outside the database, and whether its strings take backslash escapes.
Package reachext declares what a lexer of an engine's own brings to the scan of internal/sqlreach: the constructs of the text it reads that reach outside the database, and whether its strings take backslash escapes.
reachext/builtin
Package builtin lists the reach services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
Package builtin lists the reach services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
readscope
Package readscope says which object kinds a run does not depend on, for a schema reader that has to answer for what it could not see.
Package readscope says which object kinds a run does not depend on, for a schema reader that has to answer for what it could not see.
referencedkey
Package referencedkey holds the referenced-key rule of a foreign key: which columns of the referenced table a target accepts as the key the foreign key references.
Package referencedkey holds the referenced-key rule of a foreign key: which columns of the referenced table a target accepts as the key the foreign key references.
referentialaction
Package referentialaction holds the one spelling of a foreign key's ON DELETE and ON UPDATE action.
Package referentialaction holds the one spelling of a foreign key's ON DELETE and ON UPDATE action.
remotemigrationdir
Package remotemigrationdir opens a migration directory that lives in an OCI registry, named by the vendor `atlas://` spelling.
Package remotemigrationdir opens a migration directory that lives in an OCI registry, named by the vendor `atlas://` spelling.
renderdiag
Package renderdiag carries the record a renderer leaves when a target cannot hold something the schema declared, and the sink it writes that record to.
Package renderdiag carries the record a renderer leaves when a target cannot hold something the schema declared, and the sink it writes that record to.
renovateregex
Package renovateregex compiles Renovate's custom-manager patterns with the engine Renovate evaluates them with.
Package renovateregex compiles Renovate's custom-manager patterns with the engine Renovate evaluates them with.
repaircommand
Package repaircommand spells the `ptah migrations repair` command that ends a dirty migration revision.
Package repaircommand spells the `ptah migrations repair` command that ends a dirty migration revision.
repeatableset
Package repeatableset names the repeatable migrations of a migration directory for the code that selects migration files by name rather than running them: migration lint, its file selectors, and the apply gate built on it.
Package repeatableset names the repeatable migrations of a migration directory for the code that selects migration files by name rather than running them: migration lint, its file selectors, and the apply gate built on it.
replaytrust
Package replaytrust carries the operator's statement that they trust the SQL a run executes on its dev database: the migration files a replay runs, a desired-state SQL file loaded there, and the statements a plan rehearsal runs.
Package replaytrust carries the operator's statement that they trust the SQL a run executes on its dev database: the migration files a replay runs, a desired-state SQL file loaded there, and the statements a plan rehearsal runs.
revisiontable
Package revisiontable holds the names of the tables Ptah's own bookkeeping writes: the ones the migrator records applied migrations in, and the ledger `ptah seed` records applied seed files in.
Package revisiontable holds the names of the tables Ptah's own bookkeeping writes: the ones the migrator records applied migrations in, and the ledger `ptah seed` records applied seed files in.
revisiontext
Package revisiontext renders the text a migration revision row records about the statement a migration stopped on.
Package revisiontext renders the text a migration revision row records about the statement a migration stopped on.
rlspolicy
Package rlspolicy holds the single description of how a row-level-security policy's FOR clause is folded before two sides of a comparison are matched.
Package rlspolicy holds the single description of how a row-level-security policy's FOR clause is folded before two sides of a comparison are matched.
rolegraph
Package rolegraph follows the role-in-role edges a database read reports, and selects the memberships and role attributes a saved plan depends on.
Package rolegraph follows the role-in-role edges a database read reports, and selects the memberships and role attributes a saved plan depends on.
rolepassword
Package rolepassword keeps a declared role password out of everything Ptah prints or writes.
Package rolepassword keeps a declared role password out of everything Ptah prints or writes.
rolescope
Package rolescope owns what Ptah does about roles being server-scoped while a schema description is not: the opt-in that restores the full cluster read on the same surface, the note that tells an operator which roles the default description left out, and the partition that keeps a dev-database materialization from re-creating a role its server already has.
Package rolescope owns what Ptah does about roles being server-scoped while a schema description is not: the opt-in that restores the full cluster read on the same surface, the note that tells an operator which roles the default description left out, and the partition that keeps a dev-database materialization from re-creating a role its server already has.
rollbacklimit
Package rollbacklimit turns "roll back the last N applied migrations" into the version a rollback stops at.
Package rollbacklimit turns "roll back the last N applied migrations" into the version a rollback stops at.
roundingcheck
Package roundingcheck writes what a generated migration file carries before a column type change that keeps fewer digits after the point: a decimal given a lower scale or put under an integer, or a temporal column given a lower fractional-second precision, which most servers convert without an error, rounding or cutting each value.
Package roundingcheck writes what a generated migration file carries before a column type change that keeps fewer digits after the point: a decimal given a lower scale or put under an integer, or a temporal column given a lower fractional-second precision, which most servers convert without an error, rounding or cutting each value.
roundingscan
Package roundingscan reads, before a plan runs, whether a column type change that keeps fewer digits after the point would change a value the table holds.
Package roundingscan reads, before a plan runs, whether a column type change that keeps fewer digits after the point would change a value the table holds.
routineargs
Package routineargs reduces a PostgreSQL routine's argument list to the forms a comparison matches routines on.
Package routineargs reduces a PostgreSQL routine's argument list to the forms a comparison matches routines on.
routinebody
Package routinebody tells a PostgreSQL routine body written as SQL from one written as a string.
Package routinebody tells a PostgreSQL routine body written as SQL from one written as a string.
routineext
Package routineext declares the services of a routine grammar.
Package routineext declares the services of a routine grammar.
routineext/builtin
Package builtin composes the routine services of the engines Ptah ships.
Package builtin composes the routine services of the engines Ptah ships.
routineext/compound
Package compound reads compound-statement boundaries shared by the compound routine owner and the permissive SQL function grammar.
Package compound reads compound-statement boundaries shared by the compound routine owner and the permissive SQL function grammar.
routineext/mysql
Package mysql serves the mysql routine grammar to the SQL reader.
Package mysql serves the mysql routine grammar to the SQL reader.
routineext/postgres
Package postgres serves the postgres routine grammar to the SQL reader.
Package postgres serves the postgres routine grammar to the SQL reader.
routineext/sqlserver
Package sqlserver serves the sqlserver routine grammar to the SQL reader.
Package sqlserver serves the sqlserver routine grammar to the SQL reader.
routineidentity
Package routineidentity binds routine argument normalization to structured identities.
Package routineidentity binds routine argument normalization to structured identities.
routinesetting
Package routinesetting holds the one spelling of a routine's own configuration settings, so a declaration and a catalog row compare.
Package routinesetting holds the one spelling of a routine's own configuration settings, so a declaration and a catalog row compare.
rowaccess
Package rowaccess says whether a table privilege reads a table's rows or changes them.
Package rowaccess says whether a table privilege reads a table's rows or changes them.
rowserrguard
Package rowserrguard hosts the test that keeps rowserrcheck's reach in step with the tree it is meant to police.
Package rowserrguard hosts the test that keeps rowserrcheck's reach in step with the tree it is meant to police.
rundiag
Package rundiag aggregates the warnings a command run can raise about many objects at once.
Package rundiag aggregates the warnings a command run can raise about many objects at once.
schemaartifact
Package schemaartifact maps Ptah desired-schema IR to OCI artifacts.
Package schemaartifact maps Ptah desired-schema IR to OCI artifacts.
schemaartifacttest
Package schemaartifacttest serves a real schema artifact over the read half of the OCI distribution API, for tests that need a registry without a container.
Package schemaartifacttest serves a real schema artifact over the read half of the OCI distribution API, for tests that need a registry without a container.
schemaattr
Package schemaattr reads the values of a Go annotation that name a schema.
Package schemaattr reads the values of a Go annotation that name a schema.
schemacensus
Package schemacensus enumerates every field of the desired schema and records what each one is for, so a fact an author declares cannot disappear on the way to SQL without somebody having decided that it should.
Package schemacensus enumerates every field of the desired schema and records what each one is for, so a fact an author declares cannot disappear on the way to SQL without somebody having decided that it should.
schemaclean
Package schemaclean plans and executes destructive schema cleanup.
Package schemaclean plans and executes destructive schema cleanup.
schemadoc
Package schemadoc renders a declared schema as one self-contained HTML document.
Package schemadoc renders a declared schema as one self-contained HTML document.
schemaexport
Package schemaexport holds the schema-shaping logic shared by the API-schema exporters (OpenAPI and GraphQL): which tables to emit, how to resolve a table's columns, primary key, foreign keys and enum values, and the identifier helpers both formats need.
Package schemaexport holds the schema-shaping logic shared by the API-schema exporters (OpenAPI and GraphQL): which tables to emit, how to resolve a table's columns, primary key, foreign keys and enum values, and the identifier helpers both formats need.
schemaexportloss
Package schemaexportloss recognizes schema properties that compact exports omit.
Package schemaexportloss recognizes schema properties that compact exports omit.
schemafile
Package schemafile loads local schema definition files into Ptah's schema IR.
Package schemafile loads local schema definition files into Ptah's schema IR.
schemafingerprint
Package schemafingerprint binds common schema data, named feature objects, attached facets, and source knowledge to the selected codec definitions.
Package schemafingerprint binds common schema data, named feature objects, attached facets, and source knowledge to the selected codec definitions.
schemalineage
Package schemalineage derives column-to-column dependencies from the view and materialized-view bodies a schema declares.
Package schemalineage derives column-to-column dependencies from the view and materialized-view bodies a schema declares.
schemaload
Package schemaload resolves a desired-state schema from Go entity roots and/or language-agnostic schema files, merging multiple sources into one composite schema.
Package schemaload resolves a desired-state schema from Go entity roots and/or language-agnostic schema files, merging multiple sources into one composite schema.
schemamerge
Package schemamerge merges the desired-schema descriptions of several files of one load into one, in the order the load reads them: every object family is appended, grants compose so a later REVOKE takes back an earlier GRANT, and the coverage of the whole is the union of what each file leaves undescribed.
Package schemamerge merges the desired-schema descriptions of several files of one load into one, in the order the load reads them: every object family is appended, grants compose so a later REVOKE takes back an earlier GRANT, and the coverage of the whole is the union of what each file leaves undescribed.
schemaprep
Package schemaprep contains transformations and derived values that stay in the desired-schema model.
Package schemaprep contains transformations and derived values that stay in the desired-schema model.
schemaroot
Package schemaroot answers which directories bound the row files a desired state may make a command read, and reads a declaration's file through them.
Package schemaroot answers which directories bound the row files a desired state may make a command read, and reads a declaration's file through them.
schemascope
Package schemascope applies Atlas-style schema allow-lists to Ptah schema IRs.
Package schemascope applies Atlas-style schema allow-lists to Ptah schema IRs.
schemasecurity
Package schemasecurity reports security findings over a schema Ptah has read, without a hosted service, an account, or a second copy of the schema.
Package schemasecurity reports security findings over a schema Ptah has read, without a hosted service, an account, or a second copy of the schema.
schemaselection
Package schemaselection derives, in one place, what a database URL says about the schema a run works in — and what the server resolved that to.
Package schemaselection derives, in one place, what a database URL says about the schema a run works in — and what the server resolved that to.
schemastats
Package schemastats counts the objects in a schema and renders the counts as OpenMetrics.
Package schemastats counts the objects in a schema and renders the counts as OpenMetrics.
schemavalidate
Package schemavalidate reports structural problems in a desired schema without a database.
Package schemavalidate reports structural problems in a desired schema without a database.
schemaviz
Package schemaviz renders goschema databases as graph descriptions.
Package schemaviz renders goschema databases as graph descriptions.
secretdisplay
Package secretdisplay prepares untrusted process output for safe display.
Package secretdisplay prepares untrusted process output for safe display.
secretmask
Package secretmask takes secrets out of text that is about to be shown: a driver's error, a server's answer, a program's output, a configuration diagnostic or a provider's response body.
Package secretmask takes secrets out of text that is about to be shown: a driver's error, a server's answer, a program's output, a configuration diagnostic or a provider's response body.
sequenceref
Package sequenceref reads the references a column default makes to a sequence, through a pseudocolumn such as Oracle's seq.NEXTVAL or a clause such as SQL Server's NEXT VALUE FOR seq, so that a declared default and the one a catalog stores compare by the sequence they read.
Package sequenceref reads the references a column default makes to a sequence, through a pseudocolumn such as Oracle's seq.NEXTVAL or a clause such as SQL Server's NEXT VALUE FOR seq, so that a declared default and the one a catalog stores compare by the sequence they read.
servercode
Package servercode reads the codes a database server answered with out of a driver's error.
Package servercode reads the codes a database server answered with out of a driver's error.
serverdiag
Package serverdiag reads what a database server said about a failure, beyond its code, out of a driver's error: the PostgreSQL protocol's DETAIL and HINT, the error position, the context line, and the names of the schema, table, column, data type and constraint involved.
Package serverdiag reads what a database server said about a failure, beyond its code, out of a driver's error: the PostgreSQL protocol's DETAIL and HINT, the error position, the context line, and the names of the schema, table, column, data type and constraint involved.
serverobjects
Package serverobjects answers which objects a database server creates in every database it makes, by dialect and name.
Package serverobjects answers which objects a database server creates in every database it makes, by dialect and name.
serverprofile
Package serverprofile assembles what Ptah knows about one concrete database server: which product and release it is, which capability preset answers for it and how that preset was reached, what this repository promises about the release line, and the capability values — boolean and otherwise — that follow.
Package serverprofile assembles what Ptah knows about one concrete database server: which product and release it is, which capability preset answers for it and how that preset was reached, what this repository promises about the release line, and the capability values — boolean and otherwise — that follow.
servertarget
Package servertarget maps an operator-supplied server version onto the capability preset an offline command should plan with.
Package servertarget maps an operator-supplied server version onto the capability preset an offline command should plan with.
sessiontx
Package sessiontx begins a transaction on a pinned database/sql session whose end the caller owns, so that canceling the caller's context does not end it from another goroutine.
Package sessiontx begins a transaction on a pinned database/sql session whose end the caller owns, so that canceling the caller's context does not end it from another goroutine.
skills
Package skills installs the agent skills Ptah ships into the directories coding agents read skills from.
Package skills installs the agent skills Ptah ships into the directories coding agents read skills from.
sourcearchive
Package sourcearchive reads the files a schema or a migration directory is selected from out of one downloaded object: the object itself, a gzip-compressed tar archive, or a zip archive.
Package sourcearchive reads the files a schema or a migration directory is selected from out of one downloaded object: the object itself, a gzip-compressed tar archive, or a zip archive.
sourcecontent
Package sourcecontent defines the content digest of a delivered source: the files a schema or a migration directory is read from, whatever carried them.
Package sourcecontent defines the content digest of a delivered source: the files a schema or a migration directory is read from, whatever carried them.
sourcepos
Package sourcepos turns a byte offset in a document into the line and column its author reads.
Package sourcepos turns a byte offset in a document into the line and column its author reads.
sourcestatement
Package sourcestatement recovers a statement the migrator sent as the migration body spells it.
Package sourcestatement recovers a statement the migrator sent as the migration body spells it.
sqlbatch
Package sqlbatch recognizes a client batch separator, such as SQL Server's GO, where it stands on a line of its own.
Package sqlbatch recognizes a client batch separator, such as SQL Server's GO, where it stands on a line of its own.
sqlcompound
Package sqlcompound answers one question: does this semicolon end the statement, or is it a line of a routine body?
Package sqlcompound answers one question: does this semicolon end the statement, or is it a line of a routine body?
sqldecl
Package sqldecl lists what one file of a SQL schema directory declares, in the terms of the directory's check that a later file does not declare again what an earlier one did: the objects the file leaves declared, the ones it declares under IF NOT EXISTS or OR REPLACE, and its CREATE TABLE and DROP TABLE statements in order.
Package sqldecl lists what one file of a SQL schema directory declares, in the terms of the directory's check that a later file does not declare again what an earlier one did: the objects the file leaves declared, the ones it declares under IF NOT EXISTS or OR REPLACE, and its CREATE TABLE and DROP TABLE statements in order.
sqlident
Package sqlident quotes SQL identifiers (schema, table, and column names) for a given SQL dialect.
Package sqlident quotes SQL identifiers (schema, table, and column names) for a given SQL dialect.
sqlitecomparison
Package sqlitecomparison holds the rules SQLite gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on SQLite.
Package sqlitecomparison holds the rules SQLite gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on SQLite.
sqliteforeignkeys
Package sqliteforeignkeys carries the one thing a SQLite table rebuild needs two distant packages to agree on: the spelling of the foreign-key pragmas that bracket the rebuild, and how to recognize them again.
Package sqliteforeignkeys carries the one thing a SQLite table rebuild needs two distant packages to agree on: the spelling of the foreign-key pragmas that bracket the rebuild, and how to recognize them again.
sqlitekey
Package sqlitekey answers whether a server enforces NOT NULL on a primary key column.
Package sqlitekey answers whether a server enforces NOT NULL on a primary key column.
sqlitemodule
Package sqlitemodule answers one question, in one place: which SQLite virtual-table modules does the build actually register?
Package sqlitemodule answers one question, in one place: which SQLite virtual-table modules does the build actually register?
sqliterebuild
Package sqliterebuild opens the transaction a SQLite table rebuild needs.
Package sqliterebuild opens the transaction a SQLite table rebuild needs.
sqlitevirtual
Package sqlitevirtual refuses a schema comparison that would treat a live SQLite virtual table as an ordinary one.
Package sqlitevirtual refuses a schema comparison that would treat a live SQLite virtual table as an ordinary one.
sqllint
Package sqllint provides a parser-backed linter for standalone SQL files.
Package sqllint provides a parser-backed linter for standalone SQL files.
sqlmode
Package sqlmode reads a MySQL-family session's sql_mode, the comma-separated list of modes `SELECT @@SESSION.sql_mode` answers.
Package sqlmode reads a MySQL-family session's sql_mode, the comma-separated list of modes `SELECT @@SESSION.sql_mode` answers.
sqlqualifier
Package sqlqualifier recognizes and rewrites database names in SQL.
Package sqlqualifier recognizes and rewrites database names in SQL.
sqlreach
Package sqlreach recognizes SQL constructs that reach outside the database the statement was sent to: another database file or server, a file on the host, a shell.
Package sqlreach recognizes SQL constructs that reach outside the database the statement was sent to: another database file or server, a file on the host, a shell.
sqlrunner
Package sqlrunner defines the SQL operations shared by pooled and pinned database sessions.
Package sqlrunner defines the SQL operations shared by pooled and pinned database sessions.
sqlsafety
Package sqlsafety prepares dialect-sensitive SQL for conservative safety classification.
Package sqlsafety prepares dialect-sensitive SQL for conservative safety classification.
sqlschema
Package sqlschema reads a SQL desired schema into the canonical model.
Package sqlschema reads a SQL desired schema into the canonical model.
sqlscript
Package sqlscript decides how a statement ends when a SQL script is written from a list of statements.
Package sqlscript decides how a statement ends when a SQL script is written from a list of statements.
sqlserverbatch
Package sqlserverbatch reads T-SQL text into the statements SQL Server runs from it, finding each statement's end where the server finds it.
Package sqlserverbatch reads T-SQL text into the statements SQL Server runs from it, finding each statement's end where the server finds it.
sqlservercomparison
Package sqlservercomparison holds the rules SQL Server gives the shared schema comparison (schemacomparison.Rules): how an index definition, a filtered index's predicate and a computed column's expression read on SQL Server.
Package sqlservercomparison holds the rules SQL Server gives the shared schema comparison (schemacomparison.Rules): how an index definition, a filtered index's predicate and a computed column's expression read on SQL Server.
sqlserverexec
Package sqlserverexec renders the EXEC statements the SQL Server renderer writes where T-SQL has no DDL for a change, and reads them back.
Package sqlserverexec renders the EXEC statements the SQL Server renderer writes where T-SQL has no DDL for a change, and reads them back.
sqlservertype
Package sqlservertype maps a declared column type to the SQL Server spelling.
Package sqlservertype maps a declared column type to the SQL Server spelling.
sqlsyntax
Package sqlsyntax parses a SQL document into the statements a syntax consumer reads, in the grammar of the document's dialect: the parser of the lexer its descriptor names, where the descriptor names a lexer of its own and a service serves it (internal/syntaxext), and the shared grammar of internal/parser for every other dialect and for a document with no dialect.
Package sqlsyntax parses a SQL document into the statements a syntax consumer reads, in the grammar of the document's dialect: the parser of the lexer its descriptor names, where the descriptor names a lexer of its own and a service serves it (internal/syntaxext), and the shared grammar of internal/parser for every other dialect and for a document with no dialect.
statementform
Package statementform reads the written form of a statement a dialect descriptor states, such as `SAVEPOINT <name>`, for the shared SQL parser to read statements against.
Package statementform reads the written form of a statement a dialect descriptor states, such as `SAVEPOINT <name>`, for the shared SQL parser to read statements against.
statementtimeout
Package statementtimeout carries a migration's statement timeout from the migrator to an executor whose owner stops each statement itself, as an executable provider does when it offers units.statement-timeout.
Package statementtimeout carries a migration's statement timeout from the migrator to an executor whose owner stops each statement itself, as an executable provider does when it offers units.statement-timeout.
stubs
Package stubs contains annotated Go entities exercising the Ptah annotation surface end to end.
Package stubs contains annotated Go entities exercising the Ptah annotation surface end to end.
syntaxext
Package syntaxext declares what a lexer of an engine's own brings to a consumer of SQL syntax: the statements a document in its text parses to.
Package syntaxext declares what a lexer of an engine's own brings to a consumer of SQL syntax: the statements a document in its text parses to.
syntaxext/builtin
Package builtin lists the syntax services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
Package builtin lists the syntax services of the lexers Ptah ships and looks one up by the lexer a descriptor names.
tableidentity
Package tableidentity keeps table pairing and captured child ownership on the same target-specific identity rules.
Package tableidentity keeps table pairing and captured child ownership on the same target-specific identity rules.
tablelookup
Package tablelookup resolves structural table references without depending on a migration planner.
Package tablelookup resolves structural table references without depending on a migration planner.
tableref
Package tableref parses and formats structural table and column references, and names a table in a message.
Package tableref parses and formats structural table and column references, and names a table in a message.
targetscope
Package targetscope routes a declaration of a source frontend's own grammar to the feature owner its target scope names: one owner per target, at most one owner for the declarations that name no target, and a scope that names one owner's targets beside others refused.
Package targetscope routes a declaration of a source frontend's own grammar to the feature owner its target scope names: one owner per target, at most one owner for the declarations that name no target, and a scope that names one owner's targets beside others refused.
temporalkeys
Package temporalkeys holds the one check of what a declaration may say about PostgreSQL 18's temporal keys: WITHOUT OVERLAPS on a primary key or unique constraint and PERIOD on a foreign key.
Package temporalkeys holds the one check of what a declaration may say about PostgreSQL 18's temporal keys: WITHOUT OVERLAPS on a primary key or unique constraint and PERIOD on a foreign key.
testcontour
Package testcontour runs build-tagged integration packages and rejects skipped or incomplete tests.
Package testcontour runs build-tagged integration packages and rejects skipped or incomplete tests.
testcontour/shard
Package shard splits Ptah's tagged integration contour across parallel runners and checks that the runners' reports cover it exactly once.
Package shard splits Ptah's tagged integration contour across parallel runners and checks that the runners' reports cover it exactly once.
testpki
Package testpki generates certificate authorities and server certificates for tests that exercise TLS verification.
Package testpki generates certificate authorities and server certificates for tests that exercise TLS verification.
teststyleguard
Package teststyleguard hosts the self-test for the test-style gate (scripts/check-test-style.sh).
Package teststyleguard hosts the self-test for the test-style gate (scripts/check-test-style.sh).
testsummary
Package testsummary formats deterministic summaries for the integration runner without exposing its mutable state.
Package testsummary formats deterministic summaries for the integration runner without exposing its mutable state.
testutils
Package testutils provides canned goschema fixtures and small lookup helpers shared by dbschema-related unit tests.
Package testutils provides canned goschema fixtures and small lookup helpers shared by dbschema-related unit tests.
timescale
Package timescale holds the note the read surfaces write for TimescaleDB state a description cannot carry: hypertables partitioned on more than the one dimension a declaration states.
Package timescale holds the note the read surfaces write for TimescaleDB state a description cannot carry: hypertables partitioned on more than the one dimension a declaration states.
triggerdef
Package triggerdef reads the parts of a trigger's definition that a column of the model or the catalog holds as text: the event list, and a PostgreSQL trigger's WHEN condition.
Package triggerdef reads the parts of a trigger's definition that a column of the model or the catalog holds as text: the event list, and a PostgreSQL trigger's WHEN condition.
txcontrol
Package txcontrol says whether one SQL statement controls transaction state: opens, ends or marks a transaction, or changes how the session ends one.
Package txcontrol says whether one SQL statement controls transaction state: opens, ends or marks a transaction, or changes how the session ends one.
txrequire
Package txrequire answers whether SQL can run inside a transaction.
Package txrequire answers whether SQL can run inside a transaction.
typechange
Package typechange compares SQL type transitions.
Package typechange compares SQL type transitions.
typeorder
Package typeorder orders data type operations across planning owners.
Package typeorder orders data type operations across planning owners.
undecidednote
Package undecidednote reports the declared objects a comparison withheld as undecided, on every surface that compares a desired schema with a database.
Package undecidednote reports the declared objects a comparison withheld as undecided, on every surface that compares a desired schema with a database.
uniquelowering
Package uniquelowering writes a desired schema's UNIQUE constraints as the global unique indexes an engine without UNIQUE constraints holds for them.
Package uniquelowering writes a desired schema's UNIQUE constraints as the global unique indexes an engine without UNIQUE constraints holds for them.
uniquename
Package uniquename is the one rule Ptah applies when two objects of one generated set derive the same name: the first to claim a name keeps it, and each later claimant takes the first free numbered form.
Package uniquename is the one rule Ptah applies when two objects of one generated set derive the same name: the first to claim a name keeps it, and each later claimant takes the first free numbered form.
unmodelednote
Package unmodelednote reports the objects a read found of a kind Ptah does not model, such as a MySQL event, on every surface that reads a database.
Package unmodelednote reports the objects a read found of a kind Ptah does not model, such as a MySQL event, on every surface that reads a database.
unreadtables
Package unreadtables writes the note a read command prints when its read found tables it does not describe, such as a YDB replica table no replication writes any more.
Package unreadtables writes the note a read command prints when its read found tables it does not describe, such as a YDB replica table no replication writes any more.
usertypescope
Package usertypescope words the refusal of a declared user type a target cannot create, which the type owners give before any SQL is rendered.
Package usertypescope words the refusal of a declared user type a target cannot create, which the type owners give before any SQL is rendered.
valuecontext
Package valuecontext binds model interpretation before source selection or dependency collection.
Package valuecontext binds model interpretation before source selection or dependency collection.
viewcheck
Package viewcheck reads and writes the spelling a Go annotation and a YAML document give a view's check option: the `with_check` attribute of //ptah:schema:view and the `with_check` key of a YAML view.
Package viewcheck reads and writes the spelling a Go annotation and a YAML document give a view's check option: the `with_check` attribute of //ptah:schema:view and the `with_check` key of a YAML view.
viewcolumns
Package viewcolumns rewrites a view's SELECT list so its output columns carry the names the declaration gives them.
Package viewcolumns rewrites a view's SELECT list so its output columns carry the names the declaration gives them.
viewoptions
Package viewoptions reads, compares and changes the options PostgreSQL keeps for a view or a materialized view in pg_class.reloptions: a view's security_invoker and security_barrier, and a materialized view's storage parameters such as fillfactor.
Package viewoptions reads, compares and changes the options PostgreSQL keeps for a view or a materialized view in pg_class.reloptions: a view's security_invoker and security_barrier, and a materialized view's storage parameters such as fillfactor.
vulnerability
Package vulnerability matches a reviewed advisory snapshot against a read-only database inventory.
Package vulnerability matches a reviewed advisory snapshot against a read-only database inventory.
workflowimagepins
Package workflowimagepins inventories container images that GitHub Actions workflows actually start.
Package workflowimagepins inventories container images that GitHub Actions workflows actually start.
yamlvalue
Package yamlvalue holds the value types Ptah's YAML schema format reads its keys with: a scalar read as its text, a list written as a sequence or a comma-separated scalar, and a mapping that keeps the order its keys were written in.
Package yamlvalue holds the value types Ptah's YAML schema format reads its keys with: a scalar read as its text, a list written as a sequence or a comma-separated scalar, and a mapping that keeps the order its keys were written in.
yugabytecomparison
Package yugabytecomparison holds the rules YugabyteDB gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on YugabyteDB.
Package yugabytecomparison holds the rules YugabyteDB gives the shared schema comparison (schemacomparison.Rules): how an index definition reads on YugabyteDB.
migration
datadiff
Package datadiff computes row-level differences between the desired managed (reference/seed) data declared in Go sources and the rows currently stored in a database table.
Package datadiff computes row-level differences between the desired managed (reference/seed) data declared in Go sources and the rows currently stored in a database table.
dbtest
Package dbtest is a Ptah-native, declarative database test runner.
Package dbtest is a Ptah-native, declarative database test runner.
diffpolicy
Package diffpolicy provides a declarative policy that controls which destructive changes a planner emits.
Package diffpolicy provides a declarative policy that controls which destructive changes a planner emits.
generator
Package generator plans migrations from schema differences and publishes them as migration files: reversible timestamped up/down pairs, cumulative checkpoints in either directory layout, and empty skeletons for manual SQL.
Package generator plans migrations from schema differences and publishes them as migration files: reversible timestamped up/down pairs, cumulative checkpoints in either directory layout, and empty skeletons for manual SQL.
generator/example command
Command example demonstrates embedding ptah.run/migration/generator in a standalone program: it compares annotated Go entities against a live database, publishes the migration pair, and prints what was written.
Command example demonstrates embedding ptah.run/migration/generator in a standalone program: it compares annotated Go entities against a live database, publishes the migration pair, and prints what was written.
importer
Package importer converts a migration directory produced by another versioned-migration tool (golang-migrate, Goose, Flyway, Liquibase, dbmate) into Ptah's native NNNNNNNNNN_description.up.sql / .down.sql layout, preserving version order and history so a team can adopt Ptah without hand-rewriting its migration files.
Package importer converts a migration directory produced by another versioned-migration tool (golang-migrate, Goose, Flyway, Liquibase, dbmate) into Ptah's native NNNNNNNNNN_description.up.sql / .down.sql layout, preserving version order and history so a team can adopt Ptah without hand-rewriting its migration files.
internal/generatedschema
Package generatedschema provides reusable views over generated schema data.
Package generatedschema provides reusable views over generated schema data.
internal/identifiervalidation
Package identifiervalidation validates generated identifiers before schema comparison or migration planning.
Package identifiervalidation validates generated identifiers before schema comparison or migration planning.
internal/scratchdb
Package scratchdb provisions one disposable database per test case on a server the caller already named.
Package scratchdb provisions one disposable database per test case on a server the caller already named.
internal/scratchdb/isolators
Package isolators lists the engines that give a test case a database of its own in a way of their own, for migration/internal/scratchdb to look up by dialect.
Package isolators lists the engines that give a test case a database of its own in a way of their own, for migration/internal/scratchdb to look up by dialect.
internal/scratchdb/sqlitescratch
Package sqlitescratch gives a SQLite test case a database of its own: a file in a temporary directory nothing else opens.
Package sqlitescratch gives a SQLite test case a database of its own: a file in a temporary directory nothing else opens.
internal/shadowdb
Package shadowdb owns the disposable databases migration workflows replay into: the connection lifecycle, the claim that refuses a database holding a table and hands it back empty, the replay guard every replay into a claimed database runs through, the history a replay applies, and the reset that leaves the database holding the schema those migrations describe and nothing else.
Package shadowdb owns the disposable databases migration workflows replay into: the connection lifecycle, the claim that refuses a database holding a table and hands it back empty, the replay guard every replay into a claimed database runs through, the history a replay applies, and the reset that leaves the database holding the schema those migrations describe and nothing else.
lint
Package lint inspects migration files for production-unsafe patterns and emits findings named for their rule, in the spirit of sqlcheck and `atlas migrate lint` (issue #151).
Package lint inspects migration files for production-unsafe patterns and emits findings named for their rule, in the spirit of sqlcheck and `atlas migrate lint` (issue #151).
migrationfile
Package migrationfile is the migration file-layout toolkit: the names, directory formats, directives, and embedded sections a migration file is made of, with no database connection and no execution.
Package migrationfile is the migration file-layout toolkit: the names, directory formats, directives, and embedded sections a migration file is made of, with no database connection and no execution.
migrator
Package migrator provides database migration execution and management for the Ptah schema management system.
Package migrator provides database migration execution and management for the Ptah schema management system.
planner
Package planner provides migration planning and SQL generation for the Ptah schema management system.
Package planner provides migration planning and SQL generation for the Ptah schema management system.
risk
Package risk is the severity scale a Ptah finding is expressed on, together with the ordering a gate reads it by.
Package risk is the severity scale a Ptah finding is expressed on, together with the ordering a gate reads it by.
safety
Package safety classifies a schema diff into findings, each carrying a ptah.run/migration/risk.Severity.
Package safety classifies a schema diff into findings, each carrying a ptah.run/migration/risk.Severity.
schemadiff
Package schemadiff provides comprehensive schema comparison and difference analysis for the Ptah schema management system.
Package schemadiff provides comprehensive schema comparison and difference analysis for the Ptah schema management system.
schemadiff/internal/compare
Package compare contains concern-level schema diff comparators.
Package compare contains concern-level schema diff comparators.
seeder
Package seeder applies environment-scoped SQL seed files and records which files have already run.
Package seeder applies environment-scoped SQL seed files and records which files have already run.
shadow
Package shadow verifies migrations against a live disposable database before anything reaches the target.
Package shadow verifies migrations against a live disposable database before anything reaches the target.
provider-sdk module
Package sourceformats reads the output of an external schema program in each format ptah.run/core/schemasource accepts, with the bundled readers: YAML, SQL and HCL with the feature owners a caller selects, through the readers the native and compatibility binaries use.
Package sourceformats reads the output of an external schema program in each format ptah.run/core/schemasource accepts, with the bundled readers: YAML, SQL and HCL with the feature owners a caller selects, through the readers the native and compatibility binaries use.
sqlsyntax module
testkit module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL