minigraf 1.0.0

Zero-config, single-file, embedded graph database with bi-temporal Datalog queries
Documentation
1
2
3
4
5
6
7
8
9
10
11
from minigraf import MiniGrafDb

db = MiniGrafDb.open_in_memory()

db.execute('(transact [[:alice :name "Alice"] [:alice :age 30]])')

result = db.execute("(query [:find ?e ?name :where [?e :name ?name]])")
import json
print(json.loads(result))

db.checkpoint()