package
0.7.0
Repository: https://github.com/stripe/pg-schema-diff.git
Documentation: pkg.go.dev

# Functions

DBSchemaSource returns a SchemaSource that returns a schema based on the provided queryable.
DDLSchemaSource returns a SchemaSource that returns a schema based on the provided DDL.
Generate generates a migration plan to migrate the database to the target schema Parameters: fromDB: The target database to generate the diff for.
deprecated: GeneratePlan generates a migration plan to migrate the database to the target schema.
WithDataPackNewTables configures the plan generation such that it packs the columns in the new tables to minimize padding.
WithDoNotValidatePlan disables plan validation, where the migration plan is tested against a temporary database instance.
No description provided by the author
No description provided by the author
No description provided by the author
WithLogger configures plan generation to use the provided logger instead of the default.
WithRespectColumnOrder configures the plan generation to respect any changes to the ordering of columns in existing tables.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrColumnOrderingChanged is returned when the ordering of columns changes and column ordering is not ignored.
No description provided by the author

# Structs

MigrationHazard represents a hazard that a statement poses to a database.
Plan represents a set of statements to be executed in order to migrate a database from schema A to schema B.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author