crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Data::UpdateFields Struct Reference

Structure for updating multiple values of the same type in a table. More...

#include <Data.hpp>

Public Attributes

std::string table
 The name of the table. More...
 
std::vector< std::pair< std::string, Value > > columns_values
 Vector containing the names of the columns to be updated and the new values to be set. More...
 
Type type {_unknown}
 The data type of the values. More...
 
std::string condition
 The condition to be added to the SQL query updating the value. More...
 

Detailed Description

Structure for updating multiple values of the same type in a table.

Member Data Documentation

◆ columns_values

std::vector<std::pair<std::string, Value> > crawlservpp::Data::UpdateFields::columns_values

Vector containing the names of the columns to be updated and the new values to be set.

The old values will be overwritten.

Referenced by crawlservpp::Main::Database::updateCustomData().

◆ condition

std::string crawlservpp::Data::UpdateFields::condition

The condition to be added to the SQL query updating the value.

Referenced by crawlservpp::Main::Database::updateCustomData().

◆ table

std::string crawlservpp::Data::UpdateFields::table

The name of the table.

Referenced by crawlservpp::Main::Database::updateCustomData().

◆ type

Type crawlservpp::Data::UpdateFields::type {_unknown}

The data type of the values.

Referenced by crawlservpp::Main::Database::updateCustomData().


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