Skip to content

Commit

Permalink
Fix wrong port in ADB docs (#58)
Browse files Browse the repository at this point in the history
closes #57
  • Loading branch information
lovetodream committed Sep 16, 2024
1 parent 60452f3 commit 2deceb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/OracleNIO/Documentation.docc/connect-to-adb.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Examples showing a connection string and its corresponding ``OracleConnection/Co

| TNS name | Connection string |
|---|---|
| name_low | (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.eu-frankfurt-1.oraclecloud.com))(connect_data=(service_name=my_service_name_low.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes))) |
| name_low | (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(**port=1521**)(**host=adb.eu-frankfurt-1.oraclecloud.com**))(connect_data=(**service_name=my_service_name_low.adb.oraclecloud.com**))(security=(ssl_server_dn_match=yes))) |

```swift
let config = try OracleConnection.Configuration(
Expand All @@ -29,12 +29,12 @@ try await connection.close()

| TNS name | Connection string |
|---|---|
| name_low | (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.eu-frankfurt-1.oraclecloud.com))(connect_data=(service_name=my_service_name_low.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes))) |
| name_low | (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(**port=1522**)(**host=adb.eu-frankfurt-1.oraclecloud.com**))(connect_data=(**service_name=my_service_name_low.adb.oraclecloud.com**))(security=(ssl_server_dn_match=yes))) |

```swift
let config = try OracleConnection.Configuration(
host: "adb.eu-frankfurt-1.oraclecloud.com",
port: 1521,
port: 1522,
service: .serviceName("my_service_name_low.adb.oraclecloud.com"),
username: "my_username",
password: "my_secure_password",
Expand Down

0 comments on commit 2deceb0

Please sign in to comment.