stoolap-python 0.4.2__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.
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/.github/workflows/ci.yml +6 -5
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/.github/workflows/publish.yml +2 -1
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/Cargo.lock +108 -237
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/Cargo.toml +3 -3
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/PKG-INFO +6 -2
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/README.md +5 -1
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/pyproject.toml +1 -1
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/python/stoolap/__init__.py +3 -5
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/python/stoolap/__init__.pyi +13 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/database.rs +39 -22
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/statement.rs +21 -34
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/transaction.rs +36 -39
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_async.py +28 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_basic.py +35 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_edge_cases.py +16 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_named_params.py +14 -1
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_transactions.py +23 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_types.py +10 -10
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/.gitignore +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/LICENSE +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/benchmark.py +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/error.rs +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/lib.rs +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/src/value.rs +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_persistence.py +0 -0
- {stoolap_python-0.4.2 → stoolap_python-0.5.0}/tests/test_prepared.py +0 -0
- {stoolap_python-0.4.2 → 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
|
-
|
|
72
|
-
|
|
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-
|
|
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
|
|
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
|
|
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 = "
|
|
140
|
-
version = "
|
|
141
|
-
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"
|
|
157
|
+
name = "crc32c"
|
|
158
|
+
version = "0.6.9"
|
|
150
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
-
checksum = "
|
|
160
|
+
checksum = "7f132a176423ee852e8f0a35d43088d1850966b50745be818a88b76f64b1c6cb"
|
|
152
161
|
dependencies = [
|
|
153
|
-
"
|
|
154
|
-
"crossbeam-deque",
|
|
155
|
-
"crossbeam-epoch",
|
|
156
|
-
"crossbeam-queue",
|
|
157
|
-
"crossbeam-utils",
|
|
162
|
+
"rustc_version",
|
|
158
163
|
]
|
|
159
164
|
|
|
160
165
|
[[package]]
|
|
161
|
-
name = "
|
|
162
|
-
version = "
|
|
166
|
+
name = "crc32fast"
|
|
167
|
+
version = "1.5.0"
|
|
163
168
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
-
checksum = "
|
|
169
|
+
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
|
|
165
170
|
dependencies = [
|
|
166
|
-
"
|
|
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,21 +286,10 @@ dependencies = [
|
|
|
317
286
|
]
|
|
318
287
|
|
|
319
288
|
[[package]]
|
|
320
|
-
name = "
|
|
321
|
-
version = "0.
|
|
289
|
+
name = "gimli"
|
|
290
|
+
version = "0.34.0"
|
|
322
291
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
323
|
-
checksum = "
|
|
324
|
-
|
|
325
|
-
[[package]]
|
|
326
|
-
name = "hashbrown"
|
|
327
|
-
version = "0.16.1"
|
|
328
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
329
|
-
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
|
330
|
-
dependencies = [
|
|
331
|
-
"allocator-api2",
|
|
332
|
-
"equivalent",
|
|
333
|
-
"foldhash",
|
|
334
|
-
]
|
|
292
|
+
checksum = "1033caf0b349c518623b5396bfb2cf0bddf44f0306d543a250e5743297aafd10"
|
|
335
293
|
|
|
336
294
|
[[package]]
|
|
337
295
|
name = "hashbrown"
|
|
@@ -339,6 +297,8 @@ version = "0.17.1"
|
|
|
339
297
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
298
|
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
341
299
|
dependencies = [
|
|
300
|
+
"allocator-api2",
|
|
301
|
+
"equivalent",
|
|
342
302
|
"foldhash",
|
|
343
303
|
]
|
|
344
304
|
|
|
@@ -372,16 +332,6 @@ dependencies = [
|
|
|
372
332
|
"cc",
|
|
373
333
|
]
|
|
374
334
|
|
|
375
|
-
[[package]]
|
|
376
|
-
name = "indexmap"
|
|
377
|
-
version = "2.13.0"
|
|
378
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
-
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
|
380
|
-
dependencies = [
|
|
381
|
-
"equivalent",
|
|
382
|
-
"hashbrown 0.16.1",
|
|
383
|
-
]
|
|
384
|
-
|
|
385
335
|
[[package]]
|
|
386
336
|
name = "indoc"
|
|
387
337
|
version = "2.0.7"
|
|
@@ -407,12 +357,6 @@ dependencies = [
|
|
|
407
357
|
"wasm-bindgen",
|
|
408
358
|
]
|
|
409
359
|
|
|
410
|
-
[[package]]
|
|
411
|
-
name = "lazy_static"
|
|
412
|
-
version = "1.5.0"
|
|
413
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
|
-
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
415
|
-
|
|
416
360
|
[[package]]
|
|
417
361
|
name = "libc"
|
|
418
362
|
version = "0.2.183"
|
|
@@ -440,7 +384,7 @@ version = "0.18.5"
|
|
|
440
384
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
441
385
|
checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5"
|
|
442
386
|
dependencies = [
|
|
443
|
-
"hashbrown
|
|
387
|
+
"hashbrown",
|
|
444
388
|
]
|
|
445
389
|
|
|
446
390
|
[[package]]
|
|
@@ -452,15 +396,6 @@ dependencies = [
|
|
|
452
396
|
"twox-hash",
|
|
453
397
|
]
|
|
454
398
|
|
|
455
|
-
[[package]]
|
|
456
|
-
name = "matchers"
|
|
457
|
-
version = "0.2.0"
|
|
458
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
459
|
-
checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
|
|
460
|
-
dependencies = [
|
|
461
|
-
"regex-automata",
|
|
462
|
-
]
|
|
463
|
-
|
|
464
399
|
[[package]]
|
|
465
400
|
name = "md-5"
|
|
466
401
|
version = "0.10.6"
|
|
@@ -487,12 +422,12 @@ dependencies = [
|
|
|
487
422
|
]
|
|
488
423
|
|
|
489
424
|
[[package]]
|
|
490
|
-
name = "
|
|
491
|
-
version = "0.
|
|
425
|
+
name = "miniz_oxide"
|
|
426
|
+
version = "0.9.1"
|
|
492
427
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
493
|
-
checksum = "
|
|
428
|
+
checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
|
|
494
429
|
dependencies = [
|
|
495
|
-
"
|
|
430
|
+
"adler2",
|
|
496
431
|
]
|
|
497
432
|
|
|
498
433
|
[[package]]
|
|
@@ -505,19 +440,19 @@ dependencies = [
|
|
|
505
440
|
]
|
|
506
441
|
|
|
507
442
|
[[package]]
|
|
508
|
-
name = "
|
|
509
|
-
version = "
|
|
443
|
+
name = "object"
|
|
444
|
+
version = "0.40.0"
|
|
510
445
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
511
|
-
checksum = "
|
|
446
|
+
checksum = "dd229a0361b9d0d4396176e02d65897f487eebeab7caa6d443855ee152ca0b9c"
|
|
447
|
+
dependencies = [
|
|
448
|
+
"memchr",
|
|
449
|
+
]
|
|
512
450
|
|
|
513
451
|
[[package]]
|
|
514
|
-
name = "
|
|
515
|
-
version = "
|
|
452
|
+
name = "once_cell"
|
|
453
|
+
version = "1.21.4"
|
|
516
454
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
517
|
-
checksum = "
|
|
518
|
-
dependencies = [
|
|
519
|
-
"num-traits",
|
|
520
|
-
]
|
|
455
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
521
456
|
|
|
522
457
|
[[package]]
|
|
523
458
|
name = "parking_lot"
|
|
@@ -542,12 +477,6 @@ dependencies = [
|
|
|
542
477
|
"windows-link",
|
|
543
478
|
]
|
|
544
479
|
|
|
545
|
-
[[package]]
|
|
546
|
-
name = "pin-project-lite"
|
|
547
|
-
version = "0.2.17"
|
|
548
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
549
|
-
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
550
|
-
|
|
551
480
|
[[package]]
|
|
552
481
|
name = "portable-atomic"
|
|
553
482
|
version = "1.13.1"
|
|
@@ -597,6 +526,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
597
526
|
checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
|
|
598
527
|
dependencies = [
|
|
599
528
|
"once_cell",
|
|
529
|
+
"python3-dll-a",
|
|
600
530
|
"target-lexicon",
|
|
601
531
|
]
|
|
602
532
|
|
|
@@ -635,6 +565,15 @@ dependencies = [
|
|
|
635
565
|
"syn",
|
|
636
566
|
]
|
|
637
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
|
+
|
|
638
577
|
[[package]]
|
|
639
578
|
name = "quote"
|
|
640
579
|
version = "1.0.45"
|
|
@@ -682,7 +621,7 @@ version = "0.9.5"
|
|
|
682
621
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
683
622
|
checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
|
|
684
623
|
dependencies = [
|
|
685
|
-
"getrandom
|
|
624
|
+
"getrandom",
|
|
686
625
|
]
|
|
687
626
|
|
|
688
627
|
[[package]]
|
|
@@ -753,12 +692,27 @@ dependencies = [
|
|
|
753
692
|
"byteorder",
|
|
754
693
|
]
|
|
755
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
|
+
|
|
756
701
|
[[package]]
|
|
757
702
|
name = "rustc-hash"
|
|
758
703
|
version = "1.1.0"
|
|
759
704
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
760
705
|
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
761
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
|
+
|
|
762
716
|
[[package]]
|
|
763
717
|
name = "rustversion"
|
|
764
718
|
version = "1.0.22"
|
|
@@ -777,6 +731,12 @@ version = "1.2.0"
|
|
|
777
731
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
778
732
|
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
779
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
|
+
|
|
780
740
|
[[package]]
|
|
781
741
|
name = "serde"
|
|
782
742
|
version = "1.0.228"
|
|
@@ -784,7 +744,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
784
744
|
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
785
745
|
dependencies = [
|
|
786
746
|
"serde_core",
|
|
787
|
-
"serde_derive",
|
|
788
747
|
]
|
|
789
748
|
|
|
790
749
|
[[package]]
|
|
@@ -842,15 +801,6 @@ dependencies = [
|
|
|
842
801
|
"digest",
|
|
843
802
|
]
|
|
844
803
|
|
|
845
|
-
[[package]]
|
|
846
|
-
name = "sharded-slab"
|
|
847
|
-
version = "0.1.7"
|
|
848
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
849
|
-
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
|
|
850
|
-
dependencies = [
|
|
851
|
-
"lazy_static",
|
|
852
|
-
]
|
|
853
|
-
|
|
854
804
|
[[package]]
|
|
855
805
|
name = "shlex"
|
|
856
806
|
version = "1.3.0"
|
|
@@ -865,29 +815,22 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
|
865
815
|
|
|
866
816
|
[[package]]
|
|
867
817
|
name = "stoolap"
|
|
868
|
-
version = "0.
|
|
818
|
+
version = "0.5.0"
|
|
869
819
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
870
|
-
checksum = "
|
|
820
|
+
checksum = "3766221eabe72eb6675091a2cc1ed6d019bdf9942cecb205ac87f6103a7e3837"
|
|
871
821
|
dependencies = [
|
|
872
822
|
"ahash",
|
|
873
|
-
"anyhow",
|
|
874
|
-
"bytes",
|
|
875
823
|
"chrono",
|
|
824
|
+
"crc32c",
|
|
876
825
|
"crc32fast",
|
|
877
|
-
"crossbeam",
|
|
878
826
|
"csv",
|
|
879
|
-
"
|
|
880
|
-
"
|
|
881
|
-
"getrandom 0.3.4",
|
|
882
|
-
"hashbrown 0.16.1",
|
|
883
|
-
"indexmap",
|
|
884
|
-
"js-sys",
|
|
827
|
+
"getrandom",
|
|
828
|
+
"hashbrown",
|
|
885
829
|
"libc",
|
|
886
830
|
"lru",
|
|
887
831
|
"lz4_flex",
|
|
888
832
|
"md-5",
|
|
889
833
|
"memchr",
|
|
890
|
-
"ordered-float",
|
|
891
834
|
"parking_lot",
|
|
892
835
|
"radsort",
|
|
893
836
|
"rand",
|
|
@@ -900,18 +843,28 @@ dependencies = [
|
|
|
900
843
|
"sha1",
|
|
901
844
|
"sha2",
|
|
902
845
|
"smallvec",
|
|
846
|
+
"stoolap-jemalloc",
|
|
903
847
|
"thiserror",
|
|
904
|
-
"tracing",
|
|
905
|
-
"tracing-subscriber",
|
|
906
848
|
"wasm-bindgen",
|
|
907
849
|
"web-sys",
|
|
908
850
|
"web-time",
|
|
909
851
|
"windows-sys",
|
|
910
852
|
]
|
|
911
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
|
+
|
|
912
865
|
[[package]]
|
|
913
866
|
name = "stoolap-python"
|
|
914
|
-
version = "0.
|
|
867
|
+
version = "0.5.0"
|
|
915
868
|
dependencies = [
|
|
916
869
|
"chrono",
|
|
917
870
|
"pyo3",
|
|
@@ -955,76 +908,6 @@ dependencies = [
|
|
|
955
908
|
"syn",
|
|
956
909
|
]
|
|
957
910
|
|
|
958
|
-
[[package]]
|
|
959
|
-
name = "thread_local"
|
|
960
|
-
version = "1.1.9"
|
|
961
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
962
|
-
checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
|
|
963
|
-
dependencies = [
|
|
964
|
-
"cfg-if",
|
|
965
|
-
]
|
|
966
|
-
|
|
967
|
-
[[package]]
|
|
968
|
-
name = "tracing"
|
|
969
|
-
version = "0.1.44"
|
|
970
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
971
|
-
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
|
972
|
-
dependencies = [
|
|
973
|
-
"pin-project-lite",
|
|
974
|
-
"tracing-attributes",
|
|
975
|
-
"tracing-core",
|
|
976
|
-
]
|
|
977
|
-
|
|
978
|
-
[[package]]
|
|
979
|
-
name = "tracing-attributes"
|
|
980
|
-
version = "0.1.31"
|
|
981
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
982
|
-
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
|
983
|
-
dependencies = [
|
|
984
|
-
"proc-macro2",
|
|
985
|
-
"quote",
|
|
986
|
-
"syn",
|
|
987
|
-
]
|
|
988
|
-
|
|
989
|
-
[[package]]
|
|
990
|
-
name = "tracing-core"
|
|
991
|
-
version = "0.1.36"
|
|
992
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
993
|
-
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
|
994
|
-
dependencies = [
|
|
995
|
-
"once_cell",
|
|
996
|
-
"valuable",
|
|
997
|
-
]
|
|
998
|
-
|
|
999
|
-
[[package]]
|
|
1000
|
-
name = "tracing-log"
|
|
1001
|
-
version = "0.2.0"
|
|
1002
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1003
|
-
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
|
1004
|
-
dependencies = [
|
|
1005
|
-
"log",
|
|
1006
|
-
"once_cell",
|
|
1007
|
-
"tracing-core",
|
|
1008
|
-
]
|
|
1009
|
-
|
|
1010
|
-
[[package]]
|
|
1011
|
-
name = "tracing-subscriber"
|
|
1012
|
-
version = "0.3.22"
|
|
1013
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1014
|
-
checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e"
|
|
1015
|
-
dependencies = [
|
|
1016
|
-
"matchers",
|
|
1017
|
-
"nu-ansi-term",
|
|
1018
|
-
"once_cell",
|
|
1019
|
-
"regex-automata",
|
|
1020
|
-
"sharded-slab",
|
|
1021
|
-
"smallvec",
|
|
1022
|
-
"thread_local",
|
|
1023
|
-
"tracing",
|
|
1024
|
-
"tracing-core",
|
|
1025
|
-
"tracing-log",
|
|
1026
|
-
]
|
|
1027
|
-
|
|
1028
911
|
[[package]]
|
|
1029
912
|
name = "twox-hash"
|
|
1030
913
|
version = "2.1.2"
|
|
@@ -1049,24 +932,12 @@ version = "0.2.4"
|
|
|
1049
932
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1050
933
|
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
1051
934
|
|
|
1052
|
-
[[package]]
|
|
1053
|
-
name = "valuable"
|
|
1054
|
-
version = "0.1.1"
|
|
1055
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1056
|
-
checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
|
|
1057
|
-
|
|
1058
935
|
[[package]]
|
|
1059
936
|
name = "version_check"
|
|
1060
937
|
version = "0.9.5"
|
|
1061
938
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1062
939
|
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
1063
940
|
|
|
1064
|
-
[[package]]
|
|
1065
|
-
name = "wasi"
|
|
1066
|
-
version = "0.11.1+wasi-snapshot-preview1"
|
|
1067
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1068
|
-
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
1069
|
-
|
|
1070
941
|
[[package]]
|
|
1071
942
|
name = "wasip2"
|
|
1072
943
|
version = "1.0.2+wasi-0.2.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "stoolap-python"
|
|
3
|
-
version = "0.
|
|
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.
|
|
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.
|
|
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
|
|