mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Add basic SQLite storage backend
This commit is contained in:
parent
7ad6a05f5b
commit
9d1eef3fbc
15 changed files with 388 additions and 10 deletions
22
src/storage/backend/sqlite/Plugin.cc
Normal file
22
src/storage/backend/sqlite/Plugin.cc
Normal file
|
@ -0,0 +1,22 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek/plugin/Plugin.h"
|
||||
|
||||
#include "zeek/storage/Component.h"
|
||||
#include "zeek/storage/backend/sqlite/SQLite.h"
|
||||
|
||||
namespace zeek::storage::backend::sqlite {
|
||||
|
||||
class Plugin : public plugin::Plugin {
|
||||
public:
|
||||
plugin::Configuration Configure() override {
|
||||
AddComponent(new storage::Component("SQLITE", backend::sqlite::SQLite::Instantiate));
|
||||
|
||||
plugin::Configuration config;
|
||||
config.name = "Zeek::Storage_Backend_SQLite";
|
||||
config.description = "SQLite backend for storage framework";
|
||||
return config;
|
||||
}
|
||||
} plugin;
|
||||
|
||||
} // namespace zeek::storage::backend::sqlite
|
Loading…
Add table
Add a link
Reference in a new issue