Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for #4
Key New methods:
deleteExpired
deleteStale
selectResult
This pull request includes various updates and improvements to the
library
project, including changes to the SQLDelight integration, addition of cache busting features, and updates to dependencies. The most important changes are grouped by their themes below:SQLDelight Integration and Database Schema Updates:
verifySqlDelightMigration
step to the CI workflow to ensure SQLDelight migrations are verified. (.github/workflows/ci.yml
)EntityQueries
to include new fieldswrite_at
andread_at
for better tracking of entity states. (library/src/commonMain/kotlin/com/mercury/sqkon/db/EntityQueries.kt
) [1] [2] [3] [4] [5] [6] [7]Cache Busting and Expiry Features:
README.MD
to handle expiry and stale data. (README.MD
)KeyValueStorage
to support expiry times for entities and added methods to manage expired data. (library/src/commonMain/kotlin/com/mercury/sqkon/db/KeyValueStorage.kt
) [1] [2] [3]Dependency and Version Updates:
1.0.0-alpha02
and upgraded dependencies such askotlinx-coroutines
andagp
. (gradle.properties
,gradle/libs.versions.toml
) [1] [2]app.cash.sqldelight.VERSION
inbuild.gradle.kts
and specified the SQLite dialect version. (library/build.gradle.kts
) [1] [2]Code Refactoring and Cleanup:
Sqkon
initialization to separatemetadataQueries
andentityQueries
. (library/src/androidMain/kotlin/com/mercury/sqkon/db/Sqkon.android.kt
)gradle.properties
. (gradle.properties
)Documentation and Readability Improvements:
README.MD
. (README.MD
)These changes collectively enhance the functionality, performance, and maintainability of the project.