docs.rs failed to build kpostgres_fixture-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
kpostgres_fixture
This provides two main functions:
with_temporary_postgres
: Creates a temporary postgres instance using docker.with_temporary_database
: Creates a temporary DATABASE inside an existing postgres instance.
They both pass the parameters and TlsMode so that you can create a connection however you want.
This is useful for things like running migrations in a test database in an isolated environment.
The best example of usage is taken directly from my tests: