backends/mysql/blob.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
3 // MySQL backend copyright (C) 2006 Pawel Aleksander Fedorynski
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 
9 #define SOCI_MYSQL_SOURCE
10 #include "soci-mysql.h"
11 #include <ciso646>
12 
13 #ifdef _MSC_VER
14 #pragma warning(push)
15 #pragma warning(disable:4355 4702)
16 #endif
17 
18 using namespace soci;
19 using namespace soci::details;
20 
22  : session_(session)
23 {
24  throw soci_error("BLOBs are not supported.");
25 }
26 
28 {
29 }
30 
32 {
33  throw soci_error("BLOBs are not supported.");
34 }
35 
37  std::size_t /* offset */, char * /* buf */, std::size_t /* toRead */)
38 {
39  throw soci_error("BLOBs are not supported.");
40 }
41 
43  std::size_t /* offset */, char const * /* buf */,
44  std::size_t /* toWrite */)
45 {
46  throw soci_error("BLOBs are not supported.");
47 }
48 
50  char const * /* buf */, std::size_t /* toWrite */)
51 {
52  throw soci_error("BLOBs are not supported.");
53 }
54 
55 void mysql_blob_backend::trim(std::size_t /* newLen */)
56 {
57  throw soci_error("BLOBs are not supported.");
58 }
59 
60 #ifdef _MSC_VER
61 #pragma warning(pop)
62 #endif
virtual std::size_t write(std::size_t offset, char const *buf, std::size_t toWrite)
virtual void trim(std::size_t newLen)
virtual std::size_t read(std::size_t offset, char *buf, std::size_t toRead)
virtual std::size_t append(char const *buf, std::size_t toWrite)
virtual std::size_t get_len()
mysql_blob_backend(mysql_session_backend &session)


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40