src/PreparedStatement.h
branchv_0
changeset 29 b0ef1e1dc9c8
parent 28 498d5d3406c3
child 30 629565ff82d3
equal deleted inserted replaced
28:498d5d3406c3 29:b0ef1e1dc9c8
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    16  */
    16  */
    17 #pragma once
    17 #pragma once
    18 
       
    19 #include <sqlite3.h>
       
    20 
    18 
    21 #include <relpipe/reader/typedefs.h>
    19 #include <relpipe/reader/typedefs.h>
    22 #include <relpipe/reader/TypeId.h>
    20 #include <relpipe/reader/TypeId.h>
    23 #include <relpipe/writer/TypeId.h>
    21 #include <relpipe/writer/TypeId.h>
    24 #include "SqlException.h"
    22 #include "SqlException.h"
    41 	void reset();
    39 	void reset();
    42 	int getColumnCount();
    40 	int getColumnCount();
    43 	std::string getColumName(int columnIndex);
    41 	std::string getColumName(int columnIndex);
    44 	relpipe::writer::TypeId getColumType(int columnIndex, relpipe::writer::TypeId defaultType = relpipe::writer::TypeId::STRING);
    42 	relpipe::writer::TypeId getColumType(int columnIndex, relpipe::writer::TypeId defaultType = relpipe::writer::TypeId::STRING);
    45 	std::string getString(int columnIndex);
    43 	std::string getString(int columnIndex);
       
    44 	static bool isComplete(const char *sql); // TODO: use own implementation + move to a separate class
    46 };
    45 };
    47 
    46 
    48 }
    47 }
    49 }
    48 }
    50 }
    49 }