Skip to content
项目

dpapathanasiou/simple-graph has 1,528 GitHub stars and 87 forks. GitHot measured +1 stars in 24 hours and +2 in 7 days. Last checked 2026-11-11 18:30 UTC. Last push 2025-02-15.

这些数字如何统计

This is a simple graph database in SQLite, inspired by "SQLite as a document database"

实测星标增长

24小时
+1
7天
+2
15天
更新延迟
1个月
更新延迟

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

About

This is a simple graph database in SQLite, inspired by "SQLite as a document database".

Structure

The schema consists of just two structures:

  • Nodes - these are any json objects, with the only constraint being that they each contain a unique id value
  • Edges - these are pairs of node id values, specifying the direction, with an optional json object as connection properties

The create, read, update, and delete functions (.sql files) are complete statements with qmark bindings.

Search templates (.template files) are in Jinja2 format, which can be converted to other template syntaxes relatively easily, with a bit of regex magic (though it would be nice if they could be expressed in a more language-agnostic way).

There are also traversal function templates as native SQLite Common Table Expressions which produce lists of identifiers or return all objects along the path.

Applications

Usage

RESTful API (paid)

The Banrai Simple Graph Database and Document Store wraps this core logic with an API service, creating a managed graph database and document store, with additional features not found in any of the public bindings.

Importable library (free)

Choose an implementation:

Want to contribute an implementation in your preferred programming language?

The schema and prepared sql statements can be used by programs in any programming language with SQLite bindings.

Pull requests are welcome!

探索相关项目