2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-01-29 19:52:11 +00:00

Field view

This commit is contained in:
Ruben Perez
2022-08-08 17:04:50 +02:00
parent 780b0d19e4
commit 50cd20bb7d
73 changed files with 1087 additions and 1219 deletions

View File

@@ -33,9 +33,9 @@
void print_employee(const boost::mysql::row& employee)
{
std::cout << "Employee '"
<< employee.values()[0] << " " // first_name (type boost::string_view)
<< employee.values()[1] << "' earns " // last_name (type boost::string_view)
<< employee.values()[2] << " dollars yearly\n"; // salary (type double)
<< employee.fields()[0] << " " // first_name (type boost::string_view)
<< employee.fields()[1] << "' earns " // last_name (type boost::string_view)
<< employee.fields()[2] << " dollars yearly\n"; // salary (type double)
}
void main_impl(int argc, char** argv)