fastdb4py 0.2.3__tar.gz → 0.2.4__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.
- {fastdb4py-0.2.3/python/fastdb4py.egg-info → fastdb4py-0.2.4}/PKG-INFO +6 -4
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/README.md +5 -3
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/include/fastdb.h +4 -1
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDb.cpp +72 -10
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbLayer.cpp +8 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbLayer_p.h +1 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDb_p.h +0 -1
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/swig/fastdb4py.i +118 -26
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/pyproject.toml +1 -1
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/README.md +21 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/column_view.py +6 -6
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/object_engine.py +7 -10
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/orm/table.py +132 -57
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/record_engine.py +153 -120
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/serializer.py +6 -8
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/string_column.py +24 -22
- {fastdb4py-0.2.3 → fastdb4py-0.2.4/python/fastdb4py.egg-info}/PKG-INFO +6 -4
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/LICENSE +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/MANIFEST.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/THIRD_PARTY_NOTICES.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/cmake/FastdbCMakeMinimumRequired.cmake +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/dump-fastdb/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/dump-fastdb/dump-fastdb-ex.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/include/fastdb-config.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/include/fastdb-geometry-utils.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/include/fastdb_payload.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/include/fastdb_payload.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbBuild.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbBuild_p.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbLayerBuild.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorDbLayerBuild_p.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorTileDb.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/FastVectorTileDb_p.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/TileBoxTake.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/TileBoxTake_p.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/abi/Handles.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/abi/fastdb_payload.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/backing/Backing.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/backing/Backing.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/backing/HeapBacking.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/backing/HeapBacking.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/BuildPlan.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/BuildPlan.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/ByteSink.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/ExecutionReport.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/GraphAuthoring.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/GraphAuthoring.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/GraphEncoder.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/GraphEncoder.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/PayloadBuilder.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/PayloadBuilder.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/RecordEncoder.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/RecordEncoder.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/ValueArena.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/build/ValueArena.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Artifact.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Artifact.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Generator.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Generator.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Identifier.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Identifier.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/RenderCpp.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/RenderPython.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/RenderRust.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/RenderTypeScript.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/codegen/Renderer.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/error/Error.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/error/Error.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/error/Result.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/identity/Sha256.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/identity/Sha256.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/Jcs.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/Jcs.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonDocument.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonDocument.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonPointer.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonPointer.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonValue.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/json/JsonValue.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/BinaryFormat.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/CheckedMath.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/GraphLayout.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/GraphLayout.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/InputSpan.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/InputSpan.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/LayoutFacts.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/NormalizedInteger.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/NormalizedInteger.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/RecordLayout.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/RecordLayout.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/RuntimeSchema.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/RuntimeSchema.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/TextEncoding.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/layout/TextEncoding.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/CompiledSpec.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/CompiledSpec.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/EmbeddedSchemas.inc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Manifest.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Manifest.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Model.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Parse.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Parse.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Resolve.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/Resolve.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/RuntimeTopology.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/RuntimeTopology.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/SchemaRepository.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/spec/SchemaRepository.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/AccessBarrier.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/AccessBarrier.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/GraphMaterialize.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/GraphOpen.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/GraphOpen.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/GraphView.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/Materialize.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/Materialize.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/Open.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/Open.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/OpenCommon.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/OpenCommon.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/PayloadOwner.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/PayloadOwner.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/View.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/src/payload/view/View.hpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/swig/fastdb4go.i +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/fastdb/swig/numpy.i +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/.gitignore +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/BenchMark/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/BenchMark/GetIntersectPtBenchmark.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/BenchMark/PointInPolygonBenchmark.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/BenchMark/README.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/BenchMark/StripDuplicateBenchmark.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2.pc.cmakein +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Config.cmake.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.core.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.engine.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.export.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.minkowski.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.offset.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.rectclip.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/include/clipper2/clipper.version.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/src/clipper.engine.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/src/clipper.offset.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Clipper2Lib/src/clipper.rectclip.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/Benchmarks/Benchmarks.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/Inflate/Inflate.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/Inflate/rabbit.svg +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/MemLeakTest/MemLeakTest.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/PolygonSamples/PolygonSamples.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/RandomClipping/RandomClipping.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/RectClipping/RectClipping.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/SimpleClipping/SimpleClipping.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/UnionClipping/UnionClipping.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/UsingZ/UsingZ.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Examples/VariableOffset/VariableOffset.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/GoogleTest in Visual Studio.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestExportHeaders.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestIsCollinear.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestLines.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestOffsetOrientation.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestOffsets.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestOrientation.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestPolygons.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestPolytreeHoles.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestPolytreeIntersection.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestPolytreeUnion.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestRandomPaths.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestRect.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestRectClip.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestSimplifyPath.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestTrimCollinear.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Tests/TestWindows.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/ClipFileLoad.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/ClipFileLoad.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/ClipFileSave.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/ClipFileSave.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/Colors.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/CommonUtils.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/Timer.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/clipper.svg.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/clipper.svg.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/Utils/clipper.svg.utils.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/clipper/clipper.version.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/LICENSE +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/UPSTREAM.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/bignum-dtoa.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/bignum-dtoa.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/bignum.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/bignum.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/cached-powers.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/cached-powers.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/diy-fp.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/double-conversion.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/double-to-string.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/double-to-string.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/fast-dtoa.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/fast-dtoa.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/fixed-dtoa.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/fixed-dtoa.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/ieee.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/string-to-double.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/string-to-double.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/strtod.cc +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/strtod.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/double-conversion/double-conversion/utils.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/Makefile.am +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/Makefile.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/config-msvc.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/config.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/control_points.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/debug.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiaaux.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiaconfig-msvc.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiaconfig.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiaconfig.h.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiaexif.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gaiageo.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/geojson.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_advanced.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_const.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_core.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_dxf.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_dynamic.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_formats.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_mbr.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_sequence.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_structs.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_wfs.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/gg_xml.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite/stored_procedures.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/headers/spatialite_private.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Ewkt.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Ewkt.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Gml.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Gml.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Kml.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Kml.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Makefile.am +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/Makefile.in +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/geoJSON.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/geoJSON.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_advanced.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_endian.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_ewkt.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_extras.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_geoJSON.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_geometries.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_kml.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_shape.cx +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_vanuatu.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_voronoj.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_wkb.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/gg_wkt.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/lex.Ewkt.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/lex.GeoJson.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/lex.Gml.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/lex.Kml.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/lex.VanuatuWkt.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/sqlite.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/vanuatuWkt.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gaiageo/src/vanuatuWkt.inl +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/Makefile.am +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/VERSIONS.TXT +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/copying.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/gpc.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/gpc/gpc.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/picosha2/LICENSE +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/picosha2/UPSTREAM.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/picosha2/picosha2.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/yyjson/LICENSE +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/yyjson/UPSTREAM.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/yyjson/src/yyjson.c +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/lib/yyjson/src/yyjson.h +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/make-fastdb/CMakeLists.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/fastcarto/make-fastdb/make-fast-db-ex.cpp +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/.gitignore +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/__init__.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/cli.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/decorator.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/feature/__init__.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/layout.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/materialize.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/orm/__init__.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/__init__.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_builder.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_codegen.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_error.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_ffi.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_runtime.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/payload/_spec.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/push.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/push_compiler.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/reader.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/registry.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/type.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py/view_owner.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/SOURCES.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/dependency_links.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/entry_points.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/not-zip-safe +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/requires.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/python/fastdb4py.egg-info/top_level.txt +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/schemas/README.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/schemas/fastdb.payload.bin.v1.md +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/schemas/fastdb.payload.manifest.v1.schema.json +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/schemas/fastdb.payload.v1.schema.json +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/schemas/fastdb.payload.v1.schema.sha256 +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/setup.cfg +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/setup.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/tools/generate_third_party_notices.py +0 -0
- {fastdb4py-0.2.3 → fastdb4py-0.2.4}/tools/vendor_portable_payload_deps.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastdb4py
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: FastCarto database bindings
|
|
5
5
|
Requires-Python: >=3.10
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -82,10 +82,12 @@ set `FASTDB_PAYLOAD_LINK_MODE=system` and set
|
|
|
82
82
|
**C++** — use a Core bundle from a tagged release, or build from source with
|
|
83
83
|
CMake (see [fastcarto/README.md](fastcarto/README.md)).
|
|
84
84
|
|
|
85
|
-
The [0.2.
|
|
85
|
+
The [0.2.3 release record](docs/releases/0.2.3.md) lists Python wheels for
|
|
86
86
|
macOS arm64/x86_64, manylinux_2_28 x86_64/aarch64 and Windows amd64 on
|
|
87
|
-
CPython 3.10, 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14.
|
|
88
|
-
|
|
87
|
+
CPython 3.10, 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14. Windows ARM64 adds
|
|
88
|
+
wheels for Python 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14; its NumPy binary
|
|
89
|
+
dependencies require Python 3.11+. Native Core bundles cover
|
|
90
|
+
Linux x86_64, macOS arm64 and Windows x64/ARM64. Remaining platform work is tracked
|
|
89
91
|
in [Issue 0001](docs/issues/0001-portable-payload-deferred-capabilities.md).
|
|
90
92
|
For platforms without a published wheel or Core bundle, Python builds from
|
|
91
93
|
source need a C++17 compiler, CMake, SWIG, and NumPy.
|
|
@@ -71,10 +71,12 @@ set `FASTDB_PAYLOAD_LINK_MODE=system` and set
|
|
|
71
71
|
**C++** — use a Core bundle from a tagged release, or build from source with
|
|
72
72
|
CMake (see [fastcarto/README.md](fastcarto/README.md)).
|
|
73
73
|
|
|
74
|
-
The [0.2.
|
|
74
|
+
The [0.2.3 release record](docs/releases/0.2.3.md) lists Python wheels for
|
|
75
75
|
macOS arm64/x86_64, manylinux_2_28 x86_64/aarch64 and Windows amd64 on
|
|
76
|
-
CPython 3.10, 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14.
|
|
77
|
-
|
|
76
|
+
CPython 3.10, 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14. Windows ARM64 adds
|
|
77
|
+
wheels for Python 3.11, 3.12, 3.13, 3.14 and free-threaded 3.14; its NumPy binary
|
|
78
|
+
dependencies require Python 3.11+. Native Core bundles cover
|
|
79
|
+
Linux x86_64, macOS arm64 and Windows x64/ARM64. Remaining platform work is tracked
|
|
78
80
|
in [Issue 0001](docs/issues/0001-portable-payload-deferred-capabilities.md).
|
|
79
81
|
For platforms without a published wheel or Core bundle, Python builds from
|
|
80
82
|
source need a C++17 compiler, CMake, SWIG, and NumPy.
|
|
@@ -224,7 +224,7 @@ namespace wx
|
|
|
224
224
|
void setTableBufferMaterialized(bool enabled);
|
|
225
225
|
size_t tableBufferBytes();
|
|
226
226
|
void setField(unsigned ix, const FastVectorDbFeatureRef* ref);
|
|
227
|
-
FastVectorDbFeatureRef* createFeatureRef(u32 ix
|
|
227
|
+
FastVectorDbFeatureRef* createFeatureRef(u32 ix=0xFFFFFFFF);
|
|
228
228
|
void freeFeatureRef(FastVectorDbFeatureRef* ref);
|
|
229
229
|
void addFeatureEnd();
|
|
230
230
|
// List column build API
|
|
@@ -370,6 +370,9 @@ namespace wx
|
|
|
370
370
|
const char* getFieldDefn(unsigned ix, FieldTypeEnum &ft, double &vmin, double &vmax);
|
|
371
371
|
size_t getFieldOffset(unsigned ix);
|
|
372
372
|
size_t getFeatureByteSize();
|
|
373
|
+
// Borrowed base of the row table. Rows are separated by getFeatureByteSize().
|
|
374
|
+
// The address remains valid only while the database and its backing buffer live.
|
|
375
|
+
void* getTableDataAddress();
|
|
373
376
|
void getExtent(double &minx, double &miny, double &maxx, double &maxy);
|
|
374
377
|
u32 getFeatureCount();
|
|
375
378
|
void rewind();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#include "FastVectorDb_p.h"
|
|
2
2
|
#include "FastVectorDbLayer_p.h"
|
|
3
3
|
#include <cstring>
|
|
4
|
+
#include <limits>
|
|
4
5
|
#include <stdlib.h>
|
|
5
6
|
|
|
6
7
|
#ifdef _WIN32
|
|
@@ -24,15 +25,61 @@ namespace wx
|
|
|
24
25
|
std::memcpy(&value, source, sizeof(value));
|
|
25
26
|
return value;
|
|
26
27
|
}
|
|
28
|
+
|
|
29
|
+
bool valid_layer_bounds(const u8* layer, const layer_header_t& header)
|
|
30
|
+
{
|
|
31
|
+
const size_t tail = size_t(header.total_size) - sizeof(layer_header_t);
|
|
32
|
+
if (header.field_count > tail / sizeof(field_desc_ex_t))
|
|
33
|
+
return false;
|
|
34
|
+
const size_t descriptors = size_t(header.field_count) * sizeof(field_desc_ex_t);
|
|
35
|
+
const u8* data = layer + sizeof(layer_header_t) + descriptors;
|
|
36
|
+
const size_t size = tail - descriptors;
|
|
37
|
+
if (header.offset_table > size)
|
|
38
|
+
return false;
|
|
39
|
+
if (header.field_count) {
|
|
40
|
+
const auto last = load_unaligned<field_desc_ex_t>(
|
|
41
|
+
layer + sizeof(layer_header_t) + descriptors - sizeof(field_desc_ex_t));
|
|
42
|
+
if (last.offset > std::numeric_limits<u64>::max() - last.size)
|
|
43
|
+
return false;
|
|
44
|
+
const u64 stride = last.offset + last.size;
|
|
45
|
+
if (stride && header.feature_count > (size - header.offset_table) / stride)
|
|
46
|
+
return false;
|
|
47
|
+
for (u16 i = 0; i < header.field_count; ++i) {
|
|
48
|
+
const auto field = load_unaligned<field_desc_ex_t>(
|
|
49
|
+
layer + sizeof(layer_header_t) + size_t(i) * sizeof(field_desc_ex_t));
|
|
50
|
+
if (field.offset > stride || field.size > stride - field.offset)
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Legacy string tables are read during construction, before the
|
|
55
|
+
// bounded optional column sections. Check their terminators here.
|
|
56
|
+
for (unsigned width : {1u, 2u}) {
|
|
57
|
+
u64 offset = width == 1 ? header.offset_strings : header.offset_wstrings;
|
|
58
|
+
if (offset > size || size - offset < sizeof(u32))
|
|
59
|
+
return false;
|
|
60
|
+
const u32 count = load_unaligned<u32>(data + offset);
|
|
61
|
+
offset += sizeof(u32);
|
|
62
|
+
if (count > (size - offset) / width)
|
|
63
|
+
return false;
|
|
64
|
+
for (u32 i = 0; i < count; ++i) {
|
|
65
|
+
for (;;) {
|
|
66
|
+
if (size - offset < width)
|
|
67
|
+
return false;
|
|
68
|
+
const bool terminated = width == 1 ? data[offset] == 0 :
|
|
69
|
+
load_unaligned<u16>(data + offset) == 0;
|
|
70
|
+
offset += width;
|
|
71
|
+
if (terminated) break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
27
77
|
}
|
|
28
78
|
|
|
29
79
|
FastVectorDb::Impl::Impl(void *pdata, size_t size, fnFreeDbBuffer fnFreeBuffer, void *cookie)
|
|
30
80
|
: m_pdata(pdata), m_size(size), m_fnFreeBuffer(fnFreeBuffer), m_cookie(cookie)
|
|
31
81
|
{
|
|
32
82
|
u8 *ptr = (u8 *)pdata;
|
|
33
|
-
bool check_mask = strcmp((const char *)ptr, "FASTVectorDB0.1") == 0;
|
|
34
|
-
assert(check_mask);
|
|
35
|
-
m_mask_check_ok=check_mask;
|
|
36
83
|
ptr += 16;
|
|
37
84
|
const u32 count = load_unaligned<u32>(ptr);
|
|
38
85
|
ptr += sizeof(u32);
|
|
@@ -113,17 +160,32 @@ namespace wx
|
|
|
113
160
|
|
|
114
161
|
FastVectorDb *FastVectorDb::load(void *pdata, size_t size, fnFreeDbBuffer fnFreeBuffer, void *cookie)
|
|
115
162
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
163
|
+
// Validate the standalone envelope once before reading its headers.
|
|
164
|
+
// The backing callback also releases invalid inputs.
|
|
165
|
+
bool valid = pdata && size >= 20 &&
|
|
166
|
+
std::memcmp(pdata, "FASTVectorDB0.1", sizeof("FASTVectorDB0.1")) == 0;
|
|
167
|
+
if (valid) {
|
|
168
|
+
const u8* ptr = static_cast<const u8*>(pdata) + 20;
|
|
169
|
+
size_t remaining = size - 20;
|
|
170
|
+
const u32 count = load_unaligned<u32>(static_cast<const u8*>(pdata) + 16);
|
|
171
|
+
for (u32 i = 0; i < count; ++i) {
|
|
172
|
+
if (remaining < sizeof(layer_header_t)) { valid = false; break; }
|
|
173
|
+
const auto header = load_unaligned<layer_header_t>(ptr);
|
|
174
|
+
if (header.total_size < sizeof(layer_header_t) || header.total_size > remaining ||
|
|
175
|
+
!valid_layer_bounds(ptr, header)) {
|
|
176
|
+
valid = false;
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
ptr += header.total_size;
|
|
180
|
+
remaining -= header.total_size;
|
|
181
|
+
}
|
|
121
182
|
}
|
|
122
|
-
|
|
183
|
+
if (!valid)
|
|
123
184
|
{
|
|
124
|
-
|
|
185
|
+
if (fnFreeBuffer) fnFreeBuffer(pdata, size, cookie);
|
|
125
186
|
return nullptr;
|
|
126
187
|
}
|
|
188
|
+
return new FastVectorDb(new Impl(pdata, size, fnFreeBuffer, cookie));
|
|
127
189
|
}
|
|
128
190
|
|
|
129
191
|
FastVectorDbFeature* FastVectorDb::tryGetFeature(wx::FastVectorDbFeatureRef* ref)
|
|
@@ -727,6 +727,10 @@ namespace wx
|
|
|
727
727
|
{
|
|
728
728
|
return m_table_line_size;
|
|
729
729
|
}
|
|
730
|
+
void* FastVectorDbLayer::Impl::getTableDataAddress()
|
|
731
|
+
{
|
|
732
|
+
return m_table_data_ptr0;
|
|
733
|
+
}
|
|
730
734
|
///////////////////////////////////////////
|
|
731
735
|
|
|
732
736
|
FastVectorDbLayer::FastVectorDbLayer(Impl *_impl) : impl(_impl) {}
|
|
@@ -842,6 +846,10 @@ namespace wx
|
|
|
842
846
|
{
|
|
843
847
|
return impl->getFeatureByteSize();
|
|
844
848
|
}
|
|
849
|
+
void* FastVectorDbLayer::getTableDataAddress()
|
|
850
|
+
{
|
|
851
|
+
return impl->getTableDataAddress();
|
|
852
|
+
}
|
|
845
853
|
|
|
846
854
|
// ---- List column read helpers ----
|
|
847
855
|
chunk_data_t FastVectorDbLayer::Impl::getFieldAsListView_internal(u32 ifeature, u32 ix)
|
|
@@ -4,11 +4,75 @@
|
|
|
4
4
|
#include "fastdb.h"
|
|
5
5
|
#include "fastdb-geometry-utils.h"
|
|
6
6
|
using namespace wx;
|
|
7
|
+
|
|
8
|
+
struct PythonDbBacking {
|
|
9
|
+
Py_buffer buffer;
|
|
10
|
+
PyObject* mapping;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
static void release_python_db_backing(void*, size_t, void* cookie) {
|
|
14
|
+
auto* backing = static_cast<PythonDbBacking*>(cookie);
|
|
15
|
+
PyGILState_STATE state = PyGILState_Ensure();
|
|
16
|
+
PyBuffer_Release(&backing->buffer);
|
|
17
|
+
if (backing->mapping) {
|
|
18
|
+
PyObject* result = PyObject_CallMethod(backing->mapping, "close", NULL);
|
|
19
|
+
if (result)
|
|
20
|
+
Py_DECREF(result);
|
|
21
|
+
else
|
|
22
|
+
PyErr_WriteUnraisable(backing->mapping);
|
|
23
|
+
Py_DECREF(backing->mapping);
|
|
24
|
+
}
|
|
25
|
+
PyMem_Free(backing);
|
|
26
|
+
PyGILState_Release(state);
|
|
27
|
+
}
|
|
7
28
|
%}
|
|
8
29
|
|
|
9
30
|
// Tell SWIG to ignore fastdb_api when parsing headers
|
|
10
31
|
#define fastdb_api
|
|
11
32
|
|
|
33
|
+
// These factories transfer a newly allocated object to their caller. Layers,
|
|
34
|
+
// cached features and builder-created refs remain owned by their parent.
|
|
35
|
+
%newobject wx::FastVectorDb::load(const char *filename);
|
|
36
|
+
%newobject wx::FastVectorDb::load_python_buffer;
|
|
37
|
+
%rename(load_xbuffer) wx::FastVectorDb::load_python_buffer;
|
|
38
|
+
%newobject wx::FastVectorDbFeatureRef::make_ref;
|
|
39
|
+
|
|
40
|
+
%define BORROWED_RESULT(method)
|
|
41
|
+
%pythonappend method %{
|
|
42
|
+
if val is not None:
|
|
43
|
+
val._fdb_parent = self
|
|
44
|
+
%}
|
|
45
|
+
%enddef
|
|
46
|
+
BORROWED_RESULT(wx::FastVectorDbBuild::createLayerBegin)
|
|
47
|
+
BORROWED_RESULT(wx::FastVectorDbLayerBuild::createFeatureRef)
|
|
48
|
+
BORROWED_RESULT(wx::FastVectorDb::getLayer)
|
|
49
|
+
BORROWED_RESULT(wx::FastVectorDb::tryGetFeature)
|
|
50
|
+
BORROWED_RESULT(wx::FastVectorDb::buffer)
|
|
51
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::tryGetFeatureAt)
|
|
52
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::getGeometryLikeChunk)
|
|
53
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::getFieldAsStringView)
|
|
54
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::getStringColumnOffsets)
|
|
55
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::getStringColumnData)
|
|
56
|
+
BORROWED_RESULT(wx::FastVectorDbLayer::getFieldAsFeatureRef)
|
|
57
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::layer)
|
|
58
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::getGeometryLikeChunk)
|
|
59
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::getFieldAsStringView)
|
|
60
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::getFieldAsListView)
|
|
61
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::getFieldAsFeatureRef)
|
|
62
|
+
BORROWED_RESULT(wx::FastVectorDbFeature::getFieldListRefAt)
|
|
63
|
+
BORROWED_RESULT(wx::MemoryStream::data)
|
|
64
|
+
|
|
65
|
+
%define DATABASE_RESULT(method)
|
|
66
|
+
%exception method {
|
|
67
|
+
$action
|
|
68
|
+
if (PyErr_Occurred()) SWIG_fail;
|
|
69
|
+
if (!result)
|
|
70
|
+
SWIG_exception_fail(SWIG_ValueError, "Invalid FastDB database buffer.");
|
|
71
|
+
}
|
|
72
|
+
%enddef
|
|
73
|
+
DATABASE_RESULT(wx::FastVectorDb::load)
|
|
74
|
+
DATABASE_RESULT(wx::FastVectorDb::load_python_buffer)
|
|
75
|
+
|
|
12
76
|
// Release the GIL for pure C++ operations that do not touch Python objects.
|
|
13
77
|
// This benefits both standard Python (better multi-threaded throughput) and
|
|
14
78
|
// free-threaded Python 3.13+ (PEP 703).
|
|
@@ -32,7 +96,33 @@
|
|
|
32
96
|
// When built on free-threaded Python, SWIG automatically declares Py_MOD_GIL_NOT_USED.
|
|
33
97
|
%}
|
|
34
98
|
|
|
35
|
-
|
|
99
|
+
%extend wx::FastVectorDb {
|
|
100
|
+
static wx::FastVectorDb* load_python_buffer(PyObject* pdata, PyObject* mapping = Py_None) {
|
|
101
|
+
// Independent view: callers may release their view after this call.
|
|
102
|
+
PyObject* view = PyMemoryView_FromObject(pdata);
|
|
103
|
+
if (!view) return NULL;
|
|
104
|
+
auto* backing = static_cast<PythonDbBacking*>(PyMem_Calloc(1, sizeof(PythonDbBacking)));
|
|
105
|
+
if (!backing) {
|
|
106
|
+
Py_DECREF(view);
|
|
107
|
+
PyErr_NoMemory();
|
|
108
|
+
return NULL;
|
|
109
|
+
}
|
|
110
|
+
int status = PyObject_GetBuffer(view, &backing->buffer, PyBUF_SIMPLE);
|
|
111
|
+
Py_DECREF(view);
|
|
112
|
+
if (status != 0) {
|
|
113
|
+
PyMem_Free(backing);
|
|
114
|
+
return NULL;
|
|
115
|
+
}
|
|
116
|
+
wx::FastVectorDb* db = wx::FastVectorDb::load(
|
|
117
|
+
backing->buffer.buf, (size_t)backing->buffer.len,
|
|
118
|
+
release_python_db_backing, backing);
|
|
119
|
+
if (db && mapping != Py_None) {
|
|
120
|
+
Py_INCREF(mapping);
|
|
121
|
+
backing->mapping = mapping;
|
|
122
|
+
}
|
|
123
|
+
return db;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
36
126
|
|
|
37
127
|
%typemap(in) const wchar_t * (wchar_t *temp = NULL) {
|
|
38
128
|
if ($input == Py_None) {
|
|
@@ -101,26 +191,19 @@
|
|
|
101
191
|
}
|
|
102
192
|
|
|
103
193
|
%typemap(default) (const u8* data,size_t size) {};
|
|
104
|
-
|
|
194
|
+
|
|
195
|
+
// Copying stream writes borrow their input only for this C call. Retained
|
|
196
|
+
// database buffers use load_python_buffer's native lifetime cookie instead.
|
|
105
197
|
%typemap(in) (void* pdata, size_t size) (Py_buffer view) {
|
|
106
|
-
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
// 获取缓冲区视图,PyBUF_SIMPLE 请求一个简单的连续字节缓冲区
|
|
111
|
-
if (PyObject_GetBuffer($input, &view, PyBUF_SIMPLE) != 0) {
|
|
112
|
-
SWIG_exception_fail(SWIG_TypeError, "Failed to get buffer from object.");
|
|
198
|
+
memset(&view, 0, sizeof(view));
|
|
199
|
+
if (PyObject_GetBuffer($input, &view, PyBUF_SIMPLE) < 0) {
|
|
200
|
+
SWIG_fail;
|
|
113
201
|
}
|
|
114
|
-
|
|
115
|
-
$
|
|
116
|
-
$2 = view.len; // size_t size 设置数据长度
|
|
202
|
+
$1 = view.buf;
|
|
203
|
+
$2 = (size_t)view.len;
|
|
117
204
|
}
|
|
118
|
-
|
|
119
|
-
// 定义 freearg 类型映射,在函数调用后释放缓冲区
|
|
120
205
|
%typemap(freearg) (void* pdata, size_t size) {
|
|
121
|
-
if (view$argnum.obj)
|
|
122
|
-
PyBuffer_Release(&view$argnum);
|
|
123
|
-
}
|
|
206
|
+
if (view$argnum.obj) PyBuffer_Release(&view$argnum);
|
|
124
207
|
}
|
|
125
208
|
|
|
126
209
|
// Typemap for set_field_list_numeric: accepts any buffer object; nbytes = byte length of buffer
|
|
@@ -191,6 +274,13 @@
|
|
|
191
274
|
%ignore wx::FastVectorDbFeature::FastVectorDbFeature();
|
|
192
275
|
%ignore wx::FastVectorDbFeature::~FastVectorDbFeature();
|
|
193
276
|
%ignore wx::FastVectorDb::load(void *pdata, size_t size, fnFreeDbBuffer fnFreeBuffer, void *cookie);
|
|
277
|
+
%ignore wx::FastVectorDb::load_xbuffer;
|
|
278
|
+
%ignore wx::FixedBufferWriteStream::FixedBufferWriteStream;
|
|
279
|
+
%nodefaultctor wx::FixedBufferWriteStream;
|
|
280
|
+
%ignore wx::aabbox_t::minEdge;
|
|
281
|
+
%ignore wx::aabbox_t::maxEdge;
|
|
282
|
+
%ignore wx::GeometryUtils::get_point_at;
|
|
283
|
+
%ignore wx::GeometryUtils::part_data;
|
|
194
284
|
%ignore wx::FastVectorDbBuild::postToBuffer;
|
|
195
285
|
%ignore wx::FastVectorDbLayerBuild::setNumericColumnBulk;
|
|
196
286
|
%nodefaultctor FastVectorDbLayerBuild;
|
|
@@ -228,6 +318,7 @@
|
|
|
228
318
|
%rename(get_field_defn) getFieldDefn_p;
|
|
229
319
|
%rename(get_extent) getExtent_p;
|
|
230
320
|
%rename(get_feature_count) getFeatureCount;
|
|
321
|
+
%rename(get_table_data_address) getTableDataAddress;
|
|
231
322
|
%rename(get_geometry_like_chunk) getGeometryLikeChunk;
|
|
232
323
|
%rename(get_field_as_float) getFieldAsFloat;
|
|
233
324
|
%rename(get_field_as_int) getFieldAsInt;
|
|
@@ -261,11 +352,10 @@
|
|
|
261
352
|
%rename(get_field_list_ref_at) getFieldListRefAt;
|
|
262
353
|
|
|
263
354
|
%extend wx::chunk_data_t {
|
|
264
|
-
PyObject *as_array(PyObject* npType) {
|
|
355
|
+
PyObject *as_array(PyObject* npType, PyObject** PYTHON_SELF) {
|
|
265
356
|
int typenum;
|
|
266
357
|
PyArray_Descr* descr = PyArray_DescrFromTypeObject(npType);
|
|
267
358
|
if (descr == NULL) {
|
|
268
|
-
PyErr_Clear(); // 或进行其他错误处理
|
|
269
359
|
return NULL;
|
|
270
360
|
} else {
|
|
271
361
|
typenum = descr->type_num;
|
|
@@ -281,21 +371,22 @@
|
|
|
281
371
|
|
|
282
372
|
Py_DECREF(descr);
|
|
283
373
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if ($self->size % item_size != 0) {
|
|
374
|
+
if (item_size == 0 || $self->size % item_size != 0) {
|
|
287
375
|
PyErr_SetString(PyExc_ValueError, "Buffer size does not match an integer number of elements for the given data type.");
|
|
288
376
|
return NULL;
|
|
289
377
|
}
|
|
378
|
+
npy_intp num_elements = $self->size / item_size;
|
|
290
379
|
npy_intp dims[1] = {num_elements};
|
|
291
380
|
PyObject *array = PyArray_SimpleNewFromData(1, dims, typenum, (void*)($self->pdata));
|
|
292
381
|
if (!array) {
|
|
293
382
|
PyErr_SetString(PyExc_RuntimeError, "Failed to create NumPy array");
|
|
294
383
|
return NULL;
|
|
295
384
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
385
|
+
Py_INCREF(*PYTHON_SELF);
|
|
386
|
+
if (PyArray_SetBaseObject((PyArrayObject*)array, *PYTHON_SELF) < 0) {
|
|
387
|
+
Py_DECREF(array);
|
|
388
|
+
return NULL;
|
|
389
|
+
}
|
|
299
390
|
return array;
|
|
300
391
|
}
|
|
301
392
|
|
|
@@ -333,6 +424,7 @@
|
|
|
333
424
|
|
|
334
425
|
%pythoncode %{
|
|
335
426
|
import numpy as np
|
|
427
|
+
|
|
336
428
|
%}
|
|
337
429
|
%extend wx::FastVectorDbLayer {
|
|
338
430
|
%pythoncode %{
|
|
@@ -379,7 +471,7 @@
|
|
|
379
471
|
|
|
380
472
|
if(not tystr):
|
|
381
473
|
return None
|
|
382
|
-
ptr = _fastdb4py.get_swig_ptr_as_long(table.
|
|
474
|
+
ptr = _fastdb4py.get_swig_ptr_as_long(table.get_table_data_address())
|
|
383
475
|
offset = table.get_field_offset(index)
|
|
384
476
|
ptr+=offset
|
|
385
477
|
return __column_np_interface__(
|
|
@@ -129,6 +129,27 @@ print(table.column.x.mean())
|
|
|
129
129
|
|
|
130
130
|
## Backed View Lifetimes
|
|
131
131
|
|
|
132
|
+
`RecordEngine.close()` releases the engine's own references and may be called
|
|
133
|
+
repeatedly. Tables retain their engine, and cached column accessors and views
|
|
134
|
+
share backing state that does not reference the table. Their last reference
|
|
135
|
+
releases the native database immediately, without waiting for cyclic garbage
|
|
136
|
+
collection. `ObjectEngine` releases its references when the engine itself is
|
|
137
|
+
no longer referenced; it has no `close()` method. Closing a RecordEngine does
|
|
138
|
+
not invalidate a caller's `FdbViewOwner`; the caller ends a lease with
|
|
139
|
+
`fdb.invalidate(owner_or_view)`.
|
|
140
|
+
|
|
141
|
+
After `RecordEngine.close()`, writes that require the engine, including
|
|
142
|
+
`Table.fill()` and string-column fills, raise `RuntimeError: RecordEngine is
|
|
143
|
+
closed.` Direct writes to retained writable NumPy views still update the
|
|
144
|
+
memory those views retain.
|
|
145
|
+
|
|
146
|
+
`core.WxDatabase.load_xbuffer(buffer)` pins a contiguous buffer export until
|
|
147
|
+
the native database is destroyed. This includes borrowed `bytes`, `bytearray`,
|
|
148
|
+
NumPy and `mmap` storage. Resizing or closing an exported buffer raises
|
|
149
|
+
`BufferError` while a table, row, or column still keeps the database alive.
|
|
150
|
+
Shared-memory mappings close after native layers and the buffer export are
|
|
151
|
+
released.
|
|
152
|
+
|
|
132
153
|
FastDB Python values have two lifetime modes. A plain `@feature` instance is owned Python data: its fields live in `__dict__`, it can be kept indefinitely, and assigning `point.x = 1.0` is ordinary Python object mutation. A row returned from a mapped `Table` is a backed feature view: schema fields read from the native table row, scalar numeric writes go back to native storage when the view is writeable, and the view is tied to a `FdbViewOwner`.
|
|
133
154
|
|
|
134
155
|
Standalone FastDB tables use a trusted unchecked owner by default, so existing high-performance workflows keep raw NumPy column access:
|
|
@@ -7,20 +7,20 @@ import numpy as np
|
|
|
7
7
|
from .view_owner import FdbViewOwner, FdbViewWriteError
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
-
from .orm.table import
|
|
10
|
+
from .orm.table import _TableState
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class NumericColumnView:
|
|
14
14
|
"""Owner-checked view over a numeric native column."""
|
|
15
15
|
|
|
16
|
-
def __init__(self,
|
|
17
|
-
self.
|
|
16
|
+
def __init__(self, state: '_TableState', field_index: int, field_name: str, array: np.ndarray):
|
|
17
|
+
self._state = state
|
|
18
18
|
self._field_index = field_index
|
|
19
19
|
self._field_name = field_name
|
|
20
20
|
self._array = array
|
|
21
|
-
self._owner: FdbViewOwner =
|
|
22
|
-
self._writeable =
|
|
23
|
-
self._owner_generation =
|
|
21
|
+
self._owner: FdbViewOwner = state._fdb_owner
|
|
22
|
+
self._writeable = state._fdb_writeable
|
|
23
|
+
self._owner_generation = state._fdb_owner.generation
|
|
24
24
|
|
|
25
25
|
def _checked_array(self) -> np.ndarray:
|
|
26
26
|
self._owner.assert_alive(self._owner_generation)
|
|
@@ -132,7 +132,6 @@ class ObjectEngine:
|
|
|
132
132
|
def __init__(self):
|
|
133
133
|
self._db_build: Optional[core.WxDatabaseBuild] = None
|
|
134
134
|
self._db: Optional[core.WxDatabase] = None
|
|
135
|
-
self._buffer: Optional[bytes] = None
|
|
136
135
|
self._layers: Dict[Type, LayerState] = {}
|
|
137
136
|
self._layer_order: List[Type] = []
|
|
138
137
|
self._built = False
|
|
@@ -170,10 +169,10 @@ class ObjectEngine:
|
|
|
170
169
|
engine._db_build.post(mem)
|
|
171
170
|
buf = mem.data().as_array(np.uint8).tobytes()
|
|
172
171
|
engine._db = core.WxDatabase.load_xbuffer(buf)
|
|
173
|
-
engine._db._buffer = buf
|
|
174
|
-
engine._buffer = buf
|
|
175
172
|
engine._built = True
|
|
176
173
|
engine._db_build = None
|
|
174
|
+
for state in engine._layers.values():
|
|
175
|
+
state.build = None
|
|
177
176
|
return engine
|
|
178
177
|
|
|
179
178
|
def push(self, obj: Any) -> None:
|
|
@@ -237,10 +236,10 @@ class ObjectEngine:
|
|
|
237
236
|
self._db_build.post(mem)
|
|
238
237
|
buf = mem.data().as_array(np.uint8).tobytes()
|
|
239
238
|
self._db = core.WxDatabase.load_xbuffer(buf)
|
|
240
|
-
self._db._buffer = buf
|
|
241
|
-
self._buffer = buf
|
|
242
239
|
self._built = True
|
|
243
240
|
self._db_build = None
|
|
241
|
+
for state in self._layers.values():
|
|
242
|
+
state.build = None
|
|
244
243
|
self._pending.clear()
|
|
245
244
|
self._pushed_ids.clear()
|
|
246
245
|
self._pending_counts.clear()
|
|
@@ -393,9 +392,9 @@ class ObjectEngine:
|
|
|
393
392
|
if not self._built:
|
|
394
393
|
raise RuntimeError("Call combine() before sharing")
|
|
395
394
|
import multiprocessing.shared_memory as shm_mod
|
|
396
|
-
|
|
397
|
-
seg = shm_mod.SharedMemory(name=name, create=True, size=
|
|
398
|
-
seg.buf
|
|
395
|
+
chunk = self._db.buffer()
|
|
396
|
+
seg = shm_mod.SharedMemory(name=name, create=True, size=chunk.size)
|
|
397
|
+
chunk.copy_to_buffer(seg.buf)
|
|
399
398
|
seg.close()
|
|
400
399
|
|
|
401
400
|
@classmethod
|
|
@@ -408,8 +407,6 @@ class ObjectEngine:
|
|
|
408
407
|
|
|
409
408
|
orm = cls()
|
|
410
409
|
orm._db = core.WxDatabase.load_xbuffer(buf)
|
|
411
|
-
orm._db._buffer = buf
|
|
412
|
-
orm._buffer = buf
|
|
413
410
|
orm._built = True
|
|
414
411
|
|
|
415
412
|
for i in range(orm._db.get_layer_count()):
|