Skip to content

Commit

Permalink
Add new tap_schema module
Browse files Browse the repository at this point in the history
Add a new tap_schema module which performs the same functions as the
existing tap module and is designed to replace it.

The new module has an object-oriented organization rather than a mix
of functions and classes as in the old module. The new control flow
and translation of the data from the schema should be easier to follow
now than before, as well as more convenient to use via the Python API.

The two main classes are the TableManager which creates the SQLAlchemy
metadata for the TAP_SCHEMA database and the DataLoader, which loads
the schema data.

New test modules were added, one of which uses testing.postgresql to
create a PostgreSQL database, allowing the classes to be easily tested
against a more production-like database than SQLite.
  • Loading branch information
JeremyMcCormick committed Aug 14, 2024
1 parent 6686cba commit 0f4c1fc
Show file tree
Hide file tree
Showing 4 changed files with 837 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/dev/internals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ Python API
.. automodapi:: felis.tests.postgresql
:include-all-objects:
:no-inheritance-diagram:

.. automodapi:: felis.tap_schema
:include-all-objects:
:no-inheritance-diagram:
Loading

0 comments on commit 0f4c1fc

Please sign in to comment.