stoolap-python 0.4.1__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/.github/workflows/ci.yml +6 -5
  2. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/.github/workflows/publish.yml +2 -1
  3. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/Cargo.lock +110 -230
  4. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/Cargo.toml +3 -3
  5. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/PKG-INFO +6 -2
  6. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/README.md +5 -1
  7. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/pyproject.toml +1 -1
  8. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/python/stoolap/__init__.py +3 -5
  9. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/python/stoolap/__init__.pyi +13 -0
  10. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/database.rs +39 -22
  11. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/statement.rs +21 -34
  12. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/transaction.rs +36 -39
  13. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_async.py +28 -0
  14. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_basic.py +35 -0
  15. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_edge_cases.py +16 -0
  16. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_named_params.py +14 -1
  17. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_transactions.py +23 -0
  18. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_types.py +10 -10
  19. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/.gitignore +0 -0
  20. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/LICENSE +0 -0
  21. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/benchmark.py +0 -0
  22. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/error.rs +0 -0
  23. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/lib.rs +0 -0
  24. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/src/value.rs +0 -0
  25. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_persistence.py +0 -0
  26. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_prepared.py +0 -0
  27. {stoolap_python-0.4.1 → stoolap_python-0.5.0}/tests/test_vector.py +0 -0
@@ -52,7 +52,7 @@ jobs:
52
52
  uses: PyO3/maturin-action@v1
53
53
  with:
54
54
  target: ${{ matrix.target }}
55
- args: --release --out dist -i python3.12
55
+ args: --release --out dist -i python3.9 python3.10 python3.11 python3.12 python3.13
56
56
  manylinux: auto
57
57
 
58
58
  - name: Upload wheels
@@ -68,8 +68,9 @@ jobs:
68
68
  strategy:
69
69
  fail-fast: false
70
70
  matrix:
71
- os: [ubuntu-latest, macos-latest, windows-latest]
72
- python: ['3.12']
71
+ # ubuntu-latest (26.04) has no Python 3.9 in setup-python
72
+ os: [ubuntu-24.04, macos-latest, windows-latest]
73
+ python: ['3.9', '3.12', '3.13']
73
74
  runs-on: ${{ matrix.os }}
74
75
  steps:
75
76
  - uses: actions/checkout@v4
@@ -84,7 +85,7 @@ jobs:
84
85
  run: |
85
86
  if [[ "${{ matrix.os }}" == "macos-latest" ]]; then
86
87
  echo "name=wheels-aarch64-apple-darwin" >> $GITHUB_OUTPUT
87
- elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
88
+ elif [[ "${{ matrix.os }}" == "ubuntu-24.04" ]]; then
88
89
  echo "name=wheels-x86_64-unknown-linux-gnu" >> $GITHUB_OUTPUT
89
90
  elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
90
91
  echo "name=wheels-x86_64-pc-windows-msvc" >> $GITHUB_OUTPUT
@@ -99,7 +100,7 @@ jobs:
99
100
  - name: Install wheel and test dependencies
100
101
  shell: bash
101
102
  run: |
