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
This pull request includes several significant changes aimed at enhancing the database functionality, improving metadata management, and updating configurations. The most important changes include adding metadata queries, modifying the
KeyValueStorage
class to support metadata, and updating the Gradle configuration.Enhancements to Database Functionality:
library/src/commonMain/kotlin/com/mercury/sqkon/db/KeyValueStorage.kt
: Added metadata support to theKeyValueStorage
class, including methods for updating read and write timestamps and a newmetadata
method to retrieve metadata information. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]Metadata Management:
library/src/commonMain/kotlin/com/mercury/sqkon/db/MetadataQueries.kt
: Introduced a newMetadataQueries
class to handle metadata operations.library/src/commonMain/kotlin/com/mercury/sqkon/db/adapters/InstantColumnAdapter.kt
: Added anInstantColumnAdapter
for encoding and decodingInstant
values in the database.library/src/commonMain/kotlin/com/mercury/sqkon/db/utils/RequestHash.kt
: Created aRequestHash
class to manage transaction hashes for metadata updates.Gradle Configuration Updates:
.github/workflows/ci.yml
: Added a new step to verify SQLDelight migrations in the CI workflow.gradle.properties
: Updated the version name to1.0.0-alpha02
and removed deprecated Kotlin Multiplatform properties. [1] [2]Code Refactoring and Cleanup:
library/src/androidInstrumentedTest/kotlin/com/mercury/sqkon/db/SqkonDatabaseDriverTest.android.kt
: Refactored thecreateEntityQueries
function todriverFactory
.library/src/androidMain/kotlin/com/mercury/sqkon/db/Sqkon.android.kt
: Updated theSqkon
function to includemetadataQueries
.library/src/commonMain/kotlin/com/mercury/sqkon/db/Sqkon.kt
: Modified theSqkon
class to integratemetadataQueries
. [1] [2]These changes collectively enhance the functionality, maintainability, and performance of the database module.