Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ database = "MYSQL"
url = ""
username = ""
password = ""
properties = []
properties = {}
maxPoolSize = 10
connectionTimeout = 60000
```
Expand All @@ -44,7 +44,7 @@ database = "MARIADB"
url = ""
username = ""
password = ""
properties = []
properties = {}
maxPoolSize = 10
connectionTimeout = 60000
```
Expand All @@ -59,7 +59,7 @@ database = "POSTGRESQL"
url = ""
username = ""
password = ""
properties = []
properties = {}
maxPoolSize = 10
connectionTimeout = 60000
```
Expand All @@ -73,8 +73,16 @@ database = "SQLITE"

## Connector properties

For some databases, such as MySQL, you can provide properties to the database connector. For each property, add a string entry to the `properties` array.
For some databases, such as MySQL, you can provide properties to the database connector. For each property, you can specify the key and value in the `properties` field. For example, to set the timezone shift and legacy datetime code properties for MySQL, you would add the following to your Ledger config file:

```toml
properties = ["useJDBCCompliantTimezoneShift=true", "useLegacyDatetimeCode=false", "serverTimezone=UTC"]
properties = {useJDBCCompliantTimezoneShift = "true", useLegacyDatetimeCode = "false", serverTimezone = "UTC"}
```

Or alternative table format:
```toml
[database_extensions.properties]
useJDBCCompliantTimezoneShift = "true"
useLegacyDatetimeCode = "false"
serverTimezone = "UTC"
```