Lightweight 0.20251202.0
Loading...
Searching...
No Matches
Lightweight::SqlMigrationUpdateBuilder Class Referencefinal

Query builder for building UPDATE queries in migrations. More...

#include <Migrate.hpp>

Public Member Functions

 SqlMigrationUpdateBuilder (SqlUpdateDataPlan &plan)
 
template<typename T >
SqlMigrationUpdateBuilderSet (std::string columnName, T const &value)
 Sets a column value for the UPDATE.
 
template<typename T >
SqlMigrationUpdateBuilderWhere (std::string columnName, std::string op, T const &value)
 Adds a WHERE condition to the UPDATE.
 

Detailed Description

Query builder for building UPDATE queries in migrations.

See also
SqlMigrationQueryBuilder

Definition at line 371 of file Migrate.hpp.

Constructor & Destructor Documentation

◆ SqlMigrationUpdateBuilder()

Lightweight::SqlMigrationUpdateBuilder::SqlMigrationUpdateBuilder ( SqlUpdateDataPlan plan)
inlineexplicit

Definition at line 374 of file Migrate.hpp.

Member Function Documentation

◆ Set()

template<typename T >
SqlMigrationUpdateBuilder & Lightweight::SqlMigrationUpdateBuilder::Set ( std::string  columnName,
T const &  value 
)
inline

Sets a column value for the UPDATE.

Definition at line 381 of file Migrate.hpp.

◆ Where()

template<typename T >
SqlMigrationUpdateBuilder & Lightweight::SqlMigrationUpdateBuilder::Where ( std::string  columnName,
std::string  op,
T const &  value 
)
inline

Adds a WHERE condition to the UPDATE.

Definition at line 389 of file Migrate.hpp.


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