Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 8b4f5ea

Browse files
author
Chris Board
committed
Fixed formatting in README.md
1 parent 186c602 commit 8b4f5ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ or constructor will take an interface which will get called once the action has
5555
## Connecting to a MySQL Server
5656
To connect to a MySQL server you first need to create the MySQL Connection object. You can do this as follows:
5757
```
58-
Connection mysqlConnection = new Connection("<Hostname>", "<Username>", "<Password>", <Port>, "<Database>", new IConnectionInterface()
58+
Connection mysqlConnection = new Connection("<Hostname>", "<Username>", "<Password>", <Port>, "<Database>", new IConnectionInterface()
5959
```
6060

61-
In the above example, &lt;database&gt; 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
6262
database used. The IConnectionInterface parameter handles connection specific events, such as successfully connected or exception handlers.
6363

6464
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
8888

8989
## Switching Database
9090
You can change the default database to use in your established MySQL Connection. To do this, do not execute
91-
a standard USE DATABASE &lt;db&gt; query as it won't work.
91+
a standard USE DATABASE <db> query as it won't work.
9292

9393
You need to use your connection object and call the method `switchDatabase(db, new IConnectionInterface())`.
9494
`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
135135
To get the total number of rows you can call `resultset.getNumRows();`.
136136

137137
## Get column definitions
138-
The column definitions are stored in a `List&lt;ColumnDefinition&gt;`. 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:
139139

140140
```
141-
List&lt;ColumnDefinition&gt; columns = result.getFields();
141+
List<ColumnDefinition> columns = result.getFields();
142142
```
143143

144144
You can then loop over the list to get ColumnDefinition for each column returned in the result set. Within the column

0 commit comments

Comments
 (0)