@@ -65,21 +65,24 @@ def __init__(self,
6565
6666 The dsn parameter (data source name) can be a string in the format
6767 user/password@connect_string or can simply be the connect string (in
68- which case the user and password need to be specified separately). See
69- the documentation on connection strings for more information.
68+ which case authentication credentials such as the username and password
69+ need to be specified separately). See the documentation on connection
70+ strings for more information.
7071
7172 The pool parameter is expected to be a pool object and the use of this
7273 parameter is the equivalent of calling acquire() on the pool.
7374
7475 The params parameter is expected to be of type ConnectParams and
7576 contains connection parameters that will be used when establishing the
76- connection. See the documentation on ConnectParams for more
77+ connection. See the documentation on ConnectParams for more
7778 information. If this parameter is not specified, the additional keyword
7879 parameters will be used to create an instance of ConnectParams. If both
79- the params parameter and additional keyword parameters are specified an
80- exception is raised. Note that if a dsn is also supplied, the params
81- will be modified to contain the connection parameters found within the
82- dsn.
80+ the params parameter and additional keyword parameters are specified,
81+ the values in the keyword parameters have precedence. Note that if a dsn
82+ is also supplied, then in the python-oracledb Thin mode, the values of
83+ the parameters specified (if any) within the dsn will override the
84+ values passed as additional keyword parameters, which themselves
85+ override the values set in the params parameter object.
8386 """
8487
8588 # if this variable is not present, exceptions raised during
@@ -1053,8 +1056,9 @@ def connect(dsn: str=None, *,
10531056
10541057 The dsn parameter (data source name) can be a string in the format
10551058 user/password@connect_string or can simply be the connect string (in
1056- which case the user and password need to be specified separately). See the
1057- documentation on connection strings for more information.
1059+ which case authentication credentials such as the username and password
1060+ need to be specified separately). See the documentation on connection
1061+ strings for more information.
10581062
10591063 The pool parameter is expected to be a pool object and the use of this
10601064 parameter is the equivalent of calling pool.acquire().
@@ -1067,8 +1071,11 @@ def connect(dsn: str=None, *,
10671071 See the documentation on ConnectParams for more information. If this
10681072 parameter is not specified, the additional keyword parameters will be used
10691073 to create an instance of ConnectParams. If both the params parameter and
1070- additional keyword parameters are specified an exception is raised. Note
1071- that if a dsn is also supplied, the params will be modified to contain the
1072- connection parameters found within the dsn.
1074+ additional keyword parameters are specified, the values in the keyword
1075+ parameters have precedence. Note that if a dsn is also supplied,
1076+ then in the python-oracledb Thin mode, the values of the parameters
1077+ specified (if any) within the dsn will override the values passed as
1078+ additional keyword parameters, which themselves override the values set in
1079+ the params parameter object.
10731080 """
10741081 pass
0 commit comments