#include <MigrationRunner.hpp>
|
| static concurrency::Awaitable< MigrationResult > | run (std::shared_ptr< DbClient > db, std::string migrations_dir) |
| | Applies the pending migrations in migrations_dir over a connected client, with no HTTP involved: for start-up code, a migrate command or tests.
|
| |
| static concurrency::Task | run_migrations (std::shared_ptr< DbClient > db, std::string migrations_dir, std::shared_ptr< http::ResponseWriter > res) |
| | run(), answered over HTTP: 200 with the summary, or a 500 whose details go to the log only.
|
| |
◆ run()
template<typename DbClient >
Applies the pending migrations in migrations_dir over a connected client, with no HTTP involved: for start-up code, a migrate command or tests.
A missing directory is not an error (nothing to apply).
◆ run_migrations()
template<typename DbClient >
run(), answered over HTTP: 200 with the summary, or a 500 whose details go to the log only.
◆ kAdvisoryLockKey
template<typename DbClient >
The documentation for this class was generated from the following file: