Expand description
Abstract Syntax Tree (AST) types for Cypher queries.
Structs§
- Alter
Table - ALTER TABLE statement.
- Analyze
Statement - ANALYZE statement — collect table statistics.
- Attach
Database - ATTACH DATABASE statement.
- Case
Alternative - A single WHEN … THEN … branch inside a CASE expression.
- Case
Expr - A CASE expression (simple or searched).
- Column
Def - Comment
OnTable - COMMENT ON TABLE name IS ‘string’ — add a comment to a table.
- Copy
From - COPY FROM statement — load data from a file into a table.
- CopyTo
- COPY TO statement — export query results to a file.
- Create
Clause - Create
FtsIndex - CREATE FTS INDEX statement.
- Create
Graph - CREATE [PROJECTION] GRAPH name [ANY] — create a projected graph.
- Create
Index - A
CREATE [ART|HASH] INDEXstatement. - Create
Macro - CREATE MACRO statement — defines a Cypher scalar macro.
- Create
Node Table - Create
RelTable - Create
Sequence - CREATE SEQUENCE statement — creates a sequence for auto-incrementing counters.
- Create
Type - CREATE TYPE name AS type — user-defined type alias.
- Create
Vector Index - CREATE VECTOR INDEX statement — creates an HNSW index on a vector column.
- Delete
Clause - Detach
Database - DETACH DATABASE statement.
- Drop
Graph - DROP GRAPH name — remove a projected graph.
- Drop
Index - A
DROP INDEXstatement. - Drop
Sequence - DROP SEQUENCE statement.
- Drop
Table - Edge
Pattern - Explain
Statement - EXPLAIN statement wrapper.
- Export
Database - EXPORT DATABASE statement.
- Extension
Statement - EXTENSION management statement (INSTALL/LOAD/UNINSTALL EXTENSION name).
- Foreach
Clause - FtsQuery
- A
USING FTS INDEX index_name('search string')clause attached to a MATCH. - Import
Database - IMPORT DATABASE statement.
- Load
From - LOAD FROM statement — scan external file without importing.
- Match
Clause - Merge
Statement - MERGE statement — match or create a pattern with optional ON CREATE / ON MATCH actions.
- Node
Pattern - Optional
Match Clause - Order
ByItem - A single sort item in an ORDER BY clause.
- Pattern
- A graph pattern (node or relationship).
- Query
- A Cypher query (e.g., MATCH … RETURN …).
- Return
Clause - Return
Item - SetClause
- SetItem
- Standalone
Call - CALL statement — invoke a table function or procedure as a standalone statement.
- Transaction
Statement - TRANSACTION statement (BEGIN, COMMIT, ROLLBACK, CHECKPOINT).
- Union
Statement - UNION statement — combines results from two queries.
- Unwind
Clause - UseDatabase
- USE DATABASE statement.
- UseGraph
- USE GRAPH name — set the current graph context.
- Where
Clause
Enums§
- Alter
Action - Binary
Op - Clause
- A clause in a query.
- Constant
- Copy
ToFormat - Edge
Direction - Explain
Type - EXPLAIN type — what kind of plan to show.
- Expression
- An expression in a Cypher query.
- Extension
Action - Extension management action.
- Quantifier
- Quantifier for list predicates.
- Statement
- A Cypher statement (top-level AST node).
- Transaction
Action - Transaction action type.
- UnaryOp