add SQLite reader.

Probably memleaky as hell, does not support tables/vectors yet, but it
managed to successfully read very simple tables.
This commit is contained in:
Bernhard Amann 2012-10-09 14:30:39 -07:00
parent a14f85d072
commit 1a1c798738
8 changed files with 429 additions and 5 deletions

View file

@ -26,8 +26,6 @@
#include "writers/DataSeries.h"
#endif
#define USE_SQLITE 1
#ifdef USE_SQLITE
#include "writers/SQLite.h"
#endif

View file

@ -1,10 +1,11 @@
// See the file "COPYING" in the main distribution directory for copyright.
#define USE_SQLITE 1
#ifdef USE_SQLITE
#include "config.h"
#ifdef USE_SQLITE
#include <string>
#include <errno.h>
@ -100,7 +101,6 @@ bool SQLite::checkError( int code )
{
if ( code != SQLITE_OK && code != SQLITE_DONE )
{
printf("SQLite call failed: %s\n", sqlite3_errmsg(db));
Error(Fmt("SQLite call failed: %s", sqlite3_errmsg(db)));
return true;
}

View file

@ -2,6 +2,7 @@
//
// Log writer for SQLITE logs.
#ifndef LOGGING_WRITER_SQLITE_H
#define LOGGING_WRITER_SQLITE_H