Make samples point to python-oracledb at runtime.

This commit is contained in:
Anthony Tuininga 2024-05-31 16:47:41 -06:00
parent 83774f9520
commit 93d69d861b
2 changed files with 14 additions and 1 deletions

View File

@ -5,7 +5,7 @@
**cx_Oracle has a major new release under a new name and homepage
[python-oracledb](https://oracle.github.io/python-oracledb/).**
**New projects should install python-oracledb instead of cx_Oracle.**
**New projects should install python-oracledb instead of cx_Oracle: python -m pip install oracledb**
**The new source code and samples can be found at
[github.com/oracle/python-oracledb](https://github.com/oracle/python-oracledb).**

View File

@ -41,6 +41,19 @@
# user for on premises databases is SYSTEM.
#------------------------------------------------------------------------------
print("""
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! cx_Oracle was renamed to python-oracledb. !!!
!!! Use python-oracledb instead of cx_Oracle for development. !!!
!!! Install with: !!!
!!! python -m pip install oracledb !!!
!!! and use the new samples in: !!!
!!! https://github.com/oracle/python-oracledb/tree/main/samples !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
""")
import getpass
import os
import sys