python-oracledb/samples
Anthony Tuininga 18ae81a9ff Usage updates for Flask demos. 2022-11-19 10:35:39 -07:00
..
data Added sample for loading CSV data. 2022-11-10 15:53:44 -07:00
sample_container Enable per-PDB DRCP for the sample container. 2022-06-22 15:32:55 -06:00
sql Added sample for loading CSV data. 2022-11-10 15:53:44 -07:00
tutorial Fix links. 2022-06-17 13:30:02 -06:00
README.md Initial commit. 2022-05-20 16:08:18 -06:00
app_context.py Improvement to samples. 2022-06-08 11:14:24 -06:00
aq_notification.py Added support for getting the message id of the AQ message which generated 2022-06-17 13:32:22 -06:00
array_dml_rowcounts.py Improvement to samples. 2022-06-08 11:14:24 -06:00
batch_errors.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bind_insert.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bind_query.py Improvement to samples. 2022-06-08 11:14:24 -06:00
bulk_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
call_timeout.py Improvement to samples. 2022-06-08 11:14:24 -06:00
connection_pool.py Usage updates for Flask demos. 2022-11-19 10:35:39 -07:00
cqn.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
cqn_pool.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
create_schema.py Initial commit. 2022-05-20 16:08:18 -06:00
database_change_notification.py Update CQN samples to use client_initiated. 2022-10-26 17:37:16 -06:00
database_shutdown.py Initial commit. 2022-05-20 16:08:18 -06:00
database_startup.py Initial commit. 2022-05-20 16:08:18 -06:00
dbms_output.py Improvement to samples. 2022-06-08 11:14:24 -06:00
dml_returning_multiple_rows.py Improvement to samples. 2022-06-08 11:14:24 -06:00
drcp_pool.py Usage updates for Flask demos. 2022-11-19 10:35:39 -07:00
drop_schema.py Initial commit. 2022-05-20 16:08:18 -06:00
editioning.py Initial commit. 2022-05-20 16:08:18 -06:00
generic_row_factory.py Improvement to samples. 2022-06-08 11:14:24 -06:00
implicit_results.py Improvement to samples. 2022-06-08 11:14:24 -06:00
insert_geometry.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
json_blob.py Improvement to samples. 2022-06-08 11:14:24 -06:00
json_direct.py Improvement to samples. 2022-06-08 11:14:24 -06:00
json_type.py Improvement to samples. 2022-06-08 11:14:24 -06:00
last_rowid.py Improvement to samples. 2022-06-08 11:14:24 -06:00
load_csv.py Added sample for loading CSV data. 2022-11-10 15:53:44 -07:00
multi_consumer_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
object_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
oracledb_upgrade.py Initial commit. 2022-05-20 16:08:18 -06:00
plsql_collection.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
plsql_function.py Improvement to samples. 2022-06-08 11:14:24 -06:00
plsql_procedure.py Improvement to samples. 2022-06-08 11:14:24 -06:00
plsql_record.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
query.py Improvement to samples. 2022-06-08 11:14:24 -06:00
query_arraysize.py Improvement to samples. 2022-06-08 11:14:24 -06:00
query_strings_as_bytes.py Improvement to samples. 2022-06-08 11:14:24 -06:00
raw_aq.py Improvement to samples. 2022-06-08 11:14:24 -06:00
ref_cursor.py Improvement to samples. 2022-06-08 11:14:24 -06:00
return_lobs_as_strings.py Improvement to samples. 2022-06-08 11:14:24 -06:00
return_numbers_as_decimals.py Improvement to samples. 2022-06-08 11:14:24 -06:00
rows_as_instance.py Improvement to samples. 2022-06-08 11:14:24 -06:00
sample_env.py Prefer latest samples for Dockerfile container. 2022-06-09 20:52:47 -06:00
scrollable_cursors.py Improvement to samples. 2022-06-08 11:14:24 -06:00
session_callback.py Initial commit. 2022-05-20 16:08:18 -06:00
session_callback_plsql.py Initial commit. 2022-05-20 16:08:18 -06:00
sharding_number_key.py Initial commit. 2022-05-20 16:08:18 -06:00
soda_basic.py Improvement to samples. 2022-06-08 11:14:24 -06:00
soda_bulk_insert.py Improvement to samples. 2022-06-08 11:14:24 -06:00
spatial_to_geopandas.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
sqlp.py Clarify the unsupported type example comment. 2022-06-01 14:32:22 -06:00
subclassing.py Improvement to samples. 2022-06-08 11:14:24 -06:00
transaction_guard.py Initial commit. 2022-05-20 16:08:18 -06:00
type_handlers_json_strings.py Improvement to samples. 2022-06-08 11:14:24 -06:00
type_handlers_objects.py Added support for binding and fetching data of type DB_TYPE_OBJECT 2022-11-01 14:33:39 -06:00
universal_rowids.py Improvement to samples. 2022-06-08 11:14:24 -06:00

README.md

This directory contains samples for python-oracledb.

  1. The schemas and SQL objects that are referenced in the samples can be created by running the Python script create_schema.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas and edition that will be created, unless a number of environment variables are set as documented in the Python script sample_env.py. Run the script using the following command:

    python create_schema.py
    
  2. Run a Python script, for example:

    python query.py
    
  3. After running python-oracledb samples, the schemas and SQL objects can be dropped by running the Python script drop_schema.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas and edition that will be dropped, unless a number of environment variables are set as documented in the Python script sample_env.py. Run the script using the following command:

    python drop_schema.py