Expand description
This module includes several functions to help you test your code
that uses Rocket. It assumes you have defined a ROCKET_TEST_DATABASE_URL
environment variable (can be in a .env file if you have enabled the dotenv
feature).
Functions§
- clean_
db - init_
pool - init_
rocket - init_
rocket_ and_ clean_ tables - rocket_
connection_ without_ transaction - Returns a connection to the database (specified through the
ROCKET_TEST_DATABASE_URL) environment variable. The connection will directly hit the database as it is not wrapped in a transaction.