Skip to content

Commit 81ae023

Browse files
Merge pull request #46 from shadab-mohammad-oracle/patch-9
Update README.md
2 parents 8f170e5 + 3083399 commit 81ae023

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
248248
#### GUI
249249
<img width="376" alt="Screenshot 2025-07-05 at 11 42 13 PM" src="https://github.com/user-attachments/assets/880f58f8-3e09-40f1-9282-43341c7227a1" />
250250

251+
- If both "port" and "database" (service_name) are provided in the form/API, it constructs a ConnectParams object using host, port (as int), and service_name, then calls oracledb.connect(user, password, params=ConnectParams(...)).
252+
253+
- Otherwise, it falls back to oracledb.connect(user, password, dsn=host), allowing users to provide a complete DSN string in the "host" field.
254+
251255

252256
---
253257

@@ -268,6 +272,10 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
268272
#### GUI
269273
<img width="376" alt="Screenshot 2025-07-05 at 11 33 13 PM" src="https://github.com/user-attachments/assets/351897b5-2c8b-482b-8310-c6a0401d58d6" />
270274

275+
- If both "port" and "database" (service_name) are provided in the form/API, it constructs a ConnectParams object using host, port (as int), and service_name, then calls oracledb.connect(user, password, params=ConnectParams(...)).
276+
277+
- Otherwise, it falls back to oracledb.connect(user, password, dsn=host), allowing users to provide a complete DSN string in the "host" field.
278+
271279
---
272280

273281
### 5. URL (HTTP/HTTPS Endpoint)

0 commit comments

Comments
 (0)