Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext
pipeline_request::add_prepare_statement

Adds a prepare statement stage.

Synopsis
pipeline_request&
add_prepare_statement(
    string_view stmt_sql);
Description

Creates a stage that prepares a statement server-side. The resulting stage has effects equivalent to conn.prepare_statement(stmt_sql).

Exception safety

Strong guarantee. Memory allocations may throw.

Object lifetimes

stmt_sql is copied into the request and need not be kept alive after this function returns.


PrevUpHomeNext