storj/private/dbutil
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
..
cockroachutil private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
dbschema satellite/satellitedb: check indexes on migration 2020-03-13 10:45:22 +00:00
pgtest private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
pgutil private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
sqliteutil private/dbutil/txutil: create new transactions for retries 2020-02-01 18:34:28 +00:00
tempdb storage/cockroachkv: add ctx argument 2020-01-13 15:57:47 +02:00
txutil private/dbutil/txutil: fix logic in transaction retries 2020-04-09 13:58:53 +00:00
utccheck storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
dbimplementation.go satellite/satellitedb/dbx: add cockroach driver type 2020-01-06 18:01:03 +00:00
defaults.go private/dbutil: add database name to configure as a tag 2020-03-26 16:50:15 +00:00
nulltime.go mod: update sqlite module to v2.0.2 2020-01-08 21:21:15 +02:00
split.go private/dbutil: register "cockroach" as sql.DB driver 2019-12-16 19:10:00 +00:00
tempdbtype.go private/tagsql,storage: fixes to context cancellation 2020-01-20 15:44:39 +02:00