Lightweight 0.20260303.0
Loading...
Searching...
No Matches
Lightweight::SqlMigrationDeleteBuilder Class Referencefinal

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

#include <Migrate.hpp>

Public Member Functions

 SqlMigrationDeleteBuilder (SqlDeleteDataPlan &plan)
 Constructs a migration DELETE builder.
 
template<typename T >
SqlMigrationDeleteBuilderWhere (std::string columnName, std::string op, T const &value)
 Adds a WHERE condition to the DELETE.
 
SqlMigrationDeleteBuilderWhereExpression (std::string expression)
 Pre-rendered WHERE-clause body. See SqlMigrationUpdateBuilder::WhereExpression.
 

Detailed Description

Query builder for building DELETE queries in migrations.

See also
SqlMigrationQueryBuilder

Definition at line 436 of file Migrate.hpp.

Constructor & Destructor Documentation

◆ SqlMigrationDeleteBuilder()

Lightweight::SqlMigrationDeleteBuilder::SqlMigrationDeleteBuilder ( SqlDeleteDataPlan plan)
inlineexplicit

Constructs a migration DELETE builder.

Definition at line 440 of file Migrate.hpp.

Member Function Documentation

◆ Where()

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

Adds a WHERE condition to the DELETE.

Definition at line 447 of file Migrate.hpp.

◆ WhereExpression()

SqlMigrationDeleteBuilder & Lightweight::SqlMigrationDeleteBuilder::WhereExpression ( std::string  expression)
inline

Pre-rendered WHERE-clause body. See SqlMigrationUpdateBuilder::WhereExpression.

Definition at line 456 of file Migrate.hpp.


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