Skip to content

Commit cb5c6e9

Browse files
authored
Update README.md
1 parent a1b7a90 commit cb5c6e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ SSL: {
2626
}
2727
```
2828

29-
# Data Typing Options
29+
## Data Typing Options
3030

3131
This connector gives you a few options for configuring how data is returned from the connector. 'typeCast' defaults to true, and converts
3232
data from the database to its javascript equivalent. For example, it will convert DATETIME SQL objects to a DATE javascript type.
3333
You can also set 'dateStrings' which defaults to false. If you set it to true it will override typeCast and force date returns to be a string instead of a DATE type.
3434

35-
# Working within a transaction
35+
## Working within a transaction
3636
As of version 0.1.0 you can utilize sql transactions. Simply call the transactionConnection method to get a transaction connection and then begin the transaction.
3737
Then, write as many queries as you want, and when you are done, you can commit the transaction and all of your queries will be saved to the database or you can roll back the transaction and nothing done while inside that transaction will be saved. Some pseudo-code for how you might do that is below:
3838
```

0 commit comments

Comments
 (0)