Boost C++ Libraries

Next

Chapter 1. Boost.Mysql

Ruben Perez

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
Motivation
Requirements
Acknowledgements
Tutorial
MySQL values
Conversions
A note on string values
Relational operators
Text queries
Prepared statements
Resultsets
Rows
Reading rows
Resultsets becoming complete
Metadata
When does the server send the rows?
Going async
Completion tokens
Default completion tokens
Cancellations and timeouts
Sequencing of operations
SSL/TLS
SSL-enabled streams
When is the SSL handshake performed?
SSL negotiation
UNIX sockets and other stream types
Error handling and available overloads
Connection parameters
Authentication
Connect with database
Connection encoding and collation
SSL/TLS
Reconnecting a MySQL connection
Examples
Setup
Text query, synchronous
Prepared statements
Metadata
UNIX sockets
Text query, async with callbacks
Text query, async with futures
Text query, async with Boost.Coroutine coroutines
Text query, async with C++20 coroutines
Default completion tokens
Timeouts
Setting SSL options
MySQL to C++ mapping reference
Building and running the tests
Reference

Last revised: March 30, 2022 at 13:56:53 GMT


Next