quarkiverse / quarkus-roq

An extension to generate/publish static pages from your Quarkus web-app
https://pages.quarkiverse.io/quarkus-roq/
Apache License 2.0
4 stars 3 forks source link

Find a way to use hibernate to query and use data from a file store #45

Open ia3andy opened 1 month ago

ia3andy commented 1 month ago

It would store the data as a file synchronised with git. This would allow querying the data and use it in the app that gets generated as a static website.

The prerequisite is to have something easy to run in a CI (like github action) and that gives readable diffs for git.

ia3andy commented 1 month ago

Zulip discussion (https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Json.20File.20JDBC.20driver) abstract:

Summary for GitHub Issue

Title: Implementing a JDBC Driver for JSON File Storage

Description:

Andy Damevin is exploring the possibility of using a JDBC driver to access and manipulate data stored in human-readable text files (preferably JSON) synchronized through Git. The goal is to allow easy data editing and storage in a format that supports version control and diffing, without requiring an additional runtime process.

Key Points:

Discussion Highlights:

Next Steps:

Links:


Feel free to provide additional input or alternative solutions for efficiently managing and syncing human-readable file-based data storage through JDBC.

maxandersen commented 1 month ago

"Find a way to use hibernate to query and use data from a file store" - what is the queries you are after doing?

ia3andy commented 1 month ago

This is a good example: https://github.com/FroMage/RivieraDEV-Quarkus/tree/main/src/main/java/model

maxandersen commented 1 month ago

@ia3andy can you point a bit more specific - I browsed around and didn't find any queries - just a model easy to iterate on.

FroMage commented 1 month ago

What I would do is:

Possibly using H2.

FroMage commented 1 month ago

Did I mention I have a JSON import/export for ORM in 🦊? 😇