Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
mysql
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
21
mysql_blob_backend::mysql_blob_backend
(
mysql_session_backend
&
session
)
22
: session_(session)
23
{
24
throw
soci_error
(
"BLOBs are not supported."
);
25
}
26
27
mysql_blob_backend::~mysql_blob_backend
()
28
{
29
}
30
31
std::size_t
mysql_blob_backend::get_len
()
32
{
33
throw
soci_error
(
"BLOBs are not supported."
);
34
}
35
36
std::size_t
mysql_blob_backend::read
(
37
std::size_t
/* offset */
,
char
*
/* buf */
, std::size_t
/* toRead */
)
38
{
39
throw
soci_error
(
"BLOBs are not supported."
);
40
}
41
42
std::size_t
mysql_blob_backend::write
(
43
std::size_t
/* offset */
,
char
const
*
/* buf */
,
44
std::size_t
/* toWrite */
)
45
{
46
throw
soci_error
(
"BLOBs are not supported."
);
47
}
48
49
std::size_t
mysql_blob_backend::append
(
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
soci::mysql_blob_backend::write
virtual std::size_t write(std::size_t offset, char const *buf, std::size_t toWrite)
Definition:
backends/mysql/blob.cpp:42
soci::details
Definition:
db2/common.h:15
soci-mysql.h
soci::mysql_blob_backend::trim
virtual void trim(std::size_t newLen)
Definition:
backends/mysql/blob.cpp:55
soci::mysql_blob_backend::read
virtual std::size_t read(std::size_t offset, char *buf, std::size_t toRead)
Definition:
backends/mysql/blob.cpp:36
soci::mysql_blob_backend::append
virtual std::size_t append(char const *buf, std::size_t toWrite)
Definition:
backends/mysql/blob.cpp:49
soci::soci_error
Definition:
core/error.h:19
soci::session
Definition:
session.h:40
soci::mysql_blob_backend::get_len
virtual std::size_t get_len()
Definition:
backends/mysql/blob.cpp:31
soci::mysql_blob_backend::~mysql_blob_backend
~mysql_blob_backend()
Definition:
backends/mysql/blob.cpp:27
soci::mysql_blob_backend::mysql_blob_backend
mysql_blob_backend(mysql_session_backend &session)
Definition:
backends/mysql/blob.cpp:21
soci::mysql_session_backend
Definition:
soci-mysql.h:231
soci
Definition:
db2/common.h:15
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