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

statement.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
00003 // Distributed under the Boost Software License, Version 1.0.
00004 // (See accompanying file LICENSE_1_0.txt or copy at
00005 // http://www.boost.org/LICENSE_1_0.txt)
00006 //
00007 
00008 #define SOCI_EMPTY_SOURCE
00009 #include "soci-empty.h"
00010 
00011 #ifdef _MSC_VER
00012 #pragma warning(disable:4355)
00013 #endif
00014 
00015 using namespace soci;
00016 using namespace soci::details;
00017 
00018 
00019 empty_statement_backend::empty_statement_backend(empty_session_backend &session)
00020     : session_(session)
00021 {
00022 }
00023 
00024 void empty_statement_backend::alloc()
00025 {
00026     // ...
00027 }
00028 
00029 void empty_statement_backend::clean_up()
00030 {
00031     // ...
00032 }
00033 
00034 void empty_statement_backend::prepare(std::string const & /* query */,
00035     statement_type /* eType */)
00036 {
00037     // ...
00038 }
00039 
00040 statement_backend::exec_fetch_result
00041 empty_statement_backend::execute(int /* number */)
00042 {
00043     // ...
00044     return ef_success;
00045 }
00046 
00047 statement_backend::exec_fetch_result
00048 empty_statement_backend::fetch(int /* number */)
00049 {
00050     // ...
00051     return ef_success;
00052 }
00053 
00054 int empty_statement_backend::get_number_of_rows()
00055 {
00056     // ...
00057     return 1;
00058 }
00059 
00060 std::string empty_statement_backend::rewrite_for_procedure_call(
00061     std::string const &query)
00062 {
00063     return query;
00064 }
00065 
00066 int empty_statement_backend::prepare_for_describe()
00067 {
00068     // ...
00069     return 0;
00070 }
00071 
00072 void empty_statement_backend::describe_column(int /* colNum */,
00073     data_type & /* type */, std::string & /* columnName */)
00074 {
00075     // ...
00076 }
00077 
00078 empty_standard_into_type_backend * empty_statement_backend::make_into_type_backend()
00079 {
00080     return new empty_standard_into_type_backend(*this);
00081 }
00082 
00083 empty_standard_use_type_backend * empty_statement_backend::make_use_type_backend()
00084 {
00085     return new empty_standard_use_type_backend(*this);
00086 }
00087 
00088 empty_vector_into_type_backend *
00089 empty_statement_backend::make_vector_into_type_backend()
00090 {
00091     return new empty_vector_into_type_backend(*this);
00092 }
00093 
00094 empty_vector_use_type_backend * empty_statement_backend::make_vector_use_type_backend()
00095 {
00096     return new empty_vector_use_type_backend(*this);
00097 }
 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