102
- pip install dist/*.whl
103
+ pip install --no-index --find-links dist stoolap-python
103
104
  pip install pytest pytest-asyncio
104
105
 
105
106
  - name: Run tests
@@ -49,7 +49,7 @@ jobs:
49
49
  uses: PyO3/maturin-action@v1
50
50
  with:
51
51
  target: ${{ matrix.target }}
52
- args: --release --out dist -i python3.12
52
+ args: --release --out dist -i python3.9 python3.10 python3.11 python3.12 python3.13
53
53
  manylinux: auto
54
54
 
55
55
  - name: Upload wheels
@@ -110,3 +110,4 @@ jobs:
110
110
  uses: softprops/action-gh-release@v2
111
111
  with:
112
112
  generate_release_notes: true
113
+ prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
@@ -2,6 +2,21 @@
2
2
  # It is not intended for manual editing.
3
3
  version = 4
4
4
 
5
+ [[package]]
6
+ name = "addr2line"
7
+ version = "0.27.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "e567177890eb1617b1f774005b66b26b2377afd138a2ca37aae7d8f0c81429d4"
10
+ dependencies = [
11
+ "gimli",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "adler2"
16
+ version = "2.0.1"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
19
+
5
20
  [[package]]
6
21
  name = "ahash"
7
22
  version = "0.8.12"
@@ -9,7 +24,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
9
24
  checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
10
25
  dependencies = [
11
26
  "cfg-if",
12
- "getrandom 0.3.4",
27
+ "getrandom",
13
28
  "once_cell",
14
29
  "version_check",
15
30
  "zerocopy",
@@ -39,18 +54,27 @@ dependencies = [
39
54
  "libc",
40
55
  ]
41
56
 
42
- [[package]]
43
- name = "anyhow"
44
- version = "1.0.102"
45
- source = "registry+https://github.com/rust-lang/crates.io-index"
46
- checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
47
-
48
57
  [[package]]
49
58
  name = "autocfg"
50
59
  version = "1.5.0"
51
60
  source = "registry+https://github.com/rust-lang/crates.io-index"
52
61
  checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
53
62
 
63
+ [[package]]
64
+ name = "backtrace"
65
+ version = "0.3.77"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "42f4220217f3288537b83684130f42fad43320b1c3b805f1910d683d52ded24f"
68
+ dependencies = [
69
+ "addr2line",
70
+ "cfg-if",
71
+ "libc",
72
+ "miniz_oxide",
73
+ "object",
74
+ "rustc-demangle",
75
+ "windows-link",
76
+ ]
77
+
54
78
  [[package]]
55
79
  name = "bitflags"
56
80
  version = "2.11.0"
@@ -84,12 +108,6 @@ version = "1.5.0"
84
108
  source = "registry+https://github.com/rust-lang/crates.io-index"
85
109
  checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
86
110
 
87
- [[package]]
88
- name = "bytes"
89
- version = "1.11.1"
90
- source = "registry+https://github.com/rust-lang/crates.io-index"
91
- checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
92
-
93
111
  [[package]]
94
112
  name = "cc"
95
113
  version = "1.2.56"
@@ -136,34 +154,21 @@ dependencies = [
136
154
  ]
137
155
 
138
156
  [[package]]
139
- name = "crc32fast"
140
- version = "1.5.0"
157
+ name = "crc32c"
158
+ version = "0.6.9"
141
159
  source = "registry+https://github.com/rust-lang/crates.io-index"
142
- checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
143
- dependencies = [
144
- "cfg-if",
145
- ]
146
-
147
- [[package]]
148
- name = "crossbeam"
149
- version = "0.8.4"
150
- source = "registry+https://github.com/rust-lang/crates.io-index"
151
- checksum = "1137cd7e7fc0fb5d3c5a8678be38ec56e819125d8d7907411fe24ccb943faca8"
160
+ checksum = "7f132a176423ee852e8f0a35d43088d1850966b50745be818a88b76f64b1c6cb"
152
161
  dependencies = [
153
- "crossbeam-channel",
154
- "crossbeam-deque",
155
- "crossbeam-epoch",
156
- "crossbeam-queue",
157
- "crossbeam-utils",
162
+ "rustc_version",
158
163
  ]
159
164
 
160
165
  [[package]]
161
- name = "crossbeam-channel"
162
- version = "0.5.15"
166
+ name = "crc32fast"
167
+ version = "1.5.0"
163
168
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"
169
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
165
170
  dependencies = [
166
- "crossbeam-utils",
171
+ "cfg-if",
167
172
  ]
168
173
 
169
174
  [[package]]
@@ -185,15 +190,6 @@ dependencies = [
185
190
  "crossbeam-utils",
186
191
  ]
187
192
 
188
- [[package]]
189
- name = "crossbeam-queue"
190
- version = "0.3.12"
191
- source = "registry+https://github.com/rust-lang/crates.io-index"
192
- checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115"
193
- dependencies = [
194
- "crossbeam-utils",
195
- ]
196
-
197
193
  [[package]]
198
194
  name = "crossbeam-utils"
199
195
  version = "0.8.21"
@@ -231,20 +227,6 @@ dependencies = [
231
227
  "memchr",
232
228
  ]
233
229
 
234
- [[package]]
235
- name = "dashmap"
236
- version = "6.1.0"
237
- source = "registry+https://github.com/rust-lang/crates.io-index"
238
- checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
239
- dependencies = [
240
- "cfg-if",
241
- "crossbeam-utils",
242
- "hashbrown 0.14.5",
243
- "lock_api",
244
- "once_cell",
245
- "parking_lot_core",
246
- ]
247
-
248
230
  [[package]]
249
231
  name = "digest"
250
232
  version = "0.10.7"
@@ -289,19 +271,6 @@ dependencies = [
289
271
  "version_check",
290
272
  ]
291
273
 
292
- [[package]]
293
- name = "getrandom"
294
- version = "0.2.17"
295
- source = "registry+https://github.com/rust-lang/crates.io-index"
296
- checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
297
- dependencies = [
298
- "cfg-if",
299
- "js-sys",
300
- "libc",
301
- "wasi",
302
- "wasm-bindgen",
303
- ]
304
-
305
274
  [[package]]
306
275
  name = "getrandom"
307
276
  version = "0.3.4"
@@ -317,16 +286,16 @@ dependencies = [
317
286
  ]
318
287
 
319
288
  [[package]]
320
- name = "hashbrown"
321
- version = "0.14.5"
289
+ name = "gimli"
290
+ version = "0.34.0"
322
291
  source = "registry+https://github.com/rust-lang/crates.io-index"
323
- checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
292
+ checksum = "1033caf0b349c518623b5396bfb2cf0bddf44f0306d543a250e5743297aafd10"
324
293
 
325
294
  [[package]]
326
295
  name = "hashbrown"
327
- version = "0.16.1"
296
+ version = "0.17.1"
328
297
  source = "registry+https://github.com/rust-lang/crates.io-index"
329
- checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
298
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
330
299
  dependencies = [
331
300
  "allocator-api2",
332
301
  "equivalent",
@@ -363,16 +332,6 @@ dependencies = [
363
332
  "cc",
364
333
  ]
365
334
 
366
- [[package]]
367
- name = "indexmap"
368
- version = "2.13.0"
369
- source = "registry+https://github.com/rust-lang/crates.io-index"
370
- checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
371
- dependencies = [
372
- "equivalent",
373
- "hashbrown 0.16.1",
374
- ]
375
-
376
335
  [[package]]
377
336
  name = "indoc"
378
337
  version = "2.0.7"
@@ -398,12 +357,6 @@ dependencies = [
398
357
  "wasm-bindgen",
399
358
  ]
400
359
 
401
- [[package]]
402
- name = "lazy_static"
403
- version = "1.5.0"
404
- source = "registry+https://github.com/rust-lang/crates.io-index"
405
- checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
406
-
407
360
  [[package]]
408
361
  name = "libc"
409
362
  version = "0.2.183"
@@ -427,11 +380,11 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
427
380
 
428
381
  [[package]]
429
382
  name = "lru"
430
- version = "0.16.3"
383
+ version = "0.18.5"
431
384
  source = "registry+https://github.com/rust-lang/crates.io-index"
432
- checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593"
385
+ checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5"
433
386
  dependencies = [
434
- "hashbrown 0.16.1",
387
+ "hashbrown",
435
388
  ]
436
389
 
437
390
  [[package]]
@@ -443,15 +396,6 @@ dependencies = [
443
396
  "twox-hash",
444
397
  ]
445
398
 
446
- [[package]]
447
- name = "matchers"
448
- version = "0.2.0"
449
- source = "registry+https://github.com/rust-lang/crates.io-index"
450
- checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
451
- dependencies = [
452
- "regex-automata",
453
- ]
454
-
455
399
  [[package]]
456
400
  name = "md-5"
457
401
  version = "0.10.6"
@@ -478,12 +422,12 @@ dependencies = [
478
422
  ]
479
423
 
480
424
  [[package]]
481
- name = "nu-ansi-term"
482
- version = "0.50.3"
425
+ name = "miniz_oxide"
426
+ version = "0.9.1"
483
427
  source = "registry+https://github.com/rust-lang/crates.io-index"
484
- checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
428
+ checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
485
429
  dependencies = [
486
- "windows-sys",
430
+ "adler2",
487
431
  ]
488
432
 
489
433
  [[package]]
@@ -496,19 +440,19 @@ dependencies = [
496
440
  ]
497
441
 
498
442
  [[package]]
499
- name = "once_cell"
500
- version = "1.21.4"
443
+ name = "object"
444
+ version = "0.40.0"
501
445
  source = "registry+https://github.com/rust-lang/crates.io-index"
502
- checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
446
+ checksum = "dd229a0361b9d0d4396176e02d65897f487eebeab7caa6d443855ee152ca0b9c"
447
+ dependencies = [
448
+ "memchr",
449
+ ]
503
450
 
504
451
  [[package]]
505
- name = "ordered-float"
506
- version = "5.1.0"
452
+ name = "once_cell"
453
+ version = "1.21.4"
507
454
  source = "registry+https://github.com/rust-lang/crates.io-index"
508
- checksum = "7f4779c6901a562440c3786d08192c6fbda7c1c2060edd10006b05ee35d10f2d"
509
- dependencies = [
510
- "num-traits",
511
- ]
455
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
512
456
 
513
457
  [[package]]
514
458
  name = "parking_lot"
@@ -533,12 +477,6 @@ dependencies = [
533
477
  "windows-link",
534
478
  ]
535
479
 
536
- [[package]]
537
- name = "pin-project-lite"
538
- version = "0.2.17"
539
- source = "registry+https://github.com/rust-lang/crates.io-index"
540
- checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
541
-
542
480
  [[package]]
543
481
  name = "portable-atomic"
544
482
  version = "1.13.1"
@@ -588,6 +526,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
588
526
  checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
589
527
  dependencies = [
590
528
  "once_cell",
529
+ "python3-dll-a",
591
530
  "target-lexicon",
592
531
  ]
593
532
 
@@ -626,6 +565,15 @@ dependencies = [
626
565
  "syn",
627
566
  ]
628
567
 
568
+ [[package]]
569
+ name = "python3-dll-a"
570
+ version = "0.2.15"
571
+ source = "registry+https://github.com/rust-lang/crates.io-index"
572
+ checksum = "d80ba7540edb18890d444c5aa8e1f1f99b1bdf26fb26ae383135325f4a36042b"
573
+ dependencies = [
574
+ "cc",
575
+ ]
576
+
629
577
  [[package]]
630
578
  name = "quote"
631
579
  version = "1.0.45"
@@ -673,7 +621,7 @@ version = "0.9.5"
673
621
  source = "registry+https://github.com/rust-lang/crates.io-index"
674
622
  checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
675
623
  dependencies = [
676
- "getrandom 0.3.4",
624
+ "getrandom",
677
625
  ]
678
626
 
679
627
  [[package]]
@@ -744,12 +692,27 @@ dependencies = [
744
692
  "byteorder",
745
693
  ]
746
694
 
695
+ [[package]]
696
+ name = "rustc-demangle"
697
+ version = "0.1.28"
698
+ source = "registry+https://github.com/rust-lang/crates.io-index"
699
+ checksum = "b74b56ffa8bb2830709a538c2cbcae9aa062db0d2a42563bfb09bdaae44020eb"
700
+
747
701
  [[package]]
748
702
  name = "rustc-hash"
749
703
  version = "1.1.0"
750
704
  source = "registry+https://github.com/rust-lang/crates.io-index"
751
705
  checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
752
706
 
707
+ [[package]]
708
+ name = "rustc_version"
709
+ version = "0.4.1"
710
+ source = "registry+https://github.com/rust-lang/crates.io-index"
711
+ checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
712
+ dependencies = [
713
+ "semver",
714
+ ]
715
+
753
716
  [[package]]
754
717
  name = "rustversion"
755
718
  version = "1.0.22"
@@ -768,6 +731,12 @@ version = "1.2.0"
768
731
  source = "registry+https://github.com/rust-lang/crates.io-index"
769
732
  checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
770
733
 
734
+ [[package]]
735
+ name = "semver"
736
+ version = "1.0.28"
737
+ source = "registry+https://github.com/rust-lang/crates.io-index"
738
+ checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
739
+
771
740
  [[package]]
772
741
  name = "serde"
773
742
  version = "1.0.228"
@@ -775,7 +744,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
775
744
  checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
776
745
  dependencies = [
777
746
  "serde_core",
778
- "serde_derive",
779
747
  ]
780
748
 
781
749
  [[package]]
@@ -833,15 +801,6 @@ dependencies = [
833
801
  "digest",
834
802
  ]
835
803
 
836
- [[package]]
837
- name = "sharded-slab"
838
- version = "0.1.7"
839
- source = "registry+https://github.com/rust-lang/crates.io-index"
840
- checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
841
- dependencies = [
842
- "lazy_static",
843
- ]
844
-
845
804
  [[package]]
846
805
  name = "shlex"
847
806
  version = "1.3.0"
@@ -856,29 +815,22 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
856
815
 
857
816
  [[package]]
858
817
  name = "stoolap"
859
- version = "0.4.1"
818
+ version = "0.5.0"
860
819
  source = "registry+https://github.com/rust-lang/crates.io-index"
861
- checksum = "a7ebe4615116d74154a6b36d1699793ae43af7c7a7a78739458f99f678456f9e"
820
+ checksum = "3766221eabe72eb6675091a2cc1ed6d019bdf9942cecb205ac87f6103a7e3837"
862
821
  dependencies = [
863
822
  "ahash",
864
- "anyhow",
865
- "bytes",
866
823
  "chrono",
824
+ "crc32c",
867
825
  "crc32fast",
868
- "crossbeam",
869
826
  "csv",
870
- "dashmap",
871
- "getrandom 0.2.17",
872
- "getrandom 0.3.4",
873
- "hashbrown 0.16.1",
874
- "indexmap",
875
- "js-sys",
827
+ "getrandom",
828
+ "hashbrown",
876
829
  "libc",
877
830
  "lru",
878
831
  "lz4_flex",
879
832
  "md-5",
880
833
  "memchr",
881
- "ordered-float",
882
834
  "parking_lot",
883
835
  "radsort",
884
836
  "rand",
@@ -891,18 +843,28 @@ dependencies = [
891
843
  "sha1",
892
844
  "sha2",
893
845
  "smallvec",
846
+ "stoolap-jemalloc",
894
847
  "thiserror",
895
- "tracing",
896
- "tracing-subscriber",
897
848
  "wasm-bindgen",
898
849
  "web-sys",
899
850
  "web-time",
900
851
  "windows-sys",
901
852
  ]
902
853
 
854
+ [[package]]
855
+ name = "stoolap-jemalloc"
856
+ version = "0.1.5"
857
+ source = "registry+https://github.com/rust-lang/crates.io-index"
858
+ checksum = "686a6d083a8743ab9f88ddc1240c4619345fd90a9d32491102f29b878378a51b"
859
+ dependencies = [
860
+ "backtrace",
861
+ "libc",
862
+ "windows-sys",
863
+ ]
864
+
903
865
  [[package]]
904
866
  name = "stoolap-python"
905
- version = "0.4.1"
867
+ version = "0.5.0"
906
868
  dependencies = [
907
869
  "chrono",
908
870
  "pyo3",
@@ -946,76 +908,6 @@ dependencies = [
946
908
  "syn",
947
909
  ]
948
910
 
949
- [[package]]
950
- name = "thread_local"
951
- version = "1.1.9"
952
- source = "registry+https://github.com/rust-lang/crates.io-index"
953
- checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
954
- dependencies = [
955
- "cfg-if",
956
- ]
957
-
958
- [[package]]
959
- name = "tracing"
960
- version = "0.1.44"
961
- source = "registry+https://github.com/rust-lang/crates.io-index"
962
- checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
963
- dependencies = [
964
- "pin-project-lite",
965
- "tracing-attributes",
966
- "tracing-core",
967
- ]
968
-
969
- [[package]]
970
- name = "tracing-attributes"
971
- version = "0.1.31"
972
- source = "registry+https://github.com/rust-lang/crates.io-index"
973
- checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
974
- dependencies = [
975
- "proc-macro2",
976
- "quote",
977
- "syn",
978
- ]
979
-
980
- [[package]]
981
- name = "tracing-core"
982
- version = "0.1.36"
983
- source = "registry+https://github.com/rust-lang/crates.io-index"
984
- checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
985
- dependencies = [
986
- "once_cell",
987
- "valuable",
988
- ]
989
-
990
- [[package]]
991
- name = "tracing-log"
992
- version = "0.2.0"
993
- source = "registry+https://github.com/rust-lang/crates.io-index"
994
- checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
995
- dependencies = [
996
- "log",
997
- "once_cell",
998
- "tracing-core",
999
- ]
1000
-
1001
- [[package]]
1002
- name = "tracing-subscriber"
1003
- version = "0.3.22"
1004
- source = "registry+https://github.com/rust-lang/crates.io-index"
1005
- checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e"
1006
- dependencies = [
1007
- "matchers",
1008
- "nu-ansi-term",
1009
- "once_cell",
1010
- "regex-automata",
1011
- "sharded-slab",
1012
- "smallvec",
1013
- "thread_local",
1014
- "tracing",
1015
- "tracing-core",
1016
- "tracing-log",
1017
- ]
1018
-
1019
911
  [[package]]
1020
912
  name = "twox-hash"
1021
913
  version = "2.1.2"
@@ -1040,24 +932,12 @@ version = "0.2.4"
1040
932
  source = "registry+https://github.com/rust-lang/crates.io-index"
1041
933
  checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
1042
934
 
1043
- [[package]]
1044
- name = "valuable"
1045
- version = "0.1.1"
1046
- source = "registry+https://github.com/rust-lang/crates.io-index"
1047
- checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
1048
-
1049
935
  [[package]]
1050
936
  name = "version_check"
1051
937
  version = "0.9.5"
1052
938
  source = "registry+https://github.com/rust-lang/crates.io-index"
1053
939
  checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
1054
940
 
1055
- [[package]]
1056
- name = "wasi"
1057
- version = "0.11.1+wasi-snapshot-preview1"
1058
- source = "registry+https://github.com/rust-lang/crates.io-index"
1059
- checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
1060
-
1061
941
  [[package]]
1062
942
  name = "wasip2"
1063
943
  version = "1.0.2+wasi-0.2.9"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "stoolap-python"
3
- version = "0.4.1"
3
+ version = "0.5.0"
4
4
  edition = "2021"
5
5
  authors = ["Stoolap Contributors"]
6
6
  license = "Apache-2.0"
@@ -16,8 +16,8 @@ name = "_stoolap"
16
16
  crate-type = ["cdylib"]
17
17
 
18
18
  [dependencies]
19
- stoolap = { version = "0.4.1", default-features = false, features = ["parallel"] }
20
- pyo3 = { version = "0.23", features = ["extension-module"] }
19
+ stoolap = { version = "0.5.0", default-features = false, features = ["parallel", "jemalloc"] }
20
+ pyo3 = { version = "0.23", features = ["extension-module", "generate-import-lib"] }
21
21
  chrono = "0.4"
22
22
 
23
23
  [profile.release]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stoolap-python
3
- Version: 0.4.1
3
+ Version: 0.5.0
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -84,6 +84,10 @@ raw = db.query_raw("SELECT id, name FROM users ORDER BY id")
84
84
  db.close()
85
85
  ```
86
86
 
87
+ Each `Database.open(":memory:")` is a private database. To share one in-memory database between opens in the same process, give it a name: `Database.open("memory://name")`.
88
+
89
+ `query()` and `query_one()` key each row by column name, so two result columns with the same name (for example `a.id` and `b.id` in a join) collapse into one key. Alias them, or use `query_raw()`, when that matters.
90
+
87
91
  ## Prepared Statements
88
92
 
89
93
  Parse SQL once, execute many times with different parameters:
@@ -128,7 +132,7 @@ except:
128
132
  raise
129
133
  ```
130
134
 
131
- Transactions support `execute()`, `query()`, `query_one()`, `query_raw()`, and `execute_batch()` with both positional (`$1, $2`) and named (`:key`) parameters.
135
+ Transactions support `execute()`, `query()`, `query_one()`, `query_raw()`, and `execute_batch()` with both positional (`$1, $2`) and named (`:key`) parameters. A statement prepared on the database runs inside a transaction with `execute_prepared(stmt, params)`, `query_prepared`, `query_one_prepared` and `query_raw_prepared`. `rollback()` is a no-op once the transaction has ended, so the handler above never hides the original error.
132
136
 
133
137
  ## Batch Execution
134
138
 
@@ -55,6 +55,10 @@ raw = db.query_raw("SELECT id, name FROM users ORDER BY id")
55
55
  db.close()
56
56
  ```
57
57
 
58
+ Each `Database.open(":memory:")` is a private database. To share one in-memory database between opens in the same process, give it a name: `Database.open("memory://name")`.
59
+
60
+ `query()` and `query_one()` key each row by column name, so two result columns with the same name (for example `a.id` and `b.id` in a join) collapse into one key. Alias them, or use `query_raw()`, when that matters.
61
+
58
62
  ## Prepared Statements
59
63
 
60
64
  Parse SQL once, execute many times with different parameters:
@@ -99,7 +103,7 @@ except:
99
103
  raise
100
104
  ```
101
105
 
102
- Transactions support `execute()`, `query()`, `query_one()`, `query_raw()`, and `execute_batch()` with both positional (`$1, $2`) and named (`:key`) parameters.
106
+ Transactions support `execute()`, `query()`, `query_one()`, `query_raw()`, and `execute_batch()` with both positional (`$1, $2`) and named (`:key`) parameters. A statement prepared on the database runs inside a transaction with `execute_prepared(stmt, params)`, `query_prepared`, `query_one_prepared` and `query_raw_prepared`. `rollback()` is a no-op once the transaction has ended, so the handler above never hides the original error.
103
107
 
104
108
  ## Batch Execution
105
109