Skip to content

feat: SQL persistence layer#80

Merged
ronjaquensel merged 9 commits into
eclipse-dataplane-core:mainfrom
FraunhoferISST:feat/52-sql-persistence
May 26, 2026
Merged

feat: SQL persistence layer#80
ronjaquensel merged 9 commits into
eclipse-dataplane-core:mainfrom
FraunhoferISST:feat/52-sql-persistence

Conversation

@ronjaquensel
Copy link
Copy Markdown
Contributor

Adds SQL stores for data flows and control planes. Creation of the SQL statements is handled by dedicated interfaces which are currently implemented for Postgres, but could be implemented for different SQL dialects. Also adds store tests, which are run for both in-memory and Postgres implementations to ensure equivalent behaviour. The e2e tests still use the in-memory stores, but could also be shifted to use Postgres in the future.

The SQL stores are added to the main module for now, but could be moved to a separate module in a subsequent PR.

Closes #52

@ronjaquensel ronjaquensel requested a review from ndr-brt May 22, 2026 09:19
@ronjaquensel ronjaquensel self-assigned this May 22, 2026
@ronjaquensel ronjaquensel added the enhancement New feature or request label May 22, 2026

protected Connection getConnection() {
try {
return DriverManager.getConnection(databaseUrl, databaseUsername, databasePassword);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes me think that we should create a refactor issue to permit to setup an external connection pool if needed (very likely in any production environment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, was thinking about that as well. Will create a follow-up issue once this PR is merged.

Comment thread src/main/java/org/eclipse/dataplane/port/store/sql/ControlPlaneStatements.java Outdated
Comment thread src/main/java/org/eclipse/dataplane/port/store/sql/SqlDataFlowStore.java Outdated
Comment thread src/main/java/org/eclipse/dataplane/Dataplane.java Outdated
@ronjaquensel ronjaquensel requested a review from ndr-brt May 26, 2026 07:00
Copy link
Copy Markdown
Contributor

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@ronjaquensel ronjaquensel merged commit 95aac1f into eclipse-dataplane-core:main May 26, 2026
3 checks passed
@ronjaquensel ronjaquensel deleted the feat/52-sql-persistence branch May 26, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL persistence layer

2 participants