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)