Module vectorscan::database

source ·
Expand description

Compile state machines from expressions or deserialize them from bytes.

Vectorscan supports two distinct types of databases:

Each database type serves as the entry point to the pattern compiler methods, such as Database::compile() and chimera::ChimeraDb::compile().

Database Instantiation

The base vectorscan library offers a serialization interface for database objects which allows them to be transferred across hosts. The SerializedDb type provides an interface to locate serialized data from multiple locations. Consumers of this crate which disable the "compiler" feature can still search against strings by deserializing a database from bytes.

The chimera library does not support database serialization, so databases must be created by compilation.

Modules

  • Wrappers over allocations from various sources.
  • chimerachimera
    Compile chimera state machines from expressions.

Structs

Type Aliases