Skip to main content

Crate eventql_parser

Crate eventql_parser 

Source
Expand description

EventQL parser library for parsing event sourcing query language.

This library provides a complete lexer and parser for EventQL (EQL), a query language designed for event sourcing systems. It allows you to parse EQL query strings into an abstract syntax tree (AST) that can be analyzed or executed.

Modules§

arena
prelude
Convenience module that re-exports all public types and functions.

Structs§

Access
Field access expression (e.g., e.data.price).
App
Function application (e.g., sum(e.price), count()).
Attrs
Attributes attached to each expression node.
Binary
Binary operation (e.g., a + b, x == y, p AND q).
Binding
A source binding. A name attached to a source of events.
EventTypeBuilder
Builder for configuring event type information on a SessionBuilder.
EventTypeRecordBuilder
Builder for defining the fields of a record-shaped event type.
ExprKey
Internal hash key for an expression to provide structural equality.
ExprPtr
Internal pointer to an expression in the arena.
ExprRef
A reference to an expression stored in an ExprArena.
Field
A field in a record literal (e.g., {name: "Alice", age: 30}).
FunArgsBuilder
Builder for function argument specifications.
GroupBy
GROUP BY clause specification
OrderBy
ORDER BY clause specification.
Pos
Position information for source code locations.
Query
A complete EventQL query.
Raw
Represents the state of a query that only has a valid syntax. There are no guarantee that all the variables exists or that the query is sound. For example, if the user is asking for an event that has field that should be a string or a number at the same time.
RecRef
A reference to a vector of record fields stored in the ExprArena.
Session
Session is the main entry point for parsing and analyzing EventQL queries.
SessionBuilder
SessionBuilder is a builder for Session objects.
Source
A data source in a FROM clause.
StrRef
A reference to a string stored in the StringArena.
Unary
Unary operation (e.g., -x, NOT active).
VecRef
A reference to a vector of expressions stored in the ExprArena.

Enums§

Limit
Result set limit specification.
Order
Sort order direction.
SourceKind
The kind of data source.
Type
Type information for expressions.
Value
The kind of value an expression represents.

Type Aliases§

Result
A specialized Result type for EventQL parser operations.