You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,10 @@ or constructor will take an interface which will get called once the action has
55
55
## Connecting to a MySQL Server
56
56
To connect to a MySQL server you first need to create the MySQL Connection object. You can do this as follows:
57
57
```
58
-
Connection mysqlConnection = new Connection("<Hostname>", "<Username>", "<Password>", <Port>, "<Database>", new IConnectionInterface()
58
+
Connection mysqlConnection = new Connection("<Hostname>", "<Username>", "<Password>", <Port>, "<Database>", new IConnectionInterface()
59
59
```
60
60
61
-
In the above example, <database> is an optional parameter. By setting this, when the connection is established, the database name will be the default
61
+
In the above example, <database> is an optional parameter. By setting this, when the connection is established, the database name will be the default
62
62
database used. The IConnectionInterface parameter handles connection specific events, such as successfully connected or exception handlers.
63
63
64
64
For example, when creating a new IConnectionInterface, you will need to provide the following methods:
@@ -88,7 +88,7 @@ your connection object available in your class as this will be required in order
88
88
89
89
## Switching Database
90
90
You can change the default database to use in your established MySQL Connection. To do this, do not execute
91
-
a standard USE DATABASE <db> query as it won't work.
91
+
a standard USE DATABASE <db> query as it won't work.
92
92
93
93
You need to use your connection object and call the method `switchDatabase(db, new IConnectionInterface())`.
94
94
`db` being a String of your database name, and again, pass in the IConnectionInterface. If it switched successfully
@@ -135,10 +135,10 @@ This result set object contains all the information about what was returned such
135
135
To get the total number of rows you can call `resultset.getNumRows();`.
136
136
137
137
## Get column definitions
138
-
The column definitions are stored in a `List<ColumnDefinition>`. You can get this using the following code snipper:
138
+
The column definitions are stored in a `List<ColumnDefinition>`. You can get this using the following code snipper:
0 commit comments