Repository navigation
v0.1.0
GraphQLite 0.1.0
First stable release of GraphQLite - a SQLite extension for graph queries using Cypher.
Features
- Full Cypher support: CREATE, MATCH, MERGE, SET, DELETE, REMOVE, WITH, UNWIND, FOREACH
- Pattern matching: Node patterns, relationship patterns, variable-length paths
- Relationship type OR syntax:
[:KNOWS|:WORKS_WITH] - List operations: Indexing
[1,2,3][0], negative indexing[1,2,3][-1], range(), collect() - FOREACH expressions: Support for
range()and other expressions, not just list literals - Graph algorithms: PageRank, community detection, shortest paths, centrality metrics
- Parameterized queries: Safe query execution with JSON parameters
- Python bindings:
pip install graphqlite - Rust bindings:
cargo add graphqlite
Installation
Python
pip install graphqliteRust
[dependencies]
graphqlite = "0.1.0"From Source
git clone https://github.com/colliery-io/graphqlite
cd graphqlite
make extensionQuick Example
import graphqlite
conn = graphqlite.connect(":memory:")
conn.cypher("CREATE (a:Person {name: 'Alice'})-[:KNOWS]->(b:Person {name: 'Bob'})")
result = conn.cypher("MATCH (a)-[:KNOWS]->(b) RETURN a.name, b.name")
print(result) # [{'a.name': 'Alice', 'b.name': 'Bob'}]