Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,19 @@ network-store-server:
preloading-strategy: COLLECTION
base-uri: http://localhost:8080/

# this structure is shared among all microservices, if you change it, change it everywhere
# customQuery allows a microservice to set query parameters specific to itself
# if customQuery is empty, set queryBegin to "?", otherwise set it to "&"
# this structure is shared among all microservices, if you change it, change it everywhere.
# customQuery allows a microservice to set query parameters specific to itself.
# if customQuery is empty, set queryBegin to "?", otherwise set it to "&".
# this allow the user to add additional query elements common to all microservices
# and using the appropriate leading character depending on whether the microsevice
# uses custom query parameters
# and to use the appropriate leading character depending on whether the microsevice
# uses custom query parameters or not. customQueryBegin in this file must always be '?',
# it is present only to be able to be overriden by deployments in the
# manyschemas mode. It is used only for microservices that have predefined
# query parameters, and it must be used if customQuery is not empty, otherwise
# the manyschema mode doesn't work, so define it everywhere because it doesn't
# hurt.
queryBegin: '?'
customQueryBegin: '?'
customQuery:
dbName: dynamicmappings
dbApi: jdbc
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/database.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
dbVendor=postgresql
host=localhost
port=5432
# use this to set common query parameters, and use the predefined
# '${queryBegin}' marker to put the correct leading char '?' or '&' depending
# on whether the microservice has predefined query parameters.
# for example, use this (with the ${} and all): query=${queryBegin}timeout=5&reconnect=true
query=
login=postgres
password=postgres
Expand All @@ -29,5 +33,5 @@ dbUrlManySchemas=${dbProtocolHost}${dbManySchemasPath}
# leave this if you want 1 database per microservice
dbUrl=${dbUrlManyBases}
# use this if you want 1 database for all microservice, each in a schema
# and set commonDbName
# and set commonDbName in database.properties, and set queryBegin: '&' and customQueryBegin: '&' in application.yaml
#dbUrl=${dbUrlManySchemas}