Skip to content

Commit 1575e1e

Browse files
cjbjgvenzl
andauthoredDec 5, 2024
Update python-oracledb examples (#409)
Signed-off-by: Christopher Jones <[email protected]> Co-authored-by: Gerald Venzl <[email protected]>
1 parent 29f9812 commit 1575e1e

File tree

105 files changed

+568
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+568
-164
lines changed
 

‎python/python-oracledb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ build a container with the samples and a running Oracle Database.
3434

3535
### Notebooks
3636

37-
The [sample_notebooks](./sample_notebooks) directory has Jupyter notebooks with
38-
runnable examples.
37+
The [notebooks](./notebooks) directory has Jupyter notebooks with runnable
38+
examples.
3939

4040
## About python-oracledb
4141

‎python/python-oracledb/app_context.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----------------------------------------------------------------------------
2-
# Copyright (c) 2016, 2023, Oracle and/or its affiliates.
2+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates.
33
#
44
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
55
#
@@ -38,8 +38,9 @@
3838
import oracledb
3939
import sample_env
4040

41-
# this script is currently only supported in python-oracledb thick mode
42-
oracledb.init_oracle_client(lib_dir=sample_env.get_oracle_client())
41+
# determine whether to use python-oracledb thin mode or thick mode
42+
if not sample_env.get_is_thin():
43+
oracledb.init_oracle_client(lib_dir=sample_env.get_oracle_client())
4344

4445
# client context attributes to be set
4546
APP_CTX_NAMESPACE = "CLIENTCONTEXT"

0 commit comments

Comments
 (0)