9 - Added ReSQL - DuckDB support#224
Open
Burnfireblaze wants to merge 45 commits intoapache:masterfrom
Open
Conversation
Readme changes
…kdbinfo, modified BUILD files for lib inclusions
…xecutor Modify kv_executor + kv.proto
…rface_extension added new duckdb files, modified storage headers, added proto for duc…
…i-fixes Feature KV CLI and service
…-backend-DuckDB Adds duckDB runtime flag to kv_service
…-service RESQL Start Service added
removed passing of path to rely on default
… duckdb version of resdb as resql
added a test_sql script that tests the functionalities offered by the…
…abled Feature/logging enabled
…script [temp] added creation of folders to start_resql_script to avoid node …
…kdbinfo, modified BUILD files for lib inclusions
fixes for kv service build fixes for kv service build server config modified Adds duckDB runtime flag to kv_service Removes Changes made to kv RESQL Start Service added removed passing of path to rely on default
… duckdb version of resdb as resql Logging enabled Logging enabled 2 Logging enabled 3 Logging enabled 4 Logging enabled 5
modified modified Autocomplete flags
[temp] added creation of folders to start_resql_script to avoid node crashing
…mits-v4 Squashed commits
Author
|
@cjcchen and @harish876 Could you please review this pull request and let us know of the changes we need to do to get this PR merged? |
cjcchen
reviewed
Mar 9, 2026
| return std::make_unique<ResQL>(cfg); | ||
| } | ||
|
|
||
| ResQL::ResQL(const DuckDBInfo& config) : config_(config) { |
Contributor
There was a problem hiding this comment.
The filename is dockdb. Why is this called ResQL?
cjcchen
reviewed
Mar 9, 2026
| @@ -0,0 +1,145 @@ | |||
| #!/bin/bash | |||
cjcchen
reviewed
Mar 9, 2026
cjcchen
reviewed
Mar 9, 2026
| } | ||
|
|
||
|
|
||
| 5 127.0.0.1 20005 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked Issue
Closes #238
Discussion: #238
Description
This PR introduces ReSQL, a SQL-based service layer for ResilientDB that enables relational querying capabilities on top of the existing distributed ledger execution model. The ReSQL service provides an alternative or replacement for traditional key-value storage with a structured relational storage model backed by DuckDB, allowing decentralized applications to interact with ResilientDB using standard SQL semantics rather than low-level KV operations.
Under the hood
Storage & Execution
Service Layer
Implements a dedicated ReSQL service responsible for:
Tooling & Scripts
Motivation
ResilientDB currently exposes a key-value storage abstraction, which limits expressiveness for applications requiring relational schemas, joins, range queries, or analytical operators. ReSQL introduces an embedded relational interface backed by SQL, enabling application developers to model state with structured schemas without relying on external DBMS systems.
Compatibility & Deployment
Testing & Validation
Validation included:
Benefits