Lightweight 0.1.0
Loading...
Searching...
No Matches
SqlInsertQueryBuilder Class Referencefinal

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
 
template<typename ColumnValue >
SqlInsertQueryBuilderSet (std::string_view columnName, ColumnValue const &value)
 
template<std::size_t N>
SqlInsertQueryBuilderSet (std::string_view columnName, char const (&value)[N])
 
SqlInsertQueryBuilderSet (std::string_view columnName, MFCStringLike auto const *value)
 
LIGHTWEIGHT_API std::string ToSql () const
 

Detailed Description

Query builder for building INSERT INTO ... queries.

See also
SqlQueryBuilder

Definition at line 16 of file Insert.hpp.

Constructor & Destructor Documentation

◆ SqlInsertQueryBuilder()

LIGHTWEIGHT_FORCE_INLINE SqlInsertQueryBuilder::SqlInsertQueryBuilder ( SqlQueryFormatter const &  formatter,
std::string  tableName,
std::vector< SqlVariant > *  inputBindings 
)
inlineexplicitnoexcept

Definition at line 45 of file Insert.hpp.

Member Function Documentation

◆ Set() [1/3]

template<typename ColumnValue >
SqlInsertQueryBuilder & SqlInsertQueryBuilder::Set ( std::string_view  columnName,
ColumnValue const &  value 
)

Definition at line 54 of file Insert.hpp.

◆ Set() [2/3]

template<std::size_t N>
SqlInsertQueryBuilder & SqlInsertQueryBuilder::Set ( std::string_view  columnName,
char const (&)  value[N] 
)
inline

Definition at line 96 of file Insert.hpp.

◆ Set() [3/3]

SqlInsertQueryBuilder & SqlInsertQueryBuilder::Set ( std::string_view  columnName,
MFCStringLike auto const *  value 
)
inline

Definition at line 101 of file Insert.hpp.

◆ ToSql()

std::string SqlInsertQueryBuilder::ToSql ( ) const
inline

Definition at line 106 of file Insert.hpp.


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