Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Motivation

<!-- short reason why this PR exists -->

## Notes

<!-- what was done and how, based on commits -->
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@ local.properties
.idea
.gradle
build
kotlin-js-store

node_modules
kotlin-js-store

yarn.lock
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ supports [sqlite3](https://www.npmjs.com/package/sqlite3) Node.js module

## Gradle set up

Pretty much it's almost the same as with https://sqldelight.github.io/sqldelight/2.1.0/js_sqlite
Pretty much it's almost the same as with https://sqldelight.github.io/sqldelight/2.3.2/js_sqlite

Initialization of SQLDelight is needed

```kotlin
plugins {
kotlin("js") version "2.2.20" // probably would work even with different one
id("app.cash.sqldelight") version "2.1.0" // for version 0.5.0 and higher
kotlin("js") version "2.3.21" // probably would work even with different one
id("app.cash.sqldelight") version "2.3.2" // for version 0.5.0 and higher
}
Expand All @@ -42,7 +42,7 @@ kotlin {
binaries.executable()
nodejs {
dependencies {
implementation("cz.sazel.sqldelight:node-sqlite3-driver-js:0.5.0")
implementation("cz.sazel.sqldelight:node-sqlite3-driver-js:0.6.0")
}
}
}
Expand Down Expand Up @@ -75,7 +75,7 @@ tasks["kotlinNpmInstall"].finalizedBy(bindingsInstall)

## Simple example

Queries are written as here - https://sqldelight.github.io/sqldelight/2.1.0/js_sqlite/#using-queries
Queries are written as here - https://sqldelight.github.io/sqldelight/2.3.2/js_sqlite/#using-queries

```kotlin
suspend fun main() {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

val defaultGroupId = "cz.sazel.sqldelight"
val nameStr = "node-sqlite3-driver"
val versionBase = "0.5.0"
val versionBase = "0.6.0"

val localProperties = Properties().apply {
try {
Expand Down Expand Up @@ -114,7 +114,7 @@
}
}

val javadocJar = tasks.register<Jar>("javadocJar") {

Check notice on line 117 in build.gradle.kts

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Function or property has platform type

Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.
dependsOn(tasks.dokkaGenerate.get())
archiveClassifier.set("javadoc")
from(layout.buildDirectory.dir("dokka/html"))
Expand Down
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[versions]
detekt = "1.23.7"
dokka = "2.0.0"
kotlin = "2.2.20"
kotlinCoroutines = "1.10.2"
kover = "0.9.1"
node-sqlite3 = "5.1.7"
node-js = "22.13.0"
maven-publish = "0.34.0"
sqldelight = "2.1.0"
detekt = "1.23.8"
dokka = "2.2.0"
kotlin = "2.3.21"
kotlinCoroutines = "1.11.0"
kover = "0.9.9"
node-sqlite3 = "6.0.1"
node-js = "24.18.1"
maven-publish = "0.37.0"
sqldelight = "2.3.2"

[libraries]
kotlin-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinCoroutines" }
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
37 changes: 22 additions & 15 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading