mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-12-21 12:58:54 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user