|
Lightweight 0.20260303.0
|
Query builder for building INSERT INTO ... queries. More...
#include <Insert.hpp>
Public Member Functions | |
| SqlInsertQueryBuilder (SqlQueryFormatter const &formatter, std::string tableName, std::vector< SqlVariant > *inputBindings) noexcept | |
| Constructs an INSERT query builder. | |
| template<typename ColumnValue > | |
| SqlInsertQueryBuilder & | Set (std::string_view columnName, ColumnValue const &value) |
| Adds a single column to the INSERT query. | |
| template<std::size_t N> | |
| SqlInsertQueryBuilder & | Set (std::string_view columnName, char const (&value)[N]) |
| Adds a single column to the INSERT query with the value being a string literal. | |
| std::string | ToSql () const |
| Finalizes building the query as INSERT INTO ... query. | |
Query builder for building INSERT INTO ... queries.
Definition at line 19 of file Insert.hpp.
|
inlineexplicitnoexcept |
Constructs an INSERT query builder.
Definition at line 46 of file Insert.hpp.
| SqlInsertQueryBuilder & Lightweight::SqlInsertQueryBuilder::Set | ( | std::string_view | columnName, |
| ColumnValue const & | value | ||
| ) |
Adds a single column to the INSERT query.
Definition at line 57 of file Insert.hpp.
References Lightweight::SqlQueryFormatter::StringLiteral().
Referenced by Set().
|
inline |
Adds a single column to the INSERT query with the value being a string literal.
Definition at line 99 of file Insert.hpp.
References Set().
|
inline |
Finalizes building the query as INSERT INTO ... query.
Definition at line 104 of file Insert.hpp.
References Lightweight::SqlQueryFormatter::Insert().