relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
core.hpp File Reference
#include "../schema/column.hpp"
#include "../schema/core.hpp"
#include "../schema/fixed_string.hpp"
#include "../schema/table.hpp"
#include <expected>
#include <memory>
#include <string>
#include <type_traits>
#include <vector>
#include <boost/pfr.hpp>

Go to the source code of this file.

Classes

struct  relx::migrations::MigrationError
 Error information for migration operations. More...
 
class  relx::migrations::MigrationOperation
 Base class for migration operations. More...
 
class  relx::migrations::CreateTableOperation< Table >
 CREATE TABLE migration operation. More...
 
class  relx::migrations::DropTableOperation< Table >
 DROP TABLE migration operation. More...
 
class  relx::migrations::AddColumnOperation< Column >
 ADD COLUMN migration operation. More...
 
class  relx::migrations::DropColumnOperation< Column >
 DROP COLUMN migration operation. More...
 
class  relx::migrations::RenameColumnOperation
 RENAME COLUMN migration operation. More...
 
class  relx::migrations::RenameConstraintOperation
 RENAME CONSTRAINT migration operation. More...
 
class  relx::migrations::UpdateDataOperation
 UPDATE DATA migration operation for column transformations. More...
 
class  relx::migrations::Migration
 Container for migration operations. More...
 

Namespaces

namespace  relx
 relx database connection
 
namespace  relx::migrations
 

Typedefs

template<typename T >
using relx::migrations::MigrationResult = std::expected< T, MigrationError >
 Result type for migration operations.
 

Enumerations

enum class  relx::migrations::MigrationErrorType {
  relx::migrations::INVALID_TABLE_STRUCTURE , relx::migrations::UNSUPPORTED_OPERATION , relx::migrations::COLUMN_NOT_FOUND , relx::migrations::CONSTRAINT_NOT_FOUND ,
  relx::migrations::INCOMPATIBLE_TYPES , relx::migrations::MIGRATION_GENERATION_FAILED , relx::migrations::SQL_GENERATION_FAILED , relx::migrations::VALIDATION_FAILED
}
 Error types for migration operations. More...
 
enum class  relx::migrations::OperationType {
  relx::migrations::CREATE_TABLE , relx::migrations::DROP_TABLE , relx::migrations::ADD_COLUMN , relx::migrations::DROP_COLUMN ,
  relx::migrations::RENAME_COLUMN , relx::migrations::MODIFY_COLUMN , relx::migrations::UPDATE_DATA , relx::migrations::ADD_CONSTRAINT ,
  relx::migrations::DROP_CONSTRAINT , relx::migrations::RENAME_CONSTRAINT , relx::migrations::ADD_INDEX , relx::migrations::DROP_INDEX
}
 Enum for migration operation types. More...