From 308339921cf6f66d1be2e93f40bafc729efbf525 Mon Sep 17 00:00:00 2001 From: Shadab Mohammad Date: Sun, 6 Jul 2025 01:02:53 +1000 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2728226..777a568 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,10 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \ #### GUI Screenshot 2025-07-05 at 11 42 13 PM +- 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(...)). + +- Otherwise, it falls back to oracledb.connect(user, password, dsn=host), allowing users to provide a complete DSN string in the "host" field. + --- @@ -268,6 +272,10 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \ #### GUI Screenshot 2025-07-05 at 11 33 13 PM +- 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(...)). + +- Otherwise, it falls back to oracledb.connect(user, password, dsn=host), allowing users to provide a complete DSN string in the "host" field. + --- ### 5. URL (HTTP/HTTPS Endpoint)