Elffuss BraidHub

kikocis/EDC public

main · 886 BRenderedRawPermalink
1# Default Datasource configuration
2
3## Decision
4
5All SQL store extensions, if the specific datasource name is not configured should fall back to the default one.
6
7## Rationale
8
9Each SQL store implementation currently must have at least one mandatory configuration
10parameter `edc.datasource.<entity>.name` and then in case additional parameters as `url`, `user`, `password` and so on.
11
12This is powerful for fine-grained configuration and deployment. For simpler cases and scenario all the stores should
13default to a common datasource name, that will be easier to configure.
14
15## Approach
16
17All the SQL store extensions will default to a common datasource name defined
18in `DataSourceRegistry#DEFAULT_DATASOURCE` (**default**)
19and then users can configure a single datasource like this:
20
21```
22edc.datasource.default.user=
23edc.datasource.default.password=
24edc.datasource.default.url=
25...
26```
27