Skip to content

v0.11.0

Choose a tag to compare

@marcelocantos marcelocantos released this 01 Mar 11:42
· 18 commits to master since this release

What's new

Go Example test functions

Added 9 runnable Example* test functions covering the complete Go API:

  • ExampleParse — parsing DDL into a Schema
  • ExampleExtract — extracting schema from a live database
  • ExampleDiff — comparing schemas and viewing operations
  • ExampleApply — running a migration end-to-end
  • ExampleApply_destructive — destructive guard and AllowDestructive
  • ExampleMigrationVersion — version tracking after migration
  • ExampleDetectRedundantIndexes — prefix-duplicate index warnings
  • ExampleDiff_breakingChange — BreakingChangeError on nullable→NOT NULL
  • ExampleToJSON — JSON serialization round-trip

These examples serve as both documentation and executable tests, and close the last STABILITY.md gap before 1.0.

Full changelog: v0.10.0...v0.11.0