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(disable:4355) 0013 #endif 0014 0015 using namespace soci; 0016 using namespace soci::details; 0017 0018 0019 empty_statement_backend::empty_statement_backend(empty_session_backend &session) 0020 : session_(session) 0021 { 0022 } 0023 0024 void empty_statement_backend::alloc() 0025 { 0026 // ... 0027 } 0028 0029 void empty_statement_backend::clean_up() 0030 { 0031 // ... 0032 } 0033 0034 void empty_statement_backend::prepare(std::string const & /* query */, 0035 statement_type /* eType */) 0036 { 0037 // ... 0038 } 0039 0040 statement_backend::exec_fetch_result 0041 empty_statement_backend::execute(int /* number */) 0042 { 0043 // ... 0044 return ef_success; 0045 } 0046 0047 statement_backend::exec_fetch_result 0048 empty_statement_backend::fetch(int /* number */) 0049 { 0050 // ... 0051 return ef_success; 0052 } 0053 0054 long long empty_statement_backend::get_affected_rows() 0055 { 0056 // ... 0057 return -1; 0058 } 0059 0060 int empty_statement_backend::get_number_of_rows() 0061 { 0062 // ... 0063 return 1; 0064 } 0065 0066 std::string empty_statement_backend::get_parameter_name(int /* index */) const 0067 { 0068 // ... 0069 return std::string(); 0070 } 0071 0072 std::string empty_statement_backend::rewrite_for_procedure_call( 0073 std::string const &query) 0074 { 0075 return query; 0076 } 0077 0078 int empty_statement_backend::prepare_for_describe() 0079 { 0080 // ... 0081 return 0; 0082 } 0083 0084 void empty_statement_backend::describe_column(int /* colNum */, 0085 data_type & /* type */, std::string & /* columnName */) 0086 { 0087 // ... 0088 } 0089 0090 empty_standard_into_type_backend * empty_statement_backend::make_into_type_backend() 0091 { 0092 return new empty_standard_into_type_backend(*this); 0093 } 0094 0095 empty_standard_use_type_backend * empty_statement_backend::make_use_type_backend() 0096 { 0097 return new empty_standard_use_type_backend(*this); 0098 } 0099 0100 empty_vector_into_type_backend * 0101 empty_statement_backend::make_vector_into_type_backend() 0102 { 0103 return new empty_vector_into_type_backend(*this); 0104 } 0105 0106 empty_vector_use_type_backend * empty_statement_backend::make_vector_use_type_backend() 0107 { 0108 return new empty_vector_use_type_backend(*this); 0109 }