storj/private/dbutil/pgutil
Egon Elbre 85c45cd56f private/dbutil/pgtest: support multiple databases for testing
Currently Cockroach isn't performant for concurrent database setup and
tear-down. Instead of a single instance allow setting multiple potential
connection strings and let the tests pick one connection string
randomly.

This improves test duration by ~10 minutes.

While we are at significantly changing how pgtest works, introduce
helper PickPostgres and PickCockroach for selecting the database to
reduce code duplications in multiple places.

Change-Id: I8ad171d5c4c8a4fc081ec2ae9bdd0cc948a80619
2020-04-28 21:55:49 +03:00
..
data.go private/dbutil: remove basic Query 2020-01-19 14:39:16 +02:00
db.go private/dbutil: add database name to configure as a tag 2020-03-26 16:50:15 +00:00
openunique_test.go private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
query_test.go private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
query.go satellite/satellitedb: check indexes on migration 2020-03-13 10:45:22 +00:00
schema.go satellite: use tagsql 2020-01-19 14:39:16 +02:00