userver: userver/storages/postgres/io/bytea.hpp File Reference
Loading...
Searching...
No Matches
bytea.hpp File Reference

Detailed Description

storages::postgres::Bytea I/O support

Definition in file bytea.hpp.

Go to the source code of this file.

#include <string>
#include <string_view>
#include <vector>
#include <userver/storages/postgres/exceptions.hpp>
#include <userver/storages/postgres/io/buffer_io.hpp>
#include <userver/storages/postgres/io/buffer_io_base.hpp>
#include <userver/storages/postgres/io/type_mapping.hpp>
+ Include dependency graph for bytea.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  storages::postgres::io::traits::IsByteaCompatible< T >
 
struct  storages::postgres::io::traits::IsByteaCompatible< std::string >
 
struct  storages::postgres::io::traits::IsByteaCompatible< std::string_view >
 
struct  storages::postgres::io::traits::IsByteaCompatible< std::vector< char, VectorArgs... > >
 
struct  storages::postgres::io::traits::IsByteaCompatible< std::vector< unsigned char, VectorArgs... > >
 
struct  storages::postgres::ByteaWrapper< ByteContainer >
 Wrapper for binary data container. More...
 
struct  storages::postgres::io::BufferParser< postgres::ByteaWrapper< ByteContainer >, traits::EnableIfByteaCompatible< std::decay_t< ByteContainer > > >
 
struct  storages::postgres::io::BufferFormatter< postgres::ByteaWrapper< ByteContainer >, traits::EnableIfByteaCompatible< std::decay_t< ByteContainer > > >
 
struct  storages::postgres::io::CppToSystemPg< postgres::ByteaWrapper< ByteContainer > >
 

Namespaces

namespace  storages
 Components, clients and helpers for different databases and storages.
 
namespace  storages::postgres
 Top namespace for uPg driver.
 
namespace  storages::postgres::io
 uPg input-output.
 
namespace  storages::postgres::io::traits
 uPg input-output traits.
 

Typedefs

template<typename T >
using storages::postgres::io::traits::EnableIfByteaCompatible = std::enable_if_t<IsByteaCompatible<T>{}>
 

Functions

template<typename ByteContainer >
detail::ByteaRefWrapper< const ByteContainer & > storages::postgres::Bytea (const ByteContainer &bytes)
 Helper function for writing binary data.
 
template<typename ByteContainer >
detail::ByteaRefWrapper< ByteContainer & > storages::postgres::Bytea (ByteContainer &bytes)
 Helper function for reading binary data.
 

Variables

template<typename T >
constexpr bool storages::postgres::io::traits::kIsByteaCompatible = IsByteaCompatible<T>::value