equal
deleted
inserted
replaced
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 } |