mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Make storage events take a tag for the backend instead of a string
This commit is contained in:
parent
989e4adf90
commit
32ae8f4eaa
15 changed files with 39 additions and 38 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace zeek::storage::backend::sqlite {
|
||||
|
||||
storage::BackendPtr SQLite::Instantiate(std::string_view tag) { return make_intrusive<SQLite>(tag); }
|
||||
storage::BackendPtr SQLite::Instantiate() { return make_intrusive<SQLite>(); }
|
||||
|
||||
/**
|
||||
* Called by the manager system to open the backend.
|
||||
|
|
|
@ -12,10 +12,10 @@ namespace zeek::storage::backend::sqlite {
|
|||
|
||||
class SQLite : public Backend {
|
||||
public:
|
||||
SQLite(std::string_view tag) : Backend(SupportedModes::SYNC, tag) {}
|
||||
SQLite() : Backend(SupportedModes::SYNC, "SQLITE") {}
|
||||
~SQLite() override = default;
|
||||
|
||||
static BackendPtr Instantiate(std::string_view tag);
|
||||
static BackendPtr Instantiate();
|
||||
|
||||
/**
|
||||
* Returns whether the backend is opened.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue