lora-python 0.29.0__tar.gz → 0.30.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.
- {lora_python-0.29.0 → lora_python-0.30.0}/Cargo.lock +23 -19
- {lora_python-0.29.0 → lora_python-0.30.0}/Cargo.toml +14 -13
- {lora_python-0.29.0 → lora_python-0.30.0}/PKG-INFO +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-binding-buffer/src/stream.rs +17 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/from_python.rs +9 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/lib.rs +107 -63
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/stream.rs +38 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/to_python.rs +16 -10
- lora_python-0.30.0/crates/bindings/lora-python/tests/test_stream_batches.py +114 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-ast/src/lib.rs +1 -0
- lora_python-0.30.0/crates/lora-ast/src/limits.rs +46 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/planner.rs +50 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/concurrency_guard.rs +1 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/fixtures.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/perf_smoke.rs +3 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/query_implementations.rs +7 -4
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/wal.rs +1 -0
- lora_python-0.30.0/crates/lora-database/examples/replay_memory_probe.rs +154 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/changes/history.rs +3 -3
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/changes/mod.rs +107 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/builder.rs +66 -35
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/changes.rs +8 -0
- lora_python-0.30.0/crates/lora-database/src/database/compile.rs +312 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/execute.rs +2 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/explain.rs +3 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/mod.rs +63 -19
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/procedures.rs +2 -2
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/profile.rs +19 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/replay.rs +58 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/stream.rs +2 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/write_guard.rs +149 -28
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/error.rs +2 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/lib.rs +3 -3
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/named.rs +11 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/plan_cache.rs +155 -69
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/snapshot/mod.rs +160 -22
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/snapshot/store.rs +50 -12
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/transaction.rs +18 -10
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive/format.rs +410 -63
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive/workspace.rs +32 -10
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive.rs +18 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/write_scope.rs +24 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/binary.rs +1 -1
- lora_python-0.30.0/crates/lora-database/tests/builtin_hardening.rs +314 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/change_feed.rs +32 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/managed_snapshots.rs +63 -0
- lora_python-0.30.0/crates/lora-database/tests/open_memory.rs +248 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/planner_stats.rs +1 -0
- lora_python-0.30.0/crates/lora-database/tests/query_limits.rs +283 -0
- lora_python-0.30.0/crates/lora-database/tests/range_scan_mixed_numbers.rs +90 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/restart_index_state.rs +19 -9
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/snapshot.rs +44 -14
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_range_index.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/vector_index.rs +13 -13
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/vectors.rs +5 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/wal.rs +303 -2
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/cancel.rs +78 -11
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/binops.rs +36 -16
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/bytes_ns.rs +5 -5
- lora_python-0.30.0/crates/lora-executor/src/eval/builtins/fuzz_tests.rs +288 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/geo.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/index_ns.rs +2 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/list.rs +70 -24
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/math_ns.rs +31 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/mod.rs +9 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/number.rs +11 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/string_ns.rs +110 -18
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/temporal.rs +12 -12
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/temporal_build.rs +40 -20
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/text.rs +111 -13
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/type_ns.rs +10 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/expr.rs +131 -16
- lora_python-0.30.0/crates/lora-executor/src/eval/functions.rs +52 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/mod.rs +1 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/point.rs +22 -0
- lora_python-0.30.0/crates/lora-executor/src/eval/regex.rs +142 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/vector.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/aggregation.rs +28 -17
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/helpers.rs +194 -43
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/immutable.rs +16 -21
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/mod.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/mutable.rs +15 -13
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/optional.rs +6 -8
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/executor/sort.rs +31 -11
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/lib.rs +1 -0
- lora_python-0.30.0/crates/lora-executor/src/limits.rs +419 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/profile.rs +31 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/aggregate.rs +48 -26
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/expand.rs +31 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/hydration.rs +20 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/mod.rs +2 -2
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/projection.rs +21 -15
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/value.rs +178 -58
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/json_array.rs +74 -50
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/value_json.rs +8 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/cypher.pest +55 -34
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/expressions.rs +66 -56
- lora_python-0.30.0/crates/lora-parser/src/parser/limits.rs +265 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/literals.rs +9 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/mod.rs +4 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/patterns.rs +9 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/query.rs +64 -69
- lora_python-0.30.0/crates/lora-parser/tests/limits.rs +309 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/columnar.rs +54 -9
- lora_python-0.30.0/crates/lora-snapshot/src/format.rs +44 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/graph.rs +66 -9
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/codec.rs +180 -11
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/dict.rs +60 -10
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/encoded.rs +16 -3
- lora_python-0.30.0/crates/lora-store/src/intern.rs +189 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/lib.rs +5 -10
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/adjacency.rs +350 -53
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/chunked_vec.rs +107 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/cow.rs +106 -54
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/fulltext_index.rs +30 -3
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/graph.rs +108 -20
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/hnsw.rs +33 -17
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/id_map.rs +47 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/impls.rs +13 -2
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/index_catalog.rs +5 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/mem_report.rs +22 -17
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/mod.rs +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/property_index.rs +100 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/record_slab.rs +73 -9
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/secondary_index_maintenance.rs +12 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/sorted_property_index.rs +113 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/stats.rs +141 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/tests.rs +158 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/text_index.rs +73 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/vector_index.rs +67 -6
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/mutation.rs +0 -129
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/traits.rs +10 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/vector/tests.rs +35 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/vector/types.rs +29 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/Cargo.toml +1 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/codec/decode.rs +39 -7
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/codec/encode.rs +89 -22
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/codec/mod.rs +9 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/codec/tests.rs +66 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/config.rs +8 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/errors.rs +15 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/lib.rs +3 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/record.rs +163 -41
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/recorder/recorder.rs +3 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/replay.rs +229 -29
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/segment.rs +115 -23
- lora_python-0.30.0/crates/lora-wal/src/wal/tests.rs +1024 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/wal/wal.rs +509 -87
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/tests/error_messages.rs +22 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/pyproject.toml +1 -1
- {lora_python-0.29.0 → lora_python-0.30.0}/python/lora_python/_async.py +59 -5
- {lora_python-0.29.0 → lora_python-0.30.0}/python/lora_python/_native.pyi +5 -1
- lora_python-0.29.0/crates/lora-database/src/database/compile.rs +0 -145
- lora_python-0.29.0/crates/lora-executor/src/eval/functions.rs +0 -29
- lora_python-0.29.0/crates/lora-executor/src/eval/regex.rs +0 -70
- lora_python-0.29.0/crates/lora-snapshot/src/format.rs +0 -18
- lora_python-0.29.0/crates/lora-store/src/intern.rs +0 -136
- lora_python-0.29.0/crates/lora-store/src/lock_table.rs +0 -233
- lora_python-0.29.0/crates/lora-wal/src/wal/tests.rs +0 -492
- {lora_python-0.29.0 → lora_python-0.30.0}/LICENSE +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/README.md +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-binding-buffer/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-binding-buffer/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/.gitignore +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/LICENSE +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/README.md +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/build.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/examples/async_demo.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/examples/basic.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/src/gil.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/tests/test_async.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/tests/test_concurrency.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/tests/test_explain_profile.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/bindings/lora-python/tests/test_sync.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/builtin_signatures.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/clauses.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/expressions.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/patterns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/state.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/analyzer/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/resolved.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/scope.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/src/symbols.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-analyzer/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-ast/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-ast/src/ast.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-builtins-meta/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-builtins-meta/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/logical.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/optimizer.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/param_fold.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/pattern.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/physical.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-compiler/src/plan_tree.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/README.md +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/advanced.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/concurrent.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/engine.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/index_acceleration.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/memory.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/memory_baseline.json +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/perf_smoke_baseline.json +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/realistic.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/scale.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/benches/temporal_spatial.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/bulk_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/carried_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/crash_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/heap_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/keyset_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/optional_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/perf_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/pushdown_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/storage_baseline.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/examples/sync_memory_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/changes/build.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/graph_api.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/occ.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/pull_mode.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/row_projection.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/schema.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/database/show_pipeline.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/durable_io.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/explain.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/io.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/live_store.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/snapshot/json.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/stream.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/admin.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive/lock.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive/platform.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/archive/worker.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/src/wal/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/advanced_queries.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/aggregate_semantics.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/aggregation.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/and_or_short_circuit.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/backend_stub.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/bbox_antimeridian.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/bit_shifts.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/borrowed_variable_reads.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/builtin_namespaces.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/call_subquery_writes.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/carried_value_sharing.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/collect_nulls.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/comparison_ordering.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/constraints.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/create.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/cypher_compat.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/deferred_existence_end_state.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/docs_examples.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/early_limit.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/empty_ranges.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/entity_property_values.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/explain_estimates.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/explain_profile.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/expression_semantics.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/expressions.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/foreach.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/fulltext_index.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/fulltext_list_properties.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/functions_extended.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/grouping_key_identity.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/id_seek.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/index_acceleration.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/integer_literals.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/invariants.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/limit_skip_counts.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/match.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/merge.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/merge_bound_end.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/missing_parameters.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/nested_aggregates.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/null_pattern_variables.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/null_properties_and_deferred_existence.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/optional_match_correlated.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/optional_match_leading.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/order_by_aggregates.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/order_by_grouping_key_parts.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/order_by_index.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/order_limit_semantics.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/ordering.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/parameters.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/parser.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/paths.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/pattern_subquery_property_seek.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/pattern_subquery_rel_properties.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/pattern_subquery_scope.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/pattern_subquery_var_length.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/pattern_subquery_where_seek.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/planner_known_parameters.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/planner_pushdown.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/point_scan_choice.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/procedure_yield.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/projection.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/range_scan_bound_intersection.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/range_scan_other_kinds.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/scale.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/schema.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/schema_in_transaction.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/seeds.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/shared_index_value_writes.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/sort_limit_probe.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/spatial.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/starts_with_range_seek.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/statement_atomicity.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/streaming_scans.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/string_number_addition.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/sum_empty.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_constructor_functions.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_constructors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_map_components.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_strings.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_time_zones.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/temporal_zone_accessors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/test_helpers.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/timeouts.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/transactions.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/types_advanced.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/union.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/unknown_names.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/unwind_ingestion.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/update.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/var_length_bound_endpoint.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/var_length_hop_ranges.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/where_clause.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/with.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/with_predicates.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/write_path_bindings.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/write_results.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-database/tests/write_scaling.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/bits_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/cast_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/crypto.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/edge.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/json_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/map_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/node.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/path.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/uuid_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/value.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/builtins/vector_ns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/eval/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/call_subquery.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/columns.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/context.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/filter.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/mutable.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/optional.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/path.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/scan.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/shape.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/sort.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/source.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/traits.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/src/pull/union.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-executor/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/csv.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/format.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/jsonl.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-io/src/mapping.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/clauses.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/schema.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/src/parser/util.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-parser/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/body.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/codec.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/envelope.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/graph_tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/lib.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/options.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/transform.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/src/view.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-snapshot/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/Cargo.toml +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/constraint_catalog.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/constraint_enforce.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/distinct_stats.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/entity_index_store.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/id_bitmap.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/id_set.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/model_tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/point_index.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/snapshot.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/memory/test_util.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/snapshot.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/binary/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/binary/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/binary/traits.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/binary/types.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/graph.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/name.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/property_map.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/property_value.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/bbox.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/distance.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/point.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/srid.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/spatial/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/calendar.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/date.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/datetime.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/duration.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/format.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/parsing.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/time.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/temporal/zone.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/vector/build.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/vector/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/vector/similarity.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/types/view.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/src/varint.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-store/tests/error_messages.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/codec/format.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/dir.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/history.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/io.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/lock.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/lsn.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/recorder/errors.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/recorder/mirror.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/recorder/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/recorder/tests.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/testing.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/wal/group_flusher.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/crates/lora-wal/src/wal/mod.rs +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/python/lora_python/__init__.py +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/python/lora_python/py.typed +0 -0
- {lora_python-0.29.0 → lora_python-0.30.0}/python/lora_python/types.py +0 -0
|
@@ -854,7 +854,7 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
|
854
854
|
|
|
855
855
|
[[package]]
|
|
856
856
|
name = "lora-analyzer"
|
|
857
|
-
version = "0.
|
|
857
|
+
version = "0.30.0"
|
|
858
858
|
dependencies = [
|
|
859
859
|
"lora-ast",
|
|
860
860
|
"lora-builtins-meta",
|
|
@@ -865,14 +865,14 @@ dependencies = [
|
|
|
865
865
|
|
|
866
866
|
[[package]]
|
|
867
867
|
name = "lora-ast"
|
|
868
|
-
version = "0.
|
|
868
|
+
version = "0.30.0"
|
|
869
869
|
dependencies = [
|
|
870
870
|
"smallvec 2.0.0-alpha.12",
|
|
871
871
|
]
|
|
872
872
|
|
|
873
873
|
[[package]]
|
|
874
874
|
name = "lora-binding-buffer"
|
|
875
|
-
version = "0.
|
|
875
|
+
version = "0.30.0"
|
|
876
876
|
dependencies = [
|
|
877
877
|
"lora-database",
|
|
878
878
|
"lora-store",
|
|
@@ -880,11 +880,11 @@ dependencies = [
|
|
|
880
880
|
|
|
881
881
|
[[package]]
|
|
882
882
|
name = "lora-builtins-meta"
|
|
883
|
-
version = "0.
|
|
883
|
+
version = "0.30.0"
|
|
884
884
|
|
|
885
885
|
[[package]]
|
|
886
886
|
name = "lora-compiler"
|
|
887
|
-
version = "0.
|
|
887
|
+
version = "0.30.0"
|
|
888
888
|
dependencies = [
|
|
889
889
|
"lora-analyzer",
|
|
890
890
|
"lora-ast",
|
|
@@ -893,7 +893,7 @@ dependencies = [
|
|
|
893
893
|
|
|
894
894
|
[[package]]
|
|
895
895
|
name = "lora-database"
|
|
896
|
-
version = "0.
|
|
896
|
+
version = "0.30.0"
|
|
897
897
|
dependencies = [
|
|
898
898
|
"anyhow",
|
|
899
899
|
"chacha20poly1305",
|
|
@@ -918,7 +918,7 @@ dependencies = [
|
|
|
918
918
|
|
|
919
919
|
[[package]]
|
|
920
920
|
name = "lora-executor"
|
|
921
|
-
version = "0.
|
|
921
|
+
version = "0.30.0"
|
|
922
922
|
dependencies = [
|
|
923
923
|
"blake3",
|
|
924
924
|
"crc32fast",
|
|
@@ -941,7 +941,7 @@ dependencies = [
|
|
|
941
941
|
|
|
942
942
|
[[package]]
|
|
943
943
|
name = "lora-ffi"
|
|
944
|
-
version = "0.
|
|
944
|
+
version = "0.30.0"
|
|
945
945
|
dependencies = [
|
|
946
946
|
"anyhow",
|
|
947
947
|
"lora-binding-buffer",
|
|
@@ -953,7 +953,7 @@ dependencies = [
|
|
|
953
953
|
|
|
954
954
|
[[package]]
|
|
955
955
|
name = "lora-io"
|
|
956
|
-
version = "0.
|
|
956
|
+
version = "0.30.0"
|
|
957
957
|
dependencies = [
|
|
958
958
|
"lora-executor",
|
|
959
959
|
"lora-store",
|
|
@@ -964,7 +964,7 @@ dependencies = [
|
|
|
964
964
|
|
|
965
965
|
[[package]]
|
|
966
966
|
name = "lora-node"
|
|
967
|
-
version = "0.
|
|
967
|
+
version = "0.30.0"
|
|
968
968
|
dependencies = [
|
|
969
969
|
"anyhow",
|
|
970
970
|
"lora-binding-buffer",
|
|
@@ -979,7 +979,7 @@ dependencies = [
|
|
|
979
979
|
|
|
980
980
|
[[package]]
|
|
981
981
|
name = "lora-parser"
|
|
982
|
-
version = "0.
|
|
982
|
+
version = "0.30.0"
|
|
983
983
|
dependencies = [
|
|
984
984
|
"lora-ast",
|
|
985
985
|
"pest",
|
|
@@ -990,7 +990,7 @@ dependencies = [
|
|
|
990
990
|
|
|
991
991
|
[[package]]
|
|
992
992
|
name = "lora-python"
|
|
993
|
-
version = "0.
|
|
993
|
+
version = "0.30.0"
|
|
994
994
|
dependencies = [
|
|
995
995
|
"anyhow",
|
|
996
996
|
"lora-binding-buffer",
|
|
@@ -1003,7 +1003,7 @@ dependencies = [
|
|
|
1003
1003
|
|
|
1004
1004
|
[[package]]
|
|
1005
1005
|
name = "lora-query-wasm"
|
|
1006
|
-
version = "0.
|
|
1006
|
+
version = "0.30.0"
|
|
1007
1007
|
dependencies = [
|
|
1008
1008
|
"console_error_panic_hook",
|
|
1009
1009
|
"js-sys",
|
|
@@ -1017,22 +1017,24 @@ dependencies = [
|
|
|
1017
1017
|
|
|
1018
1018
|
[[package]]
|
|
1019
1019
|
name = "lora-server"
|
|
1020
|
-
version = "0.
|
|
1020
|
+
version = "0.30.0"
|
|
1021
1021
|
dependencies = [
|
|
1022
1022
|
"anyhow",
|
|
1023
1023
|
"axum",
|
|
1024
1024
|
"http-body-util",
|
|
1025
|
+
"hyper-util",
|
|
1025
1026
|
"lora-database",
|
|
1026
1027
|
"serde",
|
|
1027
1028
|
"serde_json",
|
|
1028
1029
|
"tokio",
|
|
1029
1030
|
"tower",
|
|
1030
1031
|
"tracing",
|
|
1032
|
+
"web-time",
|
|
1031
1033
|
]
|
|
1032
1034
|
|
|
1033
1035
|
[[package]]
|
|
1034
1036
|
name = "lora-snapshot"
|
|
1035
|
-
version = "0.
|
|
1037
|
+
version = "0.30.0"
|
|
1036
1038
|
dependencies = [
|
|
1037
1039
|
"argon2",
|
|
1038
1040
|
"blake3",
|
|
@@ -1047,7 +1049,7 @@ dependencies = [
|
|
|
1047
1049
|
|
|
1048
1050
|
[[package]]
|
|
1049
1051
|
name = "lora-store"
|
|
1050
|
-
version = "0.
|
|
1052
|
+
version = "0.30.0"
|
|
1051
1053
|
dependencies = [
|
|
1052
1054
|
"crc32fast",
|
|
1053
1055
|
"jiff",
|
|
@@ -1062,17 +1064,18 @@ dependencies = [
|
|
|
1062
1064
|
|
|
1063
1065
|
[[package]]
|
|
1064
1066
|
name = "lora-wal"
|
|
1065
|
-
version = "0.
|
|
1067
|
+
version = "0.30.0"
|
|
1066
1068
|
dependencies = [
|
|
1067
1069
|
"crc32fast",
|
|
1068
1070
|
"lora-store",
|
|
1069
1071
|
"serde",
|
|
1070
1072
|
"thiserror",
|
|
1073
|
+
"tracing",
|
|
1071
1074
|
]
|
|
1072
1075
|
|
|
1073
1076
|
[[package]]
|
|
1074
1077
|
name = "lora-wasm"
|
|
1075
|
-
version = "0.
|
|
1078
|
+
version = "0.30.0"
|
|
1076
1079
|
dependencies = [
|
|
1077
1080
|
"anyhow",
|
|
1078
1081
|
"console_error_panic_hook",
|
|
@@ -1088,7 +1091,7 @@ dependencies = [
|
|
|
1088
1091
|
|
|
1089
1092
|
[[package]]
|
|
1090
1093
|
name = "lora_ruby"
|
|
1091
|
-
version = "0.
|
|
1094
|
+
version = "0.30.0"
|
|
1092
1095
|
dependencies = [
|
|
1093
1096
|
"anyhow",
|
|
1094
1097
|
"lora-database",
|
|
@@ -1098,6 +1101,7 @@ dependencies = [
|
|
|
1098
1101
|
"rb-sys-env",
|
|
1099
1102
|
"serde",
|
|
1100
1103
|
"serde_json",
|
|
1104
|
+
"web-time",
|
|
1101
1105
|
]
|
|
1102
1106
|
|
|
1103
1107
|
[[package]]
|
|
@@ -4,7 +4,7 @@ resolver = "2"
|
|
|
4
4
|
|
|
5
5
|
[workspace.package]
|
|
6
6
|
edition = "2021"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.30.0"
|
|
8
8
|
license = "BUSL-1.1"
|
|
9
9
|
authors = ["LoraDB, Inc."]
|
|
10
10
|
repository = "https://github.com/lora-db/lora"
|
|
@@ -15,24 +15,25 @@ rust-version = "1.87"
|
|
|
15
15
|
# Internal crates — versions are kept in lockstep with [workspace.package].version
|
|
16
16
|
# by `scripts/sync-versions.mjs`. Both `path` and `version` are set so that
|
|
17
17
|
# `cargo publish` works (crates.io cannot resolve path-only deps).
|
|
18
|
-
lora-ast = { path = "crates/lora-ast", version = "=0.
|
|
19
|
-
lora-parser = { path = "crates/lora-parser", version = "=0.
|
|
20
|
-
lora-builtins-meta = { path = "crates/lora-builtins-meta", version = "=0.
|
|
21
|
-
lora-analyzer = { path = "crates/lora-analyzer", version = "=0.
|
|
22
|
-
lora-compiler = { path = "crates/lora-compiler", version = "=0.
|
|
23
|
-
lora-store = { path = "crates/lora-store", version = "=0.
|
|
24
|
-
lora-snapshot = { path = "crates/lora-snapshot", version = "=0.
|
|
25
|
-
lora-io = { path = "crates/lora-io", version = "=0.
|
|
26
|
-
lora-wal = { path = "crates/lora-wal", version = "=0.
|
|
27
|
-
lora-executor = { path = "crates/lora-executor", version = "=0.
|
|
28
|
-
lora-database = { path = "crates/lora-database", version = "=0.
|
|
29
|
-
lora-binding-buffer = { path = "crates/bindings/lora-binding-buffer", version = "=0.
|
|
18
|
+
lora-ast = { path = "crates/lora-ast", version = "=0.30.0" }
|
|
19
|
+
lora-parser = { path = "crates/lora-parser", version = "=0.30.0" }
|
|
20
|
+
lora-builtins-meta = { path = "crates/lora-builtins-meta", version = "=0.30.0" }
|
|
21
|
+
lora-analyzer = { path = "crates/lora-analyzer", version = "=0.30.0" }
|
|
22
|
+
lora-compiler = { path = "crates/lora-compiler", version = "=0.30.0" }
|
|
23
|
+
lora-store = { path = "crates/lora-store", version = "=0.30.0" }
|
|
24
|
+
lora-snapshot = { path = "crates/lora-snapshot", version = "=0.30.0", default-features = false }
|
|
25
|
+
lora-io = { path = "crates/lora-io", version = "=0.30.0" }
|
|
26
|
+
lora-wal = { path = "crates/lora-wal", version = "=0.30.0" }
|
|
27
|
+
lora-executor = { path = "crates/lora-executor", version = "=0.30.0", default-features = false }
|
|
28
|
+
lora-database = { path = "crates/lora-database", version = "=0.30.0" }
|
|
29
|
+
lora-binding-buffer = { path = "crates/bindings/lora-binding-buffer", version = "=0.30.0" }
|
|
30
30
|
|
|
31
31
|
# External crates.
|
|
32
32
|
anyhow = "1"
|
|
33
33
|
thiserror = "2"
|
|
34
34
|
tracing = "0"
|
|
35
35
|
axum = "0"
|
|
36
|
+
hyper-util = "0.1"
|
|
36
37
|
tokio = "1"
|
|
37
38
|
smallvec = "2.0.0-alpha.12"
|
|
38
39
|
pest = "2"
|
|
@@ -100,7 +100,7 @@ impl Hasher for QueryHasher {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
#[cfg(not(target_arch = "wasm32"))]
|
|
103
|
-
pub use actor::{write_streams_active, OpeningStream, WriteStream};
|
|
103
|
+
pub use actor::{run_on_actor_thread, write_streams_active, OpeningStream, WriteStream};
|
|
104
104
|
|
|
105
105
|
#[cfg(not(target_arch = "wasm32"))]
|
|
106
106
|
mod actor {
|
|
@@ -300,6 +300,13 @@ mod actor {
|
|
|
300
300
|
&self.columns
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
/// Whether [`Self::next_row`] can return a row without asking the
|
|
304
|
+
/// actor for more. Batching callers stop a batch here, so the pull
|
|
305
|
+
/// that commits (the one past the last row) is always its own call.
|
|
306
|
+
pub fn has_buffered_row(&self) -> bool {
|
|
307
|
+
self.rows.len() > 0
|
|
308
|
+
}
|
|
309
|
+
|
|
303
310
|
/// Pull the next row: `None` at the end (the writes are then
|
|
304
311
|
/// committed). An error rolls the writes back. Both end the
|
|
305
312
|
/// stream; later pulls report the end.
|
|
@@ -467,6 +474,15 @@ mod actor {
|
|
|
467
474
|
|
|
468
475
|
type Job = Box<dyn FnOnce() + Send>;
|
|
469
476
|
|
|
477
|
+
/// Run `job` on one of the pooled actor threads [`WriteStream`] uses,
|
|
478
|
+
/// starting a new one when none is idle. For work that may wait for
|
|
479
|
+
/// the writer lock as long as another holder keeps it, which must not
|
|
480
|
+
/// occupy a thread of the host's own pool meanwhile. A panic in `job`
|
|
481
|
+
/// is caught; the thread survives it.
|
|
482
|
+
pub fn run_on_actor_thread(job: impl FnOnce() + Send + 'static) -> std::io::Result<()> {
|
|
483
|
+
run_pooled(Box::new(job))
|
|
484
|
+
}
|
|
485
|
+
|
|
470
486
|
/// Idle actor threads kept for reuse.
|
|
471
487
|
const MAX_IDLE: usize = 8;
|
|
472
488
|
/// An idle actor thread exits after this long without work.
|
|
@@ -329,7 +329,9 @@ fn py_to_lora_value(obj: &Bound<'_, PyAny>) -> PyResult<LoraValue> {
|
|
|
329
329
|
return Ok(LoraValue::String(s.extract::<String>()?));
|
|
330
330
|
}
|
|
331
331
|
if let Ok(bytes) = obj.extract::<PyBackedBytes>() {
|
|
332
|
-
return Ok(LoraValue::Binary(LoraBinary::from_bytes(
|
|
332
|
+
return Ok(LoraValue::Binary(Box::new(LoraBinary::from_bytes(
|
|
333
|
+
bytes.to_vec(),
|
|
334
|
+
))));
|
|
333
335
|
}
|
|
334
336
|
if let Ok(list) = obj.downcast::<PyList>() {
|
|
335
337
|
let mut out = Vec::with_capacity(list.len());
|
|
@@ -369,17 +371,17 @@ fn py_dict_to_cypher(dict: &Bound<'_, PyDict>) -> PyResult<LoraValue> {
|
|
|
369
371
|
}
|
|
370
372
|
"datetime" => {
|
|
371
373
|
return parse_tagged(dict, "datetime", |iso| {
|
|
372
|
-
LoraDateTime::parse(iso).map(LoraValue::
|
|
374
|
+
LoraDateTime::parse(iso).map(LoraValue::from)
|
|
373
375
|
})
|
|
374
376
|
}
|
|
375
377
|
"localdatetime" => {
|
|
376
378
|
return parse_tagged(dict, "localdatetime", |iso| {
|
|
377
|
-
LoraLocalDateTime::parse(iso).map(LoraValue::
|
|
379
|
+
LoraLocalDateTime::parse(iso).map(LoraValue::from)
|
|
378
380
|
})
|
|
379
381
|
}
|
|
380
382
|
"duration" => {
|
|
381
383
|
return parse_tagged(dict, "duration", |iso| {
|
|
382
|
-
LoraDuration::parse(iso).map(LoraValue::
|
|
384
|
+
LoraDuration::parse(iso).map(LoraValue::from)
|
|
383
385
|
})
|
|
384
386
|
}
|
|
385
387
|
"point" => {
|
|
@@ -400,7 +402,7 @@ fn py_dict_to_cypher(dict: &Bound<'_, PyDict>) -> PyResult<LoraValue> {
|
|
|
400
402
|
.get_item("z")?
|
|
401
403
|
.map(|v| v.extract::<f64>())
|
|
402
404
|
.transpose()?;
|
|
403
|
-
return Ok(LoraValue::Point(LoraPoint { x, y, z, srid }));
|
|
405
|
+
return Ok(LoraValue::Point(Box::new(LoraPoint { x, y, z, srid })));
|
|
404
406
|
}
|
|
405
407
|
"vector" => {
|
|
406
408
|
return build_vector_from_dict(dict);
|
|
@@ -435,7 +437,7 @@ fn build_binary_from_dict(dict: &Bound<'_, PyDict>) -> PyResult<LoraValue> {
|
|
|
435
437
|
.map_err(|_| InvalidParamsError::new_err("binary segment must be bytes"))?;
|
|
436
438
|
out.push(bytes.to_vec());
|
|
437
439
|
}
|
|
438
|
-
Ok(LoraValue::Binary(LoraBinary::from_segments(out)))
|
|
440
|
+
Ok(LoraValue::Binary(Box::new(LoraBinary::from_segments(out))))
|
|
439
441
|
}
|
|
440
442
|
|
|
441
443
|
fn parse_tagged(
|
|
@@ -499,5 +501,5 @@ fn build_vector_from_dict(dict: &Bound<'_, PyDict>) -> PyResult<LoraValue> {
|
|
|
499
501
|
|
|
500
502
|
let v = LoraVector::try_new(raw, dimension, coordinate_type)
|
|
501
503
|
.map_err(|e| InvalidParamsError::new_err(e.to_string()))?;
|
|
502
|
-
Ok(LoraValue::Vector(v))
|
|
504
|
+
Ok(LoraValue::Vector(Box::new(v)))
|
|
503
505
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
//! natives; graph, temporal and spatial values are returned as tagged
|
|
19
19
|
//! `dict`s with a `kind` discriminator.
|
|
20
20
|
|
|
21
|
-
use std::collections::BTreeMap;
|
|
21
|
+
use std::collections::{BTreeMap, VecDeque};
|
|
22
22
|
use std::sync::{Arc, Mutex};
|
|
23
23
|
|
|
24
24
|
use pyo3::exceptions::PyTypeError;
|
|
@@ -39,7 +39,7 @@ mod to_python;
|
|
|
39
39
|
|
|
40
40
|
use gil::without_gil;
|
|
41
41
|
use lora_binding_buffer::stream::{OpeningStream, ShapeCache};
|
|
42
|
-
use stream::NativeStream;
|
|
42
|
+
use stream::{NativeStream, PullError};
|
|
43
43
|
|
|
44
44
|
use errors::{lora_query_err_from_anyhow, InvalidParamsError, LoraError, LoraQueryError};
|
|
45
45
|
use from_python::{
|
|
@@ -48,8 +48,8 @@ use from_python::{
|
|
|
48
48
|
py_statements_to_transaction, PyDatabaseOpenOptions,
|
|
49
49
|
};
|
|
50
50
|
use to_python::{
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
query_plan_to_py, query_profile_to_py, row_to_py_dict, rows_to_py, snapshot_info_to_meta,
|
|
52
|
+
snapshot_meta_to_py,
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
// ============================================================================
|
|
@@ -162,37 +162,20 @@ impl Database {
|
|
|
162
162
|
|
|
163
163
|
let db = self.inner()?;
|
|
164
164
|
// Release the GIL for the duration of engine work.
|
|
165
|
+
// `Rows` hands back the engine's rows without the per-cell clones
|
|
166
|
+
// of the `RowArrays` projection (see `rows_to_py`).
|
|
165
167
|
let exec_result = without_gil(py, move || {
|
|
166
168
|
let options = ExecuteOptions {
|
|
167
|
-
format: ResultFormat::
|
|
169
|
+
format: ResultFormat::Rows,
|
|
168
170
|
};
|
|
169
171
|
db.execute_with_params(&query, Some(options), params_map)
|
|
170
172
|
});
|
|
171
173
|
|
|
172
|
-
|
|
173
|
-
Ok(QueryResult::
|
|
174
|
-
Ok(_) =>
|
|
175
|
-
|
|
176
|
-
"expected RowArrays result".to_string(),
|
|
177
|
-
));
|
|
178
|
-
}
|
|
179
|
-
Err(e) => return Err(lora_query_err_from_anyhow(e)),
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
let out = PyDict::new_bound(py);
|
|
183
|
-
let columns = PyList::new_bound(py, row_arrays.columns.iter().map(|c| c.as_str()));
|
|
184
|
-
out.set_item("columns", columns)?;
|
|
185
|
-
|
|
186
|
-
let rows = PyList::empty_bound(py);
|
|
187
|
-
for row in &row_arrays.rows {
|
|
188
|
-
let py_row = PyDict::new_bound(py);
|
|
189
|
-
for (col, val) in row_arrays.columns.iter().zip(row.iter()) {
|
|
190
|
-
py_row.set_item(col, lora_value_to_py(py, val)?)?;
|
|
191
|
-
}
|
|
192
|
-
rows.append(py_row)?;
|
|
174
|
+
match exec_result {
|
|
175
|
+
Ok(QueryResult::Rows(r)) => rows_to_py(py, &r.rows),
|
|
176
|
+
Ok(_) => Err(LoraQueryError::new_err("expected Rows result".to_string())),
|
|
177
|
+
Err(e) => Err(lora_query_err_from_anyhow(e)),
|
|
193
178
|
}
|
|
194
|
-
out.set_item("rows", rows)?;
|
|
195
|
-
Ok(out)
|
|
196
179
|
}
|
|
197
180
|
|
|
198
181
|
/// Compile a query and return its plan as a `dict` without
|
|
@@ -258,9 +241,7 @@ impl Database {
|
|
|
258
241
|
let db = self.inner()?;
|
|
259
242
|
let stream = NativeStream::open(py, db, &self.shapes, query, params_map)
|
|
260
243
|
.map_err(lora_query_err_from_anyhow)?;
|
|
261
|
-
Ok(PyQueryStream
|
|
262
|
-
stream: Some(stream),
|
|
263
|
-
})
|
|
244
|
+
Ok(PyQueryStream::new(stream))
|
|
264
245
|
}
|
|
265
246
|
|
|
266
247
|
/// `stream(query)` for `AsyncDatabase.stream`: returns a `QueryStream`,
|
|
@@ -282,10 +263,7 @@ impl Database {
|
|
|
282
263
|
match NativeStream::open_nowait(py, db, &self.shapes, query, params_map)
|
|
283
264
|
.map_err(lora_query_err_from_anyhow)?
|
|
284
265
|
{
|
|
285
|
-
Ok(stream) => Ok(PyQueryStream
|
|
286
|
-
stream: Some(stream),
|
|
287
|
-
}
|
|
288
|
-
.into_py(py)),
|
|
266
|
+
Ok(stream) => Ok(PyQueryStream::new(stream).into_py(py)),
|
|
289
267
|
Err(opening) => Ok(PyOpeningStream {
|
|
290
268
|
opening: Some(opening),
|
|
291
269
|
}
|
|
@@ -314,7 +292,7 @@ impl Database {
|
|
|
314
292
|
let mut results = Vec::with_capacity(parsed_statements.len());
|
|
315
293
|
for statement in parsed_statements {
|
|
316
294
|
let options = ExecuteOptions {
|
|
317
|
-
format: ResultFormat::
|
|
295
|
+
format: ResultFormat::Rows,
|
|
318
296
|
};
|
|
319
297
|
let result =
|
|
320
298
|
tx.execute_with_params(&statement.query, Some(options), statement.params)?;
|
|
@@ -327,12 +305,10 @@ impl Database {
|
|
|
327
305
|
let exec_results = exec_results.map_err(lora_query_err_from_anyhow)?;
|
|
328
306
|
let out = PyList::empty_bound(py);
|
|
329
307
|
for result in exec_results {
|
|
330
|
-
let QueryResult::
|
|
331
|
-
return Err(LoraQueryError::new_err(
|
|
332
|
-
"expected RowArrays result".to_string(),
|
|
333
|
-
));
|
|
308
|
+
let QueryResult::Rows(rows) = result else {
|
|
309
|
+
return Err(LoraQueryError::new_err("expected Rows result".to_string()));
|
|
334
310
|
};
|
|
335
|
-
out.append(
|
|
311
|
+
out.append(rows_to_py(py, &rows.rows)?)?;
|
|
336
312
|
}
|
|
337
313
|
Ok(out)
|
|
338
314
|
}
|
|
@@ -509,13 +485,68 @@ impl Database {
|
|
|
509
485
|
}
|
|
510
486
|
}
|
|
511
487
|
|
|
488
|
+
/// Rows one native pull fetches (with the GIL released) for `__next__`.
|
|
489
|
+
const STREAM_BATCH_ROWS: usize = 256;
|
|
490
|
+
|
|
512
491
|
/// A row stream. A mutating stream runs on its own thread (see
|
|
513
492
|
/// `stream.rs`), so `next()`, `close()` and the final drop may happen on
|
|
514
|
-
/// any Python thread, before or after the `Database` is closed.
|
|
515
|
-
///
|
|
493
|
+
/// any Python thread, before or after the `Database` is closed.
|
|
494
|
+
///
|
|
495
|
+
/// Rows are pulled in batches with the GIL released, so a slow pull (the
|
|
496
|
+
/// first row of a sort or an aggregation does all the work) does not stall
|
|
497
|
+
/// other Python threads, while each row is then handed out under the GIL
|
|
498
|
+
/// without a release per row. A mutating stream's batch never reaches past
|
|
499
|
+
/// the rows its actor has produced, so it still commits only on the pull
|
|
500
|
+
/// past its last row. Calls on one stream must not overlap: one made while
|
|
501
|
+
/// another thread is inside a pull raises `RuntimeError` (already
|
|
502
|
+
/// borrowed).
|
|
516
503
|
#[pyclass(name = "QueryStream", module = "lora_python._native")]
|
|
517
504
|
pub struct PyQueryStream {
|
|
518
505
|
stream: Option<NativeStream>,
|
|
506
|
+
/// Pulled rows not yet handed out.
|
|
507
|
+
buffered: VecDeque<Row>,
|
|
508
|
+
/// An error that ended the stream after rows still in `buffered`.
|
|
509
|
+
pending: Option<PullError>,
|
|
510
|
+
mutating: bool,
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
impl PyQueryStream {
|
|
514
|
+
fn new(stream: NativeStream) -> Self {
|
|
515
|
+
Self {
|
|
516
|
+
mutating: stream.is_mutating(),
|
|
517
|
+
stream: Some(stream),
|
|
518
|
+
buffered: VecDeque::new(),
|
|
519
|
+
pending: None,
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/// Pull the next batch into `buffered`, GIL released. Afterwards
|
|
524
|
+
/// `buffered` is empty only at the end of the stream; an error with no
|
|
525
|
+
/// rows before it is returned at once.
|
|
526
|
+
fn refill(&mut self, py: Python<'_>, max_rows: usize) -> PyResult<()> {
|
|
527
|
+
if let Some(e) = self.pending.take() {
|
|
528
|
+
return Err(lora_query_err_from_anyhow(e));
|
|
529
|
+
}
|
|
530
|
+
let Some(stream) = self.stream.as_mut() else {
|
|
531
|
+
return Ok(());
|
|
532
|
+
};
|
|
533
|
+
let (rows, ended) = without_gil(py, move || {
|
|
534
|
+
let mut rows = Vec::new();
|
|
535
|
+
let ended = stream.pull_batch(&mut rows, max_rows);
|
|
536
|
+
(rows, ended)
|
|
537
|
+
});
|
|
538
|
+
if let Some(end) = ended {
|
|
539
|
+
self.stream.take();
|
|
540
|
+
if let Err(e) = end {
|
|
541
|
+
if rows.is_empty() {
|
|
542
|
+
return Err(lora_query_err_from_anyhow(e));
|
|
543
|
+
}
|
|
544
|
+
self.pending = Some(e);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
self.buffered.extend(rows);
|
|
548
|
+
Ok(())
|
|
549
|
+
}
|
|
519
550
|
}
|
|
520
551
|
|
|
521
552
|
#[pymethods]
|
|
@@ -531,6 +562,32 @@ impl PyQueryStream {
|
|
|
531
562
|
/// releases the writer lock before this returns.
|
|
532
563
|
fn close(&mut self) {
|
|
533
564
|
self.stream.take();
|
|
565
|
+
self.buffered.clear();
|
|
566
|
+
self.pending.take();
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/// Whether this stream runs a mutating query (for `AsyncDatabase`).
|
|
570
|
+
#[getter]
|
|
571
|
+
fn _mutating(&self) -> bool {
|
|
572
|
+
self.mutating
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/// Pull up to `max_rows` rows as a list of dicts, GIL released while
|
|
576
|
+
/// pulling. An empty list means the stream is exhausted (a mutating
|
|
577
|
+
/// stream has then committed). For `AsyncDatabase.stream`.
|
|
578
|
+
fn _next_batch<'py>(
|
|
579
|
+
&mut self,
|
|
580
|
+
py: Python<'py>,
|
|
581
|
+
max_rows: usize,
|
|
582
|
+
) -> PyResult<Bound<'py, PyList>> {
|
|
583
|
+
if self.buffered.is_empty() {
|
|
584
|
+
self.refill(py, max_rows)?;
|
|
585
|
+
}
|
|
586
|
+
let out = PyList::empty_bound(py);
|
|
587
|
+
while let Some(row) = self.buffered.pop_front() {
|
|
588
|
+
out.append(row_to_py_dict(py, &row)?)?;
|
|
589
|
+
}
|
|
590
|
+
Ok(out)
|
|
534
591
|
}
|
|
535
592
|
|
|
536
593
|
fn __iter__(slf: PyRef<'_, Self>) -> PyRef<'_, Self> {
|
|
@@ -538,23 +595,12 @@ impl PyQueryStream {
|
|
|
538
595
|
}
|
|
539
596
|
|
|
540
597
|
fn __next__<'py>(&mut self, py: Python<'py>) -> PyResult<Option<Bound<'py, PyDict>>> {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
// row queue for it behind busy Python threads.
|
|
548
|
-
match stream.next_row() {
|
|
549
|
-
Ok(Some(row)) => Ok(Some(row_to_py_dict(py, &row)?)),
|
|
550
|
-
Ok(None) => {
|
|
551
|
-
self.stream.take();
|
|
552
|
-
Ok(None)
|
|
553
|
-
}
|
|
554
|
-
Err(e) => {
|
|
555
|
-
self.stream.take();
|
|
556
|
-
Err(lora_query_err_from_anyhow(e))
|
|
557
|
-
}
|
|
598
|
+
if self.buffered.is_empty() {
|
|
599
|
+
self.refill(py, STREAM_BATCH_ROWS)?;
|
|
600
|
+
}
|
|
601
|
+
match self.buffered.pop_front() {
|
|
602
|
+
Some(row) => Ok(Some(row_to_py_dict(py, &row)?)),
|
|
603
|
+
None => Ok(None),
|
|
558
604
|
}
|
|
559
605
|
}
|
|
560
606
|
}
|
|
@@ -576,9 +622,7 @@ impl PyOpeningStream {
|
|
|
576
622
|
.take()
|
|
577
623
|
.ok_or_else(|| LoraQueryError::new_err("query stream is closed"))?;
|
|
578
624
|
let stream = without_gil(py, move || opening.wait()).map_err(lora_query_err_from_anyhow)?;
|
|
579
|
-
Ok(PyQueryStream
|
|
580
|
-
stream: Some(NativeStream::Actor(stream)),
|
|
581
|
-
})
|
|
625
|
+
Ok(PyQueryStream::new(NativeStream::Actor(stream)))
|
|
582
626
|
}
|
|
583
627
|
}
|
|
584
628
|
|
|
@@ -130,6 +130,44 @@ impl NativeStream {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
/// Whether this is a mutating stream (pulled from its actor).
|
|
134
|
+
pub(crate) fn is_mutating(&self) -> bool {
|
|
135
|
+
matches!(self, NativeStream::Actor(_))
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/// Whether the next pull is answered without waiting for the actor:
|
|
139
|
+
/// always for a read-only stream. A batch of a mutating stream stops
|
|
140
|
+
/// where this turns false, so the pull that commits (the one past the
|
|
141
|
+
/// last row) is always a call of its own.
|
|
142
|
+
pub(crate) fn has_buffered_row(&self) -> bool {
|
|
143
|
+
match self {
|
|
144
|
+
NativeStream::Local(_) => true,
|
|
145
|
+
NativeStream::Actor(actor) => actor.has_buffered_row(),
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/// Pull up to `max_rows` rows (at least one) into `rows`, stopping
|
|
150
|
+
/// early at a mutating stream's received rows. Returns how the stream
|
|
151
|
+
/// ended, if it did: `Ok(())` at its end, the error otherwise.
|
|
152
|
+
pub(crate) fn pull_batch(
|
|
153
|
+
&mut self,
|
|
154
|
+
rows: &mut Vec<Row>,
|
|
155
|
+
max_rows: usize,
|
|
156
|
+
) -> Option<Result<(), PullError>> {
|
|
157
|
+
let start = rows.len();
|
|
158
|
+
while rows.len() - start < max_rows.max(1) {
|
|
159
|
+
if rows.len() > start && !self.has_buffered_row() {
|
|
160
|
+
return None;
|
|
161
|
+
}
|
|
162
|
+
match self.next_row() {
|
|
163
|
+
Ok(Some(row)) => rows.push(row),
|
|
164
|
+
Ok(None) => return Some(Ok(())),
|
|
165
|
+
Err(e) => return Some(Err(e)),
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
None
|
|
169
|
+
}
|
|
170
|
+
|
|
133
171
|
/// Pull the next row. Never waits for a lock: a mutating stream's actor
|
|
134
172
|
/// already holds the writer lock and needs nothing else to answer.
|
|
135
173
|
#[inline]
|