File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/java/me/cobeine/sqlava/connection/util Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,24 @@ public final class JdbcUrlBuilder {
10
10
11
11
public static final String BASE_URL = "jdbc:mysql://%s:%s/%s" ;
12
12
private boolean auto_reconnect ;
13
- private final HashMap <String ,Object > map ;
14
- JdbcUrlBuilder () {
15
- this .map = new HashMap <>();
16
- }
13
+ private final HashMap <String , Object > map ;
14
+
15
+ JdbcUrlBuilder () {
16
+ this .map = new HashMap <>();
17
+ }
17
18
18
19
public JdbcUrlBuilder host (String host ) {
19
20
map .put ("host" , host );
20
21
return this ;
21
22
}
23
+
22
24
public JdbcUrlBuilder port (int port ) {
23
25
map .put ("port" , port );
24
26
return this ;
25
27
}
26
28
27
29
public JdbcUrlBuilder database (String database ) {
28
- map .put ("port " , database );
30
+ map .put ("database " , database );
29
31
return this ;
30
32
}
31
33
You can’t perform that action at this time.
0 commit comments