PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
migration_runner.h File Reference

Database schema migration runner. More...

#include "migration_record.h"
#include <kcenon/common/patterns/result.h>
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for migration_runner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::pacs::storage::migration_runner
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::storage
 

Typedefs

using kcenon::pacs::storage::migration_function = std::function<VoidResult(sqlite3* db)>
 Function type for migration implementations (SQLite)
 

Detailed Description

Database schema migration runner.

This file provides the migration_runner class for managing database schema evolution through versioned migrations.

When compiled with PACS_WITH_DATABASE_SYSTEM, uses pacs_database_adapter for consistent database abstraction. Otherwise, uses direct SQLite prepared statements.

See also
SRS-STOR-003
Issue #643 - Update migration_runner to use pacs_database_adapter
Author
kcenon
Since
1.0.0

Definition in file migration_runner.h.