Skip to content

Commit 6b972e2

Browse files
committed
Update importer script for new data model
- Save stop details in the stop_place - quay model - Use requirements.txt to define libraries - Update README
1 parent 408829d commit 6b972e2

File tree

3 files changed

+216
-192
lines changed

3 files changed

+216
-192
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -531,3 +531,21 @@ If a test case fails because the `com.microsoft.sqlserver.jdbc.SQLServerExceptio
531531
the error message says that it cannot find a database object, the problem is that the script which
532532
creates the source MSSQL database (_docker/mssql_init/populate.sql_) was changed. You can solve this problem by running the command:
533533
`./development.sh recreate` at command prompt.
534+
535+
---
536+
537+
## Jore3 stop import script
538+
539+
### How to use
540+
541+
Modify the `importer.py` script by redefining the source database details and the target graphql address and admin secret. By default the script runs from the local jore3 test database and uses the base local Jore4 Hasura instance as the target.
542+
543+
### Requirements
544+
545+
You need to run the `import.py` script using Python 3 and it requires the following libraries:
546+
547+
- pymssql
548+
- requests
549+
- simplejson
550+
551+
They can be installed by running `pip install -r requirements.txt`

0 commit comments

Comments
 (0)