mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +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
|
@ -0,0 +1 @@
|
|||
@load ./main.zeek
|
22
scripts/policy/frameworks/storage/backend/sqlite/main.zeek
Normal file
22
scripts/policy/frameworks/storage/backend/sqlite/main.zeek
Normal file
|
@ -0,0 +1,22 @@
|
|||
##! SQLite storage backend support
|
||||
|
||||
@load base/frameworks/storage/main
|
||||
|
||||
module Storage::Backend::SQLite;
|
||||
|
||||
export {
|
||||
## Options record for the built-in SQLite backend.
|
||||
type Options: record {
|
||||
## Path to the database file on disk. Setting this to ":memory:"
|
||||
## will tell SQLite to use an in-memory database. Relative paths
|
||||
## will be opened relative to the directory where Zeek was
|
||||
## started from. Zeek will not create intermediate directories
|
||||
## if they do not already exist. See
|
||||
## https://www.sqlite.org/c3ref/open.html for more rules on
|
||||
## paths that can be passed here.
|
||||
database_path: string;
|
||||
|
||||
## Name of the table used for storing data.
|
||||
table_name: string;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue