Skip to content

Commit

Permalink
Updated sqlx4k to version 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smyrgeorge committed Oct 7, 2024
1 parent eec2402 commit 0b0caf8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class MultiplatformExamplesConventions : Plugin<Project> {
project.extensions.configure<KotlinMultiplatformExtension> {
val availableTargets = mapOf(
Pair("iosArm64") { iosArm64 { binaries { executable() } } },
// Pair("androidNativeArm64") { androidNativeArm64 { binaries { executable() } } },
// Pair("androidNativeX64") { androidNativeX64 { binaries { executable() } } },
Pair("androidNativeArm64") { androidNativeArm64 { binaries { executable() } } },
Pair("androidNativeX64") { androidNativeX64 { binaries { executable() } } },
Pair("macosArm64") { macosArm64 { binaries { executable() } } },
Pair("macosX64") { macosX64 { binaries { executable() } } },
// Pair("linuxArm64") { linuxArm64 { binaries { executable() } } },
// Pair("linuxX64") { linuxX64 { binaries { executable() } } },
Pair("linuxArm64") { linuxArm64 { binaries { executable() } } },
Pair("linuxX64") { linuxX64 { binaries { executable() } } },
// Pair("mingwX64") { mingwX64 { binaries { executable() } } },
)

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = "io.github.smyrgeorge"
version = "0.20.0"
version = "0.21.0"

plugins {
alias(libs.plugins.dokka)
Expand Down
1 change: 1 addition & 0 deletions examples/postgres-sqldelight/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ kotlin {
}

sqldelight {
linkSqlite = false
databases.register("Database") {
generateAsync = true
packageName = "db.entities"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ assertk = "0.28.1"
# https://github.com/touchlab/Stately
stately = "2.1.0"
# https://github.com/smyrgeorge/sqlx4k
sqlx4k = "0.20.0"
sqlx4k = "0.21.0"

[libraries]
gradle-kotlin-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SqlDelightCursor(
}

override fun getBoolean(index: Int): Boolean? = getString(index)?.toBoolean()
override fun getBytes(index: Int): ByteArray? = current.get(index).valueAsByteArray()
override fun getBytes(index: Int): ByteArray? = error("This feature is not yes supported.")
override fun getDouble(index: Int): Double? = getString(index)?.toDouble()
fun getShort(index: Int): Short? = getString(index)?.toShort()
fun getInt(index: Int): Int? = getString(index)?.toInt()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.smyrgeorge.sqlx4k.sqldelight

import app.cash.sqldelight.db.SqlPreparedStatement
import io.github.smyrgeorge.sqlx4k.impl.ExtendedStatement
import io.github.smyrgeorge.sqlx4k.impl.statement.ExtendedStatement
import kotlinx.datetime.DateTimePeriod
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDate
Expand Down

0 comments on commit 0b0caf8

Please sign in to comment.