43 const QSqlDatabase DB_;
46 const QString InsertSuffix_;
50 , InsertSuffix_ {
" INTO " + data.
Table_ +
51 " (" + data.
Fields_.join (
", ") +
") VALUES (" +
58 auto& query = Queries_ [action.
Selector_.index ()];
61 query = std::make_shared<QSqlQuery> (DB_);
62 query->prepare (GetInsertPrefix (action) + InsertSuffix_);
70 [] (InsertAction::DefaultTag) { return
"INSERT"; },
71 [] (InsertAction::IgnoreTag) { return
"INSERT OR IGNORE"; },
82 inline static const QString
Binary {
"BLOB" };
85 inline static const QString
LimitNone {
"-1" };
89 return std::make_unique<InsertQueryBuilder> (db, data);