Skip to content

Commit 0bcb4d2

Browse files
authored
Update README.md
1 parent 1b699d4 commit 0bcb4d2

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
11
# spring-boot-multi-hsql
2-
A Spring-Boot-Example with an unlimted an easy to configure HSQL file based Database
2+
A Spring-Boot-Example with an unlimted an easy to configure HSQL file based _permanent_ database
3+
4+
### My intro to GitHub ... comming soon
5+
### Description
6+
7+
From time to time I need more than one _independet_ und _permanent_ databases to
8+
* see whats going on in my tables
9+
* try out my XA-Transactions
10+
* do some rapid prototyping with permanent data
11+
12+
Spring-Boot Autoconfigure just provide only *one* database out of the box, if that is enough for you, stop reading..
13+
to all the others ... this is comming soon ... here.
14+
15+
Here is a little spoiler of the usage :-)
16+
17+
``` java
18+
@ConfigurationProperties(prefix = "cool.database")
19+
@Bean
20+
public HSQLFileDatabaseServer coolDataBase() {
21+
return new HSQLFileDatabaseServerImpl(); // thats all, instantiate and starts the server
22+
}
23+
24+
@Bean
25+
public DataSource coolDatabaseDataSource() {
26+
return coolDataBase.getBasicDataSourceForFileDatabaseServer();
27+
}
28+
29+
...
30+
and the Logging is
31+
32+
Your JDBC-Connection-String: jdbc:hsqldb:hsql://mydomain:4000/COOL_DB
33+
```
34+
so start your favorite database tool, cut&paste the jdbc-connection String and see whats happens
35+
36+
37+
##### Thanks
38+
...to the real cool employee of https://www.codecentric.de/
39+

0 commit comments

Comments
 (0)