Skip to content

Commit 593b8dd

Browse files
committed
Docs about oracledb client mode
1 parent 924889c commit 593b8dd

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Therefore there are some modules, which are "natively" supported in the library
5252
## Python modules currently "natively" supported
5353
### Oracle
5454
- [oracledb](https://oracle.github.io/python-oracledb/)
55+
- Both thick and thin client modes are supported - you can select one using the `driverMode` parameter.
56+
- However, due to current limitations of the oracledb module, **it's not possible to switch between thick and thin modes during a test execution session** - even in different suites.
5557
- [cx_Oracle](https://oracle.github.io/python-cx_Oracle/)
5658
### MySQL
5759
- [pymysql](https://github.com/PyMySQL/PyMySQL)

src/DatabaseLibrary/connection_manager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ def connect_to_database(
5252
Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
5353
connect to the database using `dbName`, `dbUsername`, and `dbPassword`.
5454
55+
The `driverMode` is used to select the *oracledb* client mode.
56+
Allowed values are:
57+
- _thin_ (default if omitted)
58+
- _thick_
59+
- _thick,lib_dir=<PATH_TO_ORACLE_CLIENT>_
60+
5561
Optionally, you can specify a `dbConfigFile` wherein it will load the
5662
default property values for `dbapiModuleName`, `dbName` `dbUsername`
5763
and `dbPassword` (note: specifying `dbapiModuleName`, `dbName`

test/tests/custom_db_tests/oracle_thick_mode.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Documentation Tests of switching between thin and thick mode of oracledb client.
33
... Require the oracle client libraries installed.
44
... See more here: https://python-oracledb.readthedocs.io/en/latest/user_guide/initialization.html#initialization
5+
...
6+
... Due to current limitations of the oracledb module it's not possible to switch between thick and thin modes
7+
... during a test execution session - even in different suites.
8+
... So theses tests should be run separated only.
59
610
Resource ../../resources/common.resource
711
Test Teardown Drop Tables And Disconnect

0 commit comments

Comments
 (0)