H2 Architecture

142 views
Skip to first unread message

Mike Goodwin

unread,
Jan 23, 2025, 3:52:45 PMJan 23
to h2-da...@googlegroups.com
This is probably a bit of stretch, but I was wondering if there was any appetite for restructuring h2 so it works better as a relational db library.

That is to say something like this. Ideally the code would exist in separate folders (or even better separate sub modules, which compile independently). The type system (and the database meta) would have to become somehow plugable and not hardcoded as it is currently.

h2 sql/tools/types ->  h2 rdbms -> mvstore

This would be a big improvement in my opinion. The sql aspect whilst important to a lot of people also represents a lot of complexity.

I will probably go down this route for my own purposes, but assuming the split could be done well, would the project want to incorporate such changes?

regards,

Mike

Noel Grandin

unread,
Jan 24, 2025, 12:58:34 AMJan 24
to h2-da...@googlegroups.com
It is already structured this way, you can use the MVStore layer independently on the SQL layer 

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/h2-database/CAOZwqwn-rYSZ0WznRq4f8VXkeW_6EVtWb-C%2Bvjef%2BJ-qBktBEQ%40mail.gmail.com.

Basil Bourque

unread,
May 5, 2025, 10:20:21 AMMay 5
to H2 Database
See the MVStore page of documentation. 

You can access MVStore directly. 

You can even build your own library to contain just MVStore without the SQL engine. See build instructions at bottom of that page:

>To build just the MVStore (without the database engine), run:
./build.sh jarMVStore

Andrei Tokar

unread,
May 5, 2025, 7:40:49 PMMay 5
to H2 Database
You do not even have to build anything. It's published to Maven along with H2:
https://mvnrepository.com/artifact/com.h2database/h2-mvstore
Reply all
Reply to author
Forward
0 new messages