@@ -98,7 +98,7 @@ dependencies {
98
98
---
99
99
100
100
## 📖 Code examples
101
- First, you have to create a ConnectionData, either for a mongo or mysql connection.
101
+ First, you have to create a ` ConnectionData ` , either for a mongo or mysql connection.
102
102
You need to provide a host, username, password, database-name and port (mostly 3306 for mysql and 27017 for mongodb)
103
103
``` java
104
104
ConnectionData connectionData = new ConnectionData (" 127.0.0.1" , " username" , " password" , " database" , 3306 );
@@ -108,7 +108,7 @@ ConnectionData connectionData = new ConnectionData("127.0.0.1", "username", "pas
108
108
> 🤖 The connection to mysql-databases should work properly.
109
109
> If there are any errors, it would be a great help to report them.
110
110
111
- Properties must be created next , which are then passed on during the connection:
111
+ Moreover, you have to create some properties , which are then passed on during the connection:
112
112
``` java
113
113
MySQLConnectionConfig mySQLConnectionConfig = new MySQLConnectionConfig (connectionData);
114
114
mySQLConnectionConfig. applyDefaultHikariConfig() // recommended setting for HikariCP
@@ -139,7 +139,7 @@ mySQLDatabaseConnection.disconnect();
139
139
> 🤖 The connection to mongo-databases was not testet yet.
140
140
> If you have tried it, I would be very grateful if you would contact me.
141
141
142
- Properties must be created next , which are then passed on during the connection:
142
+ Moreover, you have to create some properties , which are then passed on during the connection:
143
143
``` java
144
144
MongoConnectionConfig mongoConnectionConfig = new MongoConnectionConfig (connectionData);
145
145
mongoConnectionConfig. applyDefaultMongoClientSettings(); // applies default properties like the uri
0 commit comments