ORM C++
Loading...
Searching...
No Matches
orm::db::binding::Binary16Buffer Class Reference
module orm

Public Member Functions

 Binary16Buffer (soci::session &session)
auto set (const std::optional< orm::Uuid > &value) -> void
auto exchangeUse (soci::statement &statement, const std::string &name) -> void
auto exchangeInto (soci::statement &statement) -> void
auto indicator () const noexcept -> soci::indicator
auto read (BackendType backend, std::string_view sqliteStorageClass={}) -> std::optional< orm::Uuid >

Detailed Description

A session-bound, stable exchange buffer for one Binary16 parameter or result. The buffer and its indicator must outlive the statement using them. SQLite results additionally require typeof(value) from the same row, because SOCI's blob exchange converts other storage classes before returning the bytes.

Definition at line 33 of file result_storage.cppm.

Constructor & Destructor Documentation

◆ Binary16Buffer()

orm::db::binding::Binary16Buffer::Binary16Buffer ( soci::session & session)
inlineexplicit

Definition at line 39 of file result_storage.cppm.

Member Function Documentation

◆ exchangeInto()

auto orm::db::binding::Binary16Buffer::exchangeInto ( soci::statement & statement) -> void

◆ exchangeUse()

auto orm::db::binding::Binary16Buffer::exchangeUse ( soci::statement & statement,
const std::string & name ) -> void

◆ indicator()

auto orm::db::binding::Binary16Buffer::indicator ( ) const -> soci::indicator
inlinenodiscardnoexcept

Definition at line 58 of file result_storage.cppm.

◆ read()

auto orm::db::binding::Binary16Buffer::read ( BackendType backend,
std::string_view sqliteStorageClass = {} ) -> std::optional< orm::Uuid >
inlinenodiscard

Definition at line 63 of file result_storage.cppm.

◆ set()

auto orm::db::binding::Binary16Buffer::set ( const std::optional< orm::Uuid > & value) -> void
inline

Definition at line 41 of file result_storage.cppm.


The documentation for this class was generated from the following file: