Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snippet for datasource properties configuration
Signed-off-by: Fred Bricon <fbricon@gmail.com>
- Loading branch information
1 parent
fcc700e
commit 1414645
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Add datasource properties": { | ||
"prefix": "qds", | ||
"body": [ | ||
"quarkus.datasource.url=${1|jdbc:mariadb://localhost:3306/mydb,jdbc:mysql://localhost:3306/test,jdbc:h2:mem:mydb,jdbc:postgresql://localhost/mydb,jdbc:sqlserver://localhost:1433;databaseName=mydb|}", | ||
"quarkus.datasource.driver=${2|org.mariadb.jdbc.Driver,org.mysql.jdbc.Driver,org.h2.Driver,org.postgresql.Driver,com.microsoft.sqlserver.jdbc.SQLServerDriver|}", | ||
"quarkus.datasource.username=${3:developer}", | ||
"quarkus.datasource.password=${4:developer}", | ||
"quarkus.hibernate-orm.database.generation=${5|update,drop-and-create,create,drop,none|}" | ||
], | ||
"description": "Configure Quarkus datasource" | ||
} | ||
} |