SOCI Logo Get SOCI at SourceForge.net. Fast, secure and Free Open Source software downloads

blob.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
00003 // MySQL backend copyright (C) 2006 Pawel Aleksander Fedorynski
00004 // Distributed under the Boost Software License, Version 1.0.
00005 // (See accompanying file LICENSE_1_0.txt or copy at
00006 // http://www.boost.org/LICENSE_1_0.txt)
00007 //
00008 
00009 #define SOCI_MYSQL_SOURCE
00010 #include "soci-mysql.h"
00011 #include <ciso646>
00012 
00013 #ifdef _MSC_VER
00014 #pragma warning(disable:4355)
00015 #endif
00016 
00017 using namespace soci;
00018 using namespace soci::details;
00019 
00020 
00021 mysql_blob_backend::mysql_blob_backend(mysql_session_backend &session)
00022     : session_(session)
00023 {
00024     throw soci_error("BLOBs are not supported.");
00025 }
00026 
00027 mysql_blob_backend::~mysql_blob_backend()
00028 {
00029     throw soci_error("BLOBs are not supported.");
00030 }
00031 
00032 std::size_t mysql_blob_backend::get_len()
00033 {
00034     throw soci_error("BLOBs are not supported.");
00035 }
00036 
00037 std::size_t mysql_blob_backend::read(
00038     std::size_t /* offset */, char * /* buf */, std::size_t /* toRead */)
00039 {
00040     throw soci_error("BLOBs are not supported.");
00041 }
00042 
00043 std::size_t mysql_blob_backend::write(
00044     std::size_t /* offset */, char const * /* buf */,
00045     std::size_t /* toWrite */)
00046 {
00047     throw soci_error("BLOBs are not supported.");
00048 }
00049 
00050 std::size_t mysql_blob_backend::append(
00051     char const * /* buf */, std::size_t /* toWrite */)
00052 {
00053     throw soci_error("BLOBs are not supported.");
00054 }
00055 
00056 void mysql_blob_backend::trim(std::size_t /* newLen */)
00057 {
00058     throw soci_error("BLOBs are not supported.");
00059 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
SourceForge Logo

Generated on Sun Oct 3 2010 17:42:16 for EXTRAS-SOCI by Doxygen 1.7.1