chore: clean up and correct SQLDelight guide code snippets, fix swift mislabeling, and remove redundant constructor property
Some checks failed
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m48s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m17s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 3m58s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Failing after 37s

This commit is contained in:
Stefan Mogeritsch 2026-03-15 20:07:46 +01:00
parent 5f6114450d
commit b05b2f8612
2 changed files with 4 additions and 2 deletions

View File

@ -197,7 +197,7 @@ actual class DatabaseDriverFactory {
In `shared/src/commonMain/kotlin/repository/UserRepository.kt`: In `shared/src/commonMain/kotlin/repository/UserRepository.kt`:
```kotlin ```kotlin
class UserRepository(private val database: AppDatabase) { class UserRepository(database: AppDatabase) {
private val queries = database.userQueries private val queries = database.userQueries
@ -327,7 +327,7 @@ class MainActivity : ComponentActivity() {
In `iosApp/iosApp/iOSApp.swift`: In `iosApp/iosApp/iOSApp.swift`:
```kotlin ```swift
@main @main
struct iOSApp : App { struct iOSApp : App {

View File

@ -90,6 +90,8 @@ Auf Basis von IDE-Warnings/Errors wurden folgende Korrekturen durchgeführt:
| `05_Backend/Guides/Database_Best_Practices.md` | `...` in Kotlin-Code-Blöcken → "Expecting an element" | Durch Kommentare ersetzt | | `05_Backend/Guides/Database_Best_Practices.md` | `...` in Kotlin-Code-Blöcken → "Expecting an element" | Durch Kommentare ersetzt |
| `02_Guides/SQLDelight_Integration_Compose_Multiplatform.md` | `package`/`import`-Direktiven in Code-Fragmenten → IDE-Fehler | Alle `package`- und `import`-Zeilen aus Kotlin-Blöcken entfernt | | `02_Guides/SQLDelight_Integration_Compose_Multiplatform.md` | `package`/`import`-Direktiven in Code-Fragmenten → IDE-Fehler | Alle `package`- und `import`-Zeilen aus Kotlin-Blöcken entfernt |
| `02_Guides/SQLDelight_Web_Asynchron.md` | `package`/`import`-Direktiven in Code-Fragmenten → IDE-Fehler | Alle `package`- und `import`-Zeilen aus Kotlin-Blöcken entfernt | | `02_Guides/SQLDelight_Web_Asynchron.md` | `package`/`import`-Direktiven in Code-Fragmenten → IDE-Fehler | Alle `package`- und `import`-Zeilen aus Kotlin-Blöcken entfernt |
| `02_Guides/SQLDelight_Integration_Compose_Multiplatform.md` | `private val database` → Warning "Constructor parameter never used as property" | `val` entfernt: `UserRepository(database: AppDatabase)` |
| `02_Guides/SQLDelight_Integration_Compose_Multiplatform.md` | Swift-Code als ` ```kotlin ` markiert → "Expecting an element" / "Unexpected tokens" | Code-Fence auf ` ```swift ` korrigiert |
--- ---