Module 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§

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

Structs§

Database
Read-only description of an in-memory state machine.
DbInfo
Wrapper for allocated string data returned by Database::info().
SerializedDb
Wrapper for a serialized form of a Database.

Type Aliases§

NativeDb
Pointer type for db allocations used in Database#Managing Allocations.