libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
pqxx::basic_lostream< CHAR, TRAITS > Class Template Reference

Stream that reads and writes a large object. More...

Inheritance diagram for pqxx::basic_lostream< CHAR, TRAITS >:

Public Types

using char_type = CHAR
using traits_type = TRAITS
using int_type = typename traits_type::int_type
using pos_type = typename traits_type::pos_type
using off_type = typename traits_type::off_type

Public Member Functions

 basic_lostream (dbtransaction &t, largeobject o, largeobject::size_type buf_size=512)
 Create a basic_lostream.
 basic_lostream (dbtransaction &t, oid o, largeobject::size_type buf_size=512)
 Create a basic_lostream.

Detailed Description

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
class pqxx::basic_lostream< CHAR, TRAITS >

Stream that reads and writes a large object.

Deprecated
Access large objects directly using the blob class.

This worked like a std::iostream, but to read data from, or write data to, a large object. It supported all formatting and streaming operations of std::iostream.

This functionality was considered too fragile and complex, so it has been replaced with a single, much simpler class.

Constructor & Destructor Documentation

◆ basic_lostream() [1/2]

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
pqxx::basic_lostream< CHAR, TRAITS >::basic_lostream ( dbtransaction & t,
largeobject o,
largeobject::size_type buf_size = 512 )
inline

Create a basic_lostream.

Parameters
tTransaction in which this stream is to exist.
oLarge object to access.
buf_sizeSize of buffer to use internally (optional).

◆ basic_lostream() [2/2]

template<typename CHAR = char, typename TRAITS = std::char_traits<CHAR>>
pqxx::basic_lostream< CHAR, TRAITS >::basic_lostream ( dbtransaction & t,
oid o,
largeobject::size_type buf_size = 512 )
inline

Create a basic_lostream.

Parameters
tTransaction in which this stream is to exist.
oLarge object to access.
buf_sizeSize of buffer to use internally (optional).

The documentation for this class was generated from the following file:
  • /home/iurt/rpmbuild/BUILD/libpqxx-7.10.0-build/libpqxx-7.10.0/build/include/pqxx/largeobject.hxx