Examples#
Preparation#
Some basic preparation steps are required to see examples in action.
Install PyExasol with Optional Dependencies.
Download the PyExasol source code.
Make sure you have installed or access to an Exasol database and have created a dedicated schema for testing. For testing purposes, you may use
the free Exasol Personal Edition
exasol/docker-db, which can be easily accessed by using poetry run – nox -s db:start
Open the
/examples/directory and edit the file_config.py. Input your Exasol credentials.Run this script to prepare data set for testing:
python examples/create_example_data.py
That’s all. Now, you may run examples in any order like common Python scripts, e.g.:
python examples/features/basic_sql_operations/connect_and_query.py
To run all of the examples, you can use this nox session:
poetry run -- nox -s run:examples