|
| | DeleteQuery (Table table, Where where=std::nullopt) |
| | Constructor for the DELETE query builder.
|
| |
| std::string | to_sql () const |
| | Generate the SQL for this DELETE query.
|
| |
| std::vector< std::string > | bind_params () const |
| | Get the bind parameters for this DELETE query.
|
| |
| template<ConditionExpr Condition> |
| auto | where (const Condition &cond) const |
| | Add a WHERE clause to the query.
|
| |
template<ColumnType Col, std::ranges::range Range>
requires std::convertible_to<std::ranges::range_value_t<Range>, std::string> |
| auto | where_in (const Col &column, const Range &values) const |
| | Set a condition for filtering the rows to delete using IN with values.
|
| |
template<TableType Table, typename Where = std::nullopt_t>
class relx::query::DeleteQuery< Table, Where >
Base DELETE query builder.
- Template Parameters
-
| Table | Table to delete from |
| Where | Optional where condition |
Definition at line 23 of file delete.hpp.
template<TableType Table, typename Where = std::nullopt_t>
template<ColumnType Col, std::ranges::range Range>
requires std::convertible_to<std::ranges::range_value_t<Range>, std::string>
Set a condition for filtering the rows to delete using IN with values.
- Template Parameters
-
| Col | The column type |
| Range | The range type for IN values |
- Parameters
-
| column | The column to check |
| values | The values to check against |
- Returns
- New DeleteQuery with the IN condition added
Definition at line 83 of file delete.hpp.