Skip to content

Commit

Permalink
Ordnerstruktur vereinheitlicht (#119)
Browse files Browse the repository at this point in the history
* change folder structure

* fix filenames

* add gitignore to enforce folder structure

* Links an neue Ordnerstruktur anpassen
  • Loading branch information
Steve2955 authored Jan 19, 2021
1 parent c2f8d95 commit ae973fb
Show file tree
Hide file tree
Showing 138 changed files with 339 additions and 282 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ jobs:
- run: |
mkdir .old &&
rsync -vr ./* .old/ --exclude .old &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/DBS/README.md > DBS/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/SWE/README.md > SWE/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/PRO/README.md > PRO/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/RES/README.md > RES/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/NET/README.md > NET/README.md
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/DBS-DORENDORF/README.md > DBS-DORENDORF/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/SWE-KASCHE/README.md > SWE-KASCHE/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/PRO-KASCHE/README.md > PRO-KASCHE/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/RES-GUENTHER/README.md > RES-GUENTHER/README.md &&
awk '/!\[/{gsub(/<!--/,"{");gsub(/-->/,"}")};{gsub("<!--pagebreak-->","\\pagebreak")};{gsub("<!--newpage-->","\\newpage")};{gsub("<!--clearpage-->","\\clearpage")};{gsub("<!----------","---")};{gsub("---------->","...")};{print}' .old/NET-FELDMANN/README.md > NET-FELDMANN/README.md
- run: |
mkdir output
- uses: docker://rstropek/pandoc-latex:latest # generate DBS pdf
- uses: docker://rstropek/pandoc-latex:latest # generate DBS-DORENDORF pdf
with:
args: --output=output/DBS.pdf --resource-path=DBS/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose DBS/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate SWE pdf
args: --output=output/DBS-DORENDORF.pdf --resource-path=DBS-DORENDORF/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose DBS-DORENDORF/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate SWE-KASCHE pdf
with:
args: --output=output/SWE.pdf --resource-path=SWE/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose SWE/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate PRO pdf
args: --output=output/SWE-KASCHE.pdf --resource-path=SWE-KASCHE/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose SWE-KASCHE/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate PRO-KASCHE pdf
with:
args: --output=output/PRO.pdf --resource-path=PRO/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose PRO/README.md
args: --output=output/PRO-KASCHE.pdf --resource-path=PRO-KASCHE/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose PRO-KASCHE/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate RES pdf
with:
args: --output=output/RES.pdf --resource-path=RES/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose RES/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate NET pdf
args: --output=output/RES-GUENTHER.pdf --resource-path=RES-GUENTHER/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose RES-GUENTHER/README.md
- uses: docker://rstropek/pandoc-latex:latest # generate NET-FELDMANN pdf
with:
args: --output=output/NET.pdf --resource-path=NET/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose NET/README.md
args: --output=output/NET-FELDMANN.pdf --resource-path=NET-FELDMANN/ --template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v1.4.0/eisvogel.tex --pdf-engine=xelatex --listings -f markdown+raw_tex --verbose NET-FELDMANN/README.md
- uses: actions/upload-artifact@master # upload pdfs as an artifact
with:
name: output
Expand All @@ -47,7 +47,7 @@ jobs:
name: PDFs
body: Automated release
gzip: false
files: output/DBS.pdf
files: output/DBS-DORENDORF.pdf
allow_override: true
- uses: meeDamian/[email protected] # override release to attach another pdf
with:
Expand All @@ -56,7 +56,7 @@ jobs:
name: PDFs
body: Automated release
gzip: false
files: output/PRO.pdf
files: output/PRO-KASCHE.pdf
allow_override: true
- uses: meeDamian/[email protected] # override release to attach another pdf
with:
Expand All @@ -65,7 +65,7 @@ jobs:
name: PDFs
body: Automated release
gzip: false
files: output/SWE.pdf
files: output/SWE-KASCHE.pdf
allow_override: true
- uses: meeDamian/[email protected] # override release to attach another pdf
with:
Expand All @@ -74,7 +74,7 @@ jobs:
name: PDFs
body: Automated release
gzip: false
files: output/NET.pdf
files: output/RES-GUENTHER.pdf
allow_override: true
- uses: meeDamian/[email protected] # override release to attach another pdf
with:
Expand All @@ -83,5 +83,5 @@ jobs:
name: PDFs
body: Automated release
gzip: false
files: output/NET.pdf
files: output/NET-FELDMANN.pdf
allow_override: true
2 changes: 1 addition & 1 deletion .github/workflows/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
# Git commit name.
COMMIT_NAME: "TOCGEN"
CREATE_PR: false
TARGET_PATHS: "./DBS/README.md, ./RES/README.md, ./PRO/README.md, ./SWE/README.md, ./NET/README.md"
TARGET_PATHS: "./DBS-DORENDORF/**README.md, ./RES-GUENTHER/**README.md, ./PRO-KASCHE/**README.md, ./SWE-KASCHE/**README.md, ./NET-FELDMANN/**README.md"
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# ignore everything by default #################################################

**

# root-level README ############################################################

!/README.md

# github workflows #############################################################

!/.github/
!/.github/workflows
!/.github/workflows/*.yml

# modul folders ################################################################

!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/README.md

# appendix folder ##############################################################

!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix/*.md
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix/assets/
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix/assets/*.svg
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix/assets/*.png
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/appendix/assets/*.jpg

# assets folder ################################################################

!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/assets
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/assets/*.svg
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/assets/*.png
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/assets/*.jpg

# extras folder ################################################################

!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/*.md
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/*.pdf
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/*.svg
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/*.png
!/[A-Z]*[A-Z]-[A-Z]*[A-Z]/extra/**/*.jpg

# just in case #################################################################
!.gitignore
4 changes: 2 additions & 2 deletions DBS/README.md → DBS-DORENDORF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ festen Integrationsvorschriften (Zuordnung zu Objekt- und Beziehungstypen) und O
- **Schema:** formalisierte Darstellung des Modells (grafisch oder normalsprachlich) nach bestimmten Vorschriften
- Schema-Mapping: Abbilden von Objekten eines höheren Schemas auf ein tieferes Schema
- grafisch werden Schemata üblicherweise mittels Entity Relationship Model (ERM) dargestellt:
- ![Beispiel-ERM: Menschen sind Halter von Fahrzeugen](resources/erm-bsp.png)<!-- width=300px -->
- ![Beispiel-ERM: Menschen sind Halter von Fahrzeugen](assets/erm-bsp.png)<!-- width=300px -->
- Leseregel für ERM: von links nach rechts und oben nach unten, sodass ein sinnvoller Satz gebildet werden kann

### Vorteile von Datenbanken
Expand Down Expand Up @@ -180,7 +180,7 @@ $$R \subset A \times B$$
- **Beziehungstypen:** Verallgemeinerung von Beziehungen zwischen Objekten (Entitäten)
- **Datenintegrität:** "Makelosigkeit" der Daten

![zusätzliche Begriffe aus dem Video](resources/db_begriffe_screenshot.png)<!-- width=500px -->
![zusätzliche Begriffe aus dem Video](assets/db_begriffe_screenshot.png)<!-- width=500px -->

### Operationen

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ Info-Seite -> https://docs.microsoft.com/de-de/sql/ssms/download-sql-server-mana

Die Bestandteile:

![Bestandteile eines ERD](resources/ERD_Bestandteile.png)<!-- width=400px -->
![Bestandteile eines ERD](assets/ERD_Bestandteile.png)<!-- width=400px -->

Beispiel-ERD:

![Beispiel-ERD](resources/unternehmenERD.png)<!-- width=400px -->
![Beispiel-ERD](assets/unternehmenERD.png)<!-- width=400px -->

## Tabellenschema

Expand All @@ -110,7 +110,7 @@ Beispiel-ERD:
| höchstens eins | optionale Beziehung, ?:1 |
| keins oder eins oder viele | optionale Beziehung, ?:n |

![Arten von Constraints](resources/constraints.png)<!-- width=400px -->
![Arten von Constraints](assets/constraints.png)<!-- width=400px -->

- im Zweifelsfall das flexiblere verwenden, für den Fall, dass sich in der Zukunft die Anforderungen ändern

Expand Down Expand Up @@ -441,7 +441,7 @@ GROUP BY autor.name, autor.Vorname HAVING COUNT(*) > 1;

- Vereinigung von Abfragen

![Übersicht von Joins](./resources/joins.png)<!-- width=500px -->
![Übersicht von Joins](./assets/joins.png)<!-- width=500px -->

```sql
SELECT titel, name FROM buch, verlag WHERE buch.verlag_id = verlag.id;
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed DBS/MATERIALS/Skript.pdf
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit ae973fb

Please sign in to comment.