Lightweight 0.20261105.1
Loading...
Searching...
No Matches
Lightweight::SqlInsertDataPlan Struct Reference

Represents a SQL INSERT data plan for migrations. More...

#include <MigrationPlan.hpp>

Public Attributes

std::string schemaName
 The schema name of the table to insert into.
 
std::string tableName
 The name of the table to insert into.
 
std::vector< std::pair< std::string, SqlVariant > > columns
 The columns and their values to insert.
 
std::vector< std::string > keyColumns
 Key columns that make the insert conditional, empty for a plain insert.
 

Detailed Description

Represents a SQL INSERT data plan for migrations.

This structure represents an INSERT statement for a migration plan.

Definition at line 437 of file MigrationPlan.hpp.

Member Data Documentation

◆ schemaName

std::string Lightweight::SqlInsertDataPlan::schemaName

The schema name of the table to insert into.

Definition at line 440 of file MigrationPlan.hpp.

◆ tableName

std::string Lightweight::SqlInsertDataPlan::tableName

The name of the table to insert into.

Definition at line 443 of file MigrationPlan.hpp.

◆ columns

std::vector<std::pair<std::string, SqlVariant> > Lightweight::SqlInsertDataPlan::columns

The columns and their values to insert.

Definition at line 446 of file MigrationPlan.hpp.

◆ keyColumns

std::vector<std::string> Lightweight::SqlInsertDataPlan::keyColumns

Key columns that make the insert conditional, empty for a plain insert.

When non-empty, the row is inserted only if no row with the same values in these columns exists yet (INSERT ... SELECT ... WHERE NOT EXISTS (...)). Each key column must be one of columns and must not hold NULL; rendering throws otherwise.

Definition at line 453 of file MigrationPlan.hpp.


The documentation for this struct was generated from the following file: