Skip to content

Should we have support to configuration #22

@otaviojava

Description

@otaviojava

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-create

Mongodb

# 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:27017

Spring

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=true

MongoDB

spring.data.mongodb.uri=mongodb+srv://<username>:<pwd>@<cluster>.mongodb.net/mygrocerylist
spring.data.mongodb.database=mygrocerylist

Micronaut

JPA

jpa.default.properties.hibernate.hbm2ddl.auto= update
jpa.default.properties.hibernate.hbm2ddl.show_sql=true

Metadata

Metadata

Assignees

No one assigned

    Labels

    voteSomething to vote onwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions