Pyrseas

Pyrseas provides utilities to compare the schema of a Postgres database against another, either a previously stored version or from a different database, and to synchronize the schemas.

Features

  • Outputs a YAML/JSON description of a PostgreSQL database’s tables and other objects (metadata), suitable for storing in a version control repository
  • Generates SQL statements to modify a database so that it willl match an input YAML/JSON specification
  • Generates an augmented YAML description of a PostgreSQL database from its catalogs and an augmentation specification.

Requirements

API Reference

Currently, the only external APIs are the classes DbConnection and Database and the methods to_map() and diff_map() of the latter. Other classes and methods are documented mainly for developer use.

Indices and tables