Skip to content

Commit 97d1737

Browse files
committed
Update README to reflect changes in properties format for database configurations
1 parent 790f66f commit 97d1737

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ database = "MYSQL"
2727
url = ""
2828
username = ""
2929
password = ""
30-
properties = []
30+
properties = {}
3131
maxPoolSize = 10
3232
connectionTimeout = 60000
3333
```
@@ -44,7 +44,7 @@ database = "MARIADB"
4444
url = ""
4545
username = ""
4646
password = ""
47-
properties = []
47+
properties = {}
4848
maxPoolSize = 10
4949
connectionTimeout = 60000
5050
```
@@ -59,7 +59,7 @@ database = "POSTGRESQL"
5959
url = ""
6060
username = ""
6161
password = ""
62-
properties = []
62+
properties = {}
6363
maxPoolSize = 10
6464
connectionTimeout = 60000
6565
```
@@ -73,8 +73,16 @@ database = "SQLITE"
7373

7474
## Connector properties
7575

76-
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.
76+
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:
7777

7878
```toml
79-
properties = ["useJDBCCompliantTimezoneShift=true", "useLegacyDatetimeCode=false", "serverTimezone=UTC"]
79+
properties = {useJDBCCompliantTimezoneShift = "true", useLegacyDatetimeCode = "false", serverTimezone = "UTC"}
80+
```
81+
82+
Or alternative table format:
83+
```toml
84+
[database_extensions.properties]
85+
useJDBCCompliantTimezoneShift = "true"
86+
useLegacyDatetimeCode = "false"
87+
serverTimezone = "UTC"
8088
```

0 commit comments

Comments
 (0)