File tree Expand file tree Collapse file tree 4 files changed +252
-235
lines changed
Expand file tree Collapse file tree 4 files changed +252
-235
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,7 @@ digiroad_stops*.csv
4545
4646# possible jore3 backup file
4747jore3dump /*
48- ! jore3dump /put-bak-file-here.txt
48+ ! jore3dump /put-bak-file-here.txt
49+
50+ # stop place import script environment file
51+ .env
Original file line number Diff line number Diff line change @@ -531,3 +531,33 @@ If a test case fails because the `com.microsoft.sqlserver.jdbc.SQLServerExceptio
531531the error message says that it cannot find a database object, the problem is that the script which
532532creates 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+ By default the script runs from the local jore3 test database and uses the base local Jore4 Hasura instance as the target.
542+ You can change the source database and target Hasura instance by creating a `.env` file in the same directory as the script.
543+
544+ Set the values for variables you want to set:
545+
546+ ```
547+ GRAPHQL_URL=
548+ GRAPHQL_SECRET=
549+ JORE3_USERNAME=
550+ JORE3_PASSWORD=
551+ JORE3_DATABASE_URL=
552+ JORE3_DATABASE_NAME=
553+ ```
554+
555+ ### Requirements
556+
557+ You need to run the `import.py` script using Python 3 and it requires the following libraries:
558+
559+ - pymssql
560+ - requests
561+ - simplejson
562+
563+ They can be installed by running `pip install -r requirements.txt`
You can’t perform that action at this time.
0 commit comments