userver: storages::odbc::BulkParameterStore Class Reference
Loading...
Searching...
No Matches
storages::odbc::BulkParameterStore Class Referencefinal

#include </data/code/userver/odbc/include/userver/storages/odbc/bulk.hpp>

Detailed Description

Owning, ordered rows of parameters for ODBC bulk DML.

The first row fixes the column count and every later row must match it. Columns must also have one normalized type in every row. Use an empty std::optional<T> for SQL NULL; raw nullptr and std::nullopt are untyped and are rejected by bulk preflight.

Definition at line 42 of file bulk.hpp.

Public Member Functions

 BulkParameterStore (const BulkParameterStore &)=delete
 BulkParameterStore (BulkParameterStore &&) noexcept=default
BulkParameterStore & operator= (const BulkParameterStore &)=delete
BulkParameterStore & operator= (BulkParameterStore &&) noexcept=default
template<typename... Args>
requires ((impl::kIsParameterArgument<Args> && ...))
BulkParameterStore & PushBackRow (const Args &... args)
 Append a row copied from values accepted by ParameterStore.
BulkParameterStore & PushBackRow (ParameterStore &&row)
 Append a row, transferring its owned parameter values.
bool IsEmpty () const noexcept
std::size_t RowsCount () const noexcept
std::size_t ColumnsCount () const noexcept

Member Function Documentation

◆ ColumnsCount()

std::size_t storages::odbc::BulkParameterStore::ColumnsCount ( ) const
inlinenoexcept

Definition at line 63 of file bulk.hpp.

◆ IsEmpty()

bool storages::odbc::BulkParameterStore::IsEmpty ( ) const
inlinenoexcept

Definition at line 61 of file bulk.hpp.

◆ PushBackRow()

template<typename... Args>
requires ((impl::kIsParameterArgument<Args> && ...))
BulkParameterStore & storages::odbc::BulkParameterStore::PushBackRow ( const Args &... args)
inline

Append a row copied from values accepted by ParameterStore.

Definition at line 53 of file bulk.hpp.

◆ RowsCount()

std::size_t storages::odbc::BulkParameterStore::RowsCount ( ) const
inlinenoexcept

Definition at line 62 of file bulk.hpp.

◆ Cluster

friend class Cluster
friend

Definition at line 66 of file bulk.hpp.

◆ Transaction

friend class Transaction
friend

Definition at line 67 of file bulk.hpp.


The documentation for this class was generated from the following file:
  • /data/code/userver/odbc/include/userver/storages/odbc/bulk.hpp