From b05b2f861225aefee3edbbd43cdc575adafdf2b9 Mon Sep 17 00:00:00 2001 From: stefan Date: Sun, 15 Mar 2026 20:07:46 +0100 Subject: [PATCH] chore: clean up and correct SQLDelight guide code snippets, fix `swift` mislabeling, and remove redundant constructor property --- .../02_Guides/SQLDelight_Integration_Compose_Multiplatform.md | 4 ++-- .../2026-03-15_Session_Log_Dokumentation_Cleanup.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/02_Guides/SQLDelight_Integration_Compose_Multiplatform.md b/docs/02_Guides/SQLDelight_Integration_Compose_Multiplatform.md index 0f73a1ef..336216eb 100644 --- a/docs/02_Guides/SQLDelight_Integration_Compose_Multiplatform.md +++ b/docs/02_Guides/SQLDelight_Integration_Compose_Multiplatform.md @@ -197,7 +197,7 @@ actual class DatabaseDriverFactory { In `shared/src/commonMain/kotlin/repository/UserRepository.kt`: ```kotlin -class UserRepository(private val database: AppDatabase) { +class UserRepository(database: AppDatabase) { private val queries = database.userQueries @@ -327,7 +327,7 @@ class MainActivity : ComponentActivity() { In `iosApp/iosApp/iOSApp.swift`: -```kotlin +```swift @main struct iOSApp : App { diff --git a/docs/99_Journal/2026-03-15_Session_Log_Dokumentation_Cleanup.md b/docs/99_Journal/2026-03-15_Session_Log_Dokumentation_Cleanup.md index 68f8d374..50a9ba72 100644 --- a/docs/99_Journal/2026-03-15_Session_Log_Dokumentation_Cleanup.md +++ b/docs/99_Journal/2026-03-15_Session_Log_Dokumentation_Cleanup.md @@ -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 | | `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_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 | ---