1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_dbms_Bind_hpp
10 #define anna_dbms_Bind_hpp
12 #include <anna/core/functions.hpp>
13 #include <anna/core/RuntimeException.hpp>
15 #include <anna/dbms/DatabaseException.hpp>
16 #include <anna/dbms/Data.hpp>
28 dbms::Data& getData() { return a_data; }
29 const dbms::Data& getData() const { return a_data; }
31 virtual void prepare(Statement* statement, Connection* connection, const int pos)
34 virtual void release(Statement* statement) = 0;
35 virtual void code() const noexcept(false) = 0;
36 virtual void decode() const noexcept(false) = 0;
37 virtual std::string asString() const ;
40 Bind(const char* name, dbms::Data& data) : a_name(name), a_data(data) {;}
43 const std::string a_name;
46 friend class Statement;