File indexing completed on 2025-02-23 05:15:16

0001 //
0002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
0003 // Distributed under the Boost Software License, Version 1.0.
0004 // (See accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #define SOCI_EMPTY_SOURCE
0009 #include "soci/empty/soci-empty.h"
0010 
0011 #ifdef _MSC_VER
0012 # pragma warning(push)
0013 # pragma warning(disable:4355 4702)
0014 #endif
0015 
0016 using namespace soci;
0017 using namespace soci::details;
0018 
0019 
0020 empty_blob_backend::empty_blob_backend(empty_session_backend &session)
0021     : session_(session)
0022 {
0023     throw soci_error("BLOBs are not supported.");
0024 }
0025 
0026 empty_blob_backend::~empty_blob_backend()
0027 {
0028 }
0029 
0030 std::size_t empty_blob_backend::get_len()
0031 {
0032     throw soci_error("BLOBs are not supported.");
0033 }
0034 
0035 std::size_t empty_blob_backend::read_from_start(char * /* buf */, std::size_t /* toRead */, std::size_t /* offset */)
0036 {
0037     throw soci_error("BLOBs are not supported.");
0038 }
0039 
0040 std::size_t empty_blob_backend::write_from_start(char const * /* buf */, std::size_t /* toWrite */, std::size_t /* offset */)
0041 {
0042     throw soci_error("BLOBs are not supported.");
0043 }
0044 
0045 std::size_t empty_blob_backend::append(
0046     char const * /* buf */, std::size_t /* toWrite */)
0047 {
0048     throw soci_error("BLOBs are not supported.");
0049 }
0050 
0051 void empty_blob_backend::trim(std::size_t /* newLen */)
0052 {
0053     throw soci_error("BLOBs are not supported.");
0054 }
0055 
0056 #ifdef _MSC_VER
0057 # pragma warning(pop)
0058 #endif