-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
voteSomething to vote onSomething to vote onwontfixThis will not be worked onThis will not be worked on
Milestone
Description
Once we're talking about data sources, it is natural to have settings such as user, password, and so on.
My question is: should we have support or a convention about configuration on this version?
Example
Quarkus
JPA
# datasource configuration
quarkus.datasource.db-kind = postgresql
quarkus.datasource.username = hibernate
quarkus.datasource.password = hibernate
quarkus.datasource.jdbc.url = jdbc:postgresql://localhost:5432/hibernate_db
# drop and create the database at startup (use `update` to only update the schema)
quarkus.hibernate-orm.database.generation=drop-and-createMongodb
# configure the mongoDB client for a replica set of two nodes
quarkus.mongodb.connection-string = mongodb://mongo1:27017,mongo2:27017
# configure the mongoDB client for a single instance on localhost
quarkus.mongodb.connection-string = mongodb://localhost:27017Spring
JPA
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=mysqluser
spring.datasource.password=mysqlpass
spring.datasource.url= jdbc:mysql://localhost:3306/myDb?createDatabaseIfNotExist=trueMongoDB
spring.data.mongodb.uri=mongodb+srv://<username>:<pwd>@<cluster>.mongodb.net/mygrocerylist
spring.data.mongodb.database=mygrocerylistMicronaut
JPA
jpa.default.properties.hibernate.hbm2ddl.auto= update
jpa.default.properties.hibernate.hbm2ddl.show_sql=trueMetadata
Metadata
Assignees
Labels
voteSomething to vote onSomething to vote onwontfixThis will not be worked onThis will not be worked on