QSqlQuery wrapper for INSERT INTO table query execution.
More...
#include <EasyQtSql_InsertQuery.h>
QSqlQuery wrapper for INSERT INTO table query execution.
◆ InsertQuery()
InsertQuery::InsertQuery |
( |
const QString & |
table, |
|
|
const QSqlDatabase & |
db |
|
) |
| |
|
inline |
◆ exec()
◆ values() [1/2]
Adds list of insert-values to INSERT INTO table(...) VALUES ... query.
The method supports variable count of QVariant parameters. Parameters are bound with QSqlQuery::addBindValue.
.values(1, 2, 3, "a")
.values(4, 5, 6, "b")
.values(7, 8, 9, "c")
.exec();
◆ values() [2/2]
template<typename... Rest>
InsertQuery& InsertQuery::values |
( |
const QVariant & |
first, |
|
|
const Rest &... |
rest |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: