Loadmill DB relay service

Loadmill provides a service that allows users to execute various queries directly to their DB in order to validate data.



To execute a query:

  1. Go to a relevant test flow within a Test Suite.

  2. Select "POST" as request Method, put URL - https://db-relay-service.loadmill.com/api/postgres

  3. Choose "application/json" as Content-type.

  4. Put the request body with the following structure:

body: {
connectionString: 'postgres://...',
query: 'SELECT NOW()'

See a request example below:

By running the request, you will get a response in JSON format.


Execute queries directly to MongoDB:


body: {
connectionString: 'mongodb://...',
collection: 'bios',
command: 'find',
query: { "awards.award": "Turing Award" }


Execute queries directly to Redis:


body: {
connectionString: "redis://...",
command:"get | hget | hgetall",
field: "any-field"

DB relay service static IPs:

Sometimes, executing queries to your env DB may require VPN. You can easily avoid this by whitelisting the DB relay service static IPs: [,] in your firewall.