This is a simple graph database in SQLite, inspired by "SQLite as a document database"
1,529
166 commits
updated Feb 15, 2025
This is a simple graph database in SQLite, inspired by "SQLite as a document database".
The schema consists of just two structures:
id valueid values, specifying the direction, with an optional json object as connection propertiesThe 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.
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.
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!
(top 24 of 25)
19,223 followers · starred Dec 2020
214 followers · starred May 2022
228 followers · starred Jun 2022
1,693 followers · starred May 2022
This is a simple graph database in SQLite, inspired by "SQLite as a document database"
1,529
166 commits
updated Feb 15, 2025
This is a simple graph database in SQLite, inspired by "SQLite as a document database".
The schema consists of just two structures:
id valueid values, specifying the direction, with an optional json object as connection propertiesThe 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.
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.
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!
(top 24 of 25)
19,223 followers · starred Dec 2020
214 followers · starred May 2022
228 followers · starred Jun 2022
1,693 followers · starred May 2022