mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
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:
parent
a14f85d072
commit
1a1c798738
8 changed files with 429 additions and 5 deletions
|
@ -26,8 +26,6 @@
|
|||
#include "writers/DataSeries.h"
|
||||
#endif
|
||||
|
||||
#define USE_SQLITE 1
|
||||
|
||||
#ifdef USE_SQLITE
|
||||
#include "writers/SQLite.h"
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
//
|
||||
// Log writer for SQLITE logs.
|
||||
|
||||
|
||||
#ifndef LOGGING_WRITER_SQLITE_H
|
||||
#define LOGGING_WRITER_SQLITE_H
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue