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
When to use
Requirements
Acknowledgements
Tutorial
Overview
Connection objects
Text queries and prepared statements
Rows and fields
Reading rows
Using rows and fields
Asynchronous functions and multi-threading
Character sets, collations and time zones
Text queries
Prepared statements
Resultsets
Reading rows
Resultsets becoming complete
Multi-function operations
Metadata
Fields
Field accessors
MySQL to C++ type mappings
Going async
Stream reads and writes
Proxy I/O objects
Protocol operations
Completion tokens
Default completion tokens
Cancellations and timeouts
SSL/TLS
SSL-enabled streams
When is the SSL handshake performed?
SSL negotiation
UNIX sockets and other stream types
Error handling and available overloads
Handshake parameters
Authentication
Connect with database
Connection encoding and collation
SSL/TLS
Buffer configuration
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
Building and running the tests
Reference

Last revised: November 16, 2022 at 14:22:31 GMT


Next