Skip to content

Commit

Permalink
Simplified query execution.
Browse files Browse the repository at this point in the history
Transactions: do not allow concurrent execution per transaction.
  • Loading branch information
smyrgeorge committed Jul 5, 2024
1 parent 763fb74 commit f0443dd
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 176 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,30 +185,30 @@ leaks -atExit -- ./examples/build/bin/macosArm64/releaseExecutable/examples.kexe
Sample output:

```text
Process: examples.kexe [47305]
Process: examples.kexe [32353]
Path: /Users/USER/*/examples.kexe
Load Address: 0x102968000
Load Address: 0x102904000
Identifier: examples.kexe
Version: 0
Code Type: ARM64
Platform: macOS
Parent Process: leaks [47304]
Parent Process: leaks [32351]
Date/Time: 2024-07-05 00:01:28.058 +0200
Launch Time: 2024-07-05 00:01:09.909 +0200
Date/Time: 2024-07-05 16:14:03.515 +0200
Launch Time: 2024-07-05 16:13:45.848 +0200
OS Version: macOS 14.5 (23F79)
Report Version: 7
Analysis Tool: /Applications/Xcode.app/Contents/Developer/usr/bin/leaks
Analysis Tool Version: Xcode 15.4 (15F31d)
Physical footprint: 300.5M
Physical footprint (peak): 300.5M
Physical footprint: 213.8M
Physical footprint (peak): 213.8M
Idle exit: untracked
----
leaks Report Version: 4.0, multi-line stacks
Process 47305: 188498 nodes malloced for 18565 KB
Process 47305: 0 leaks for 0 total leaked bytes.
Process 32353: 125349 nodes malloced for 8520 KB
Process 32353: 0 leaks for 0 total leaked bytes.
```

## References
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.3.2"
version = "0.4.0"

plugins {
// https://plugins.gradle.org/plugin/org.jetbrains.kotlin.multiplatform
Expand Down
6 changes: 3 additions & 3 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ version = rootProject.version

kotlin {
macosArm64 { binaries { executable() } }
macosX64 { binaries { executable() } }
linuxArm64 { binaries { executable() } }
linuxX64 { binaries { executable() } }
// macosX64 { binaries { executable() } }
// linuxArm64 { binaries { executable() } }
// linuxX64 { binaries { executable() } }

applyDefaultHierarchyTemplate()
sourceSets {
Expand Down
1 change: 1 addition & 0 deletions examples/src/nativeMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ fun main() {
println("\n\n\n::: TX :::")

val tx1: Transaction = pg.begin().getOrThrow()
println(tx1)
tx1.query("delete from sqlx4k;").getOrThrow()
tx1.fetchAll("select * from sqlx4k;") {
println(debug())
Expand Down
Loading

0 comments on commit f0443dd

Please sign in to comment.