Skip to content

v0.1.0

Choose a tag to compare

@dylanbstorey dylanbstorey released this 28 Dec 23:40
· 347 commits to main since this release

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 graphqlite

Rust

[dependencies]
graphqlite = "0.1.0"

From Source

git clone https://github.com/colliery-io/graphqlite
cd graphqlite
make extension

Quick 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'}]

Documentation

https://colliery-io.github.io/graphqlite/