Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce support for custom properties and custom URLs for embedded databases [SPR-12455] #17060

Open
spring-projects-issues opened this issue Nov 20, 2014 · 4 comments

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Nov 20, 2014

Torsten Krah opened SPR-12455 and commented

Status Quo

At the moment, <jdbc:embedded-database /> sets up an embedded database with a minimal set of needed database properties for each supported system, e.g. h2 dbName attribute. But if you want to configure some special database properties for the embedded database, e.g. H2 MVCC support or compatibility mode like Oracle, you would need to add this to the database URL string:

jdbc:h2:~/test;MVCC=TRUE&MODE=Oracle

Proposal

It would be nice if there were some new namespace element like <jdbc:custom-db-properties /> to add these options like in the following configuration example or some other solution where you can specify custom build options for the embedded database, which are applied during construction.

<jdbc:embedded-database>
  <jdbc:custom-db-properties>
    <map>
       <entry key="MODE" value="Oracle" />
       <entry key="MVCC" value="true" />
    </map>
  </jdbc:custom-db-properties>
</jdbc:embedded-database>

Affects: 3.1 GA

Issue Links:

  • #12030 Introduce support for persistent mode for embedded databases ("supersedes")

1 votes, 3 watchers

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented May 3, 2015

Sam Brannen commented

This is closely related to (and potentially supersedes) #12030.

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 3, 2015

Aliaksei Kalotkin commented

I created pull request. Take a look, please.

#832

Thanks.

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 3, 2015

Sam Brannen commented

I took a quick look and commented directly in your pull request.

Cheers,

Sam

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 3, 2015

Aliaksei Kalotkin commented

I fixed issues you have mentioned. Unfortunately I had to create new pull request:
#833.

Sorry for inconvenience.

Thanks.

Loading

@sbrannen sbrannen self-assigned this Jan 15, 2019
@sbrannen sbrannen changed the title Introduce support for custom properties for embedded databases [SPR-12455] Introduce support for custom properties and custom URLs for embedded databases [SPR-12455] Feb 22, 2019
@sbrannen sbrannen removed their assignment Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants