Skip to content

Commit

Permalink
Add DBAPI2 compliant web-socket driver
Browse files Browse the repository at this point in the history
In order to implement a web-socket based SQLA dialect for the Exasol-DB,
a DBAPI2 compliant web-socket driver is added. 

The current implementation of the driver is based on the `pyexasol` project
(If needed this can be changed in the future).

Additionally the unit and integration tests have been restructured
to simplify the test setup and execution. The restructuring is not completely done yet,
it rather should be seen as step towards the future layout/structure.
  • Loading branch information
Nicoretti committed Mar 7, 2023
1 parent 587ff75 commit 8079ebf
Show file tree
Hide file tree
Showing 19 changed files with 2,299 additions and 455 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
@@ -1 +1,2 @@
sqlalchemy_exasol/_version.py export-subst
sqlalchemy_exasol/version.py linguist-generated=true
poetry.lock linguist-generated=true
10 changes: 6 additions & 4 deletions .github/workflows/ci-cd.yml
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand All @@ -117,7 +117,9 @@ jobs:
ITDE_TAG: "0.11.0"

- name: Run Test for Python ${{ matrix.python }} using ${{ matrix.connector }}
run: poetry run nox -s integration-tests -- -- --connector ${{ matrix.connector }} --db-version ${{ matrix.exasol_version }}
run: |
poetry run nox -s unit-tests
poetry run nox -s integration-tests -- -- --connector ${{ matrix.connector }} --db-version ${{ matrix.exasol_version }}
upload_to_pypi:
runs-on: ubuntu-latest
Expand All @@ -143,7 +145,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand All @@ -121,7 +121,9 @@ jobs:
ITDE_TAG: "0.11.0"

- name: Run Test for Python ${{ matrix.python }} using ${{ matrix.connector }}
run: poetry run nox -s integration-tests -- -- --connector ${{ matrix.connector }} --db-version ${{ matrix.exasol_version }}
run: |
poetry run nox -s unit-tests
poetry run nox -s integration-tests -- -- --connector ${{ matrix.connector }} --db-version ${{ matrix.exasol_version }}
build_package:
runs-on: ubuntu-latest
Expand All @@ -147,7 +149,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.1.13
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/gh-pages.yaml
Expand Up @@ -12,8 +12,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.2

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link-check.yaml
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v2.1.5
with:
poetry-version: 1.2.1
poetry-version: 1.2.2

- name: Install python project dependencies
run: poetry install --no-root
Expand Down
49 changes: 0 additions & 49 deletions Migration-Notes.md

This file was deleted.

@@ -0,0 +1,35 @@
.. A new scriv changelog fragment.
..
.. Uncomment the header that is right (remove the leading dots).
..
.. 🗑️ Removed
.. ----------
..
.. - A bullet item for the Removed category.
..
✨ Added
---------
* Add websocket based dbapi2 compliant database driver
..
.. - A bullet item for the Added category.
..
.. 🔧 Changed
.. -----------
..
.. - A bullet item for the Changed category.
..
.. 🚧 Deprecated
.. --------------
..
.. - A bullet item for the Deprecated category.
..
.. 🐞 Fixed
.. ---------
..
.. - A bullet item for the Fixed category.
..
.. 🔐 Security
.. -----------
..
.. - A bullet item for the Security category.
..
Empty file added exasol/driver/__init__.py
Empty file.

0 comments on commit 8079ebf

Please sign in to comment.