From 60debcdaa97c801f2829da7bc6833976de4b4637 Mon Sep 17 00:00:00 2001 From: amochin Date: Tue, 1 Oct 2024 07:54:53 +0200 Subject: [PATCH] Fix docs - connection to ibmdb via connection string --- doc/index.html | 2 +- src/DatabaseLibrary/connection_manager.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/index.html b/doc/index.html index b82912c..f3450a3 100644 --- a/doc/index.html +++ b/doc/index.html @@ -1191,7 +1191,7 @@ jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a diff --git a/src/DatabaseLibrary/connection_manager.py b/src/DatabaseLibrary/connection_manager.py index e7ea9a4..8184a6b 100644 --- a/src/DatabaseLibrary/connection_manager.py +++ b/src/DatabaseLibrary/connection_manager.py @@ -205,8 +205,9 @@ def connect_to_database( - _oracle_driver_mode_ - _thin_ is used as fallback for _oracledb_ Other custom params from keyword arguments and config file are passed to the Python DB module as provided - - normally as arguments for the _connect()_ function. However, when using *pyodbc*, the connection is established - using a connection string - so all the custom params are added into it instead of function arguments. + normally as arguments for the _connect()_ function. + However, when using *pyodbc* or *ibm_db*, the connection is established using a *connection string* - + so all the custom params are added into it instead of function arguments. Set ``alias`` for `Handling multiple database connections`. If the same alias is given twice, then previous connection will be overridden.