Add a query, it's value definitions, and response to the mock database.
An SQL query statement.
Contains the types of each value used in the query.
The simulated expected response of the given query.
Get a simulated pg.Client or pg.Pool connection.
Remove a query from the mock database.
An SQL statement added with the add method.
true if removal successful, false otherwise.
Flushes the mock database.
Set the simulated network latency (default 20 ms).
Return a string representation of the mock database.
Generated using TypeDoc
An NPM module for mocking a connection to a PostgreSQL database.
Jason Favrod mail@jasonfavrod.com