Data transfer script (#114)

Transfers data betwenn two sql instances.
Limited in data volume. Should be good enough for now.

---------

Co-authored-by: Tim <tim.ronneburg@outlook.de>
This commit is contained in:
2023-09-11 21:10:36 +02:00
committed by GitHub
parent d64f53eca9
commit ba44b082b8
4 changed files with 62 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ See the [CONTRIBUTING.md](CONTRIBUTING.md) about how code should be formatted an
## DB Connection settings
To connect to the SQL db see [sql/connector.py](./src/aki_prj23_transparenzregister/utils/postgres/connector.py)
To connect to the SQL db see [sql/connector.py](./src/aki_prj23_transparenzregister/utils/sql/connector.py)
To connect to the Mongo db see [connect]
Create a `secrets.json` in the root of this repo with the following structure (values to be replaces by desired config):
@@ -38,8 +38,10 @@ Create a `secrets.json` in the root of this repo with the following structure (v
}
```
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a `.env` file with the following layout:
```ini
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a `.env` file with
the following layout:
```
PYTHON_POSTGRES_USERNAME=postgres
PYTHON_POSTGRES_PASSWORD=postgres
PYTHON_POSTGRES_HOST=localhost