ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
database_schema_updater.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3
4#pragma once
5
6#include <ocpp/common/database/database_connection.hpp>
7#include <ocpp/common/support_older_cpp_versions.hpp>
8
9namespace ocpp::common {
10
12private:
14
15public:
18 explicit DatabaseSchemaUpdater(DatabaseConnectionInterface* database) noexcept;
19
25 bool apply_migration_files(const fs::path& migration_file_directory, uint32_t target_schema_version);
26};
27
28} // namespace ocpp::common
Definition: database_connection.hpp:29
Definition: database_schema_updater.hpp:11
DatabaseSchemaUpdater(DatabaseConnectionInterface *database) noexcept
Class that can apply migration files to a database to update the schema.
Definition: database_schema_updater.cpp:139
bool apply_migration_files(const fs::path &migration_file_directory, uint32_t target_schema_version)
Apply migration files to a database to update the schema.
Definition: database_schema_updater.cpp:142