mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 19:43:56 +02:00
Bugfix update for transfer of company data from mongo to sql (#121)
Fixed the following errors: - Typo in readme.md - Mongo delivers the last_update of an company as a string not as date. Added: - Entrypoint description in readme.md
This commit is contained in:
@ -12,6 +12,13 @@
|
||||
|
||||
See the [CONTRIBUTING.md](CONTRIBUTING.md) about how code should be formatted and what kind of rules we set ourselves.
|
||||
|
||||
## Available entrypoints
|
||||
|
||||
The project has currently the following entrypoint available:
|
||||
|
||||
- data-transfer > Transfers all the data from the mongodb into the sql db to make it available as production data.
|
||||
- reset-sql > Resets all sql tables in the connected db.
|
||||
|
||||
## DB Connection settings
|
||||
|
||||
To connect to the SQL db see [sql/connector.py](./src/aki_prj23_transparenzregister/utils/sql/connector.py)
|
||||
@ -20,7 +27,7 @@ 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):
|
||||
|
||||
```json
|
||||
{
|
||||
{
|
||||
"postgres": {
|
||||
"username": "postgres",
|
||||
"password": "postgres",
|
||||
|
Reference in New Issue
Block a user