-
-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Labels
enhancementNew feature or requestNew feature or request
Description
For testing and examples, it would be nice to have support for an in-memory database like H2.
There is actually an example in the Vert.x SQL Client documentation on how to wrap the H2 JDBC driver around the Vert.x Pool: https://vertx.io/docs/vertx-jdbc-client/java/#_using_the_sql_client_api
indalaterre, benbinford, mkouba, cristea-octavian, juergenzimmermann and 8 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Activity
[-]Support on in-memory database[/-][+]Support an in-memory database (H2 for example)[/+][hibernate#929] Draft - Initial changes for H2 db support
[hibernate#929] added rule to skip H2 DB
[hibernate#929] filled out H2 client pool
[hibernate#929] added test for H2 connectivity
cj848 commentedon Mar 20, 2022
@blafond, @DavideD
Hello. I am a developer of kotlin-jdsl.
Hibernate-reactive does not officially support h2 db, so I went in after seeing the above issue and changed the settings to test internally using h2 db. I hope it will be helpful for your development.
For reference, when I run h2 db in hibernate-reactive, I have summarized the following problems and the progress to solve them.
solved using code
please note. We expect to support H2 DB quickly.
I tried to contribute, but it was a lot more work than I expected, so I'm sharing the difficulties I've been through.
Thank you for making such a good library, I'm using it well.
DavideD commentedon Mar 20, 2022
Thanks @cj848, we are currently working on it. Not sure at the moment how long is gonna take to support h2 because we often need some additional work to make the Hibernate ORM Dialect works with the Vert.x driver. We might be able have something working (with some limitations) in the next couple of weeks.
Anyway, people seems very interested to this feature so we will try to keep it up to date.
Cheers
cj848 commentedon Mar 20, 2022
@DavideD
Thank you for your interest.
I am using this library in a reactive module inside a library called kotlin-jdsl as in the link in the previous comment. I am very grateful that I can use reactive while using the features of JPA as it is. All of the hibernate-reactive contributors worked hard in the development. thank you
[-]Support an in-memory database (H2 for example)[/-][+]Add support for H2[/+][hibernate#929] H2 client pool and build dependencies
[hibernate#929] Added H2 database for testing
[hibernate#929] Modifications to tests to accommodate or skip H2 tests
57 remaining items
[hibernate#929] Add H2Database
[hibernate#929] Adapt or disable existing tests for H2
[hibernate#929] Add H2 to the GitHub workflows
[hibernate#929] Refactor id generation for MySQL
[hibernate#929] hibernate-reactive-h2 module
[hibernate#929] H2
[hibernate#929] Add H2Database
[hibernate#929] Adapt or disable existing tests for H2
[hibernate#929] Add H2 to the GitHub workflows
[hibernate#929] Refactor id generation for MySQL
[hibernate#929] hibernate-reactive-h2 module
[hibernate#929] H2
[hibernate#929] Add H2Database
[hibernate#929] Adapt or disable existing tests for H2
[hibernate#929] Add H2 to the GitHub workflows