postgresfixture 0.2.3

Easily create and manage PostgreSQL clusters on demand for testing and development.
Documentation

rust-postgresfixture

A library and command-line tool for creating short-lived PostgreSQL clusters and databases in Rust.

It's based on the Python postgresfixture library which saw heavy use in MAAS. That was (and is) a useful tool when experimenting with PostgreSQL, or to bring up a cluster to run MAAS in development, but it came into its own in MAAS's test suites. It was one of the cornerstones to my efforts to make MAAS's test suites faster.

This started out as a straightforward port, but it's starting to deviate from the design of its Python counterpart. I'm not sure exactly where it will end up yet, but it will at least support the same use cases, albeit in its own way.

Getting Started

This code is alpha and is some way from feature parity with its Python ancestor. If you feel the urge to hack on this code, here's how to get started:

Running the tests

After installing the source (see above) run tests with: cargo test.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.