storq 0.1.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.
- storq-0.1.0/.github/workflows/release.yml +184 -0
- storq-0.1.0/.gitignore +84 -0
- storq-0.1.0/CMakeLists.txt +197 -0
- storq-0.1.0/LICENSE +201 -0
- storq-0.1.0/PKG-INFO +146 -0
- storq-0.1.0/README.md +114 -0
- storq-0.1.0/cmake/StorqConfig.cmake.in +6 -0
- storq-0.1.0/docs/getting-started.md +160 -0
- storq-0.1.0/docs/index.md +50 -0
- storq-0.1.0/docs/managed-sqlite-contract.md +236 -0
- storq-0.1.0/docs/project-purpose.md +45 -0
- storq-0.1.0/docs/python-api.md +760 -0
- storq-0.1.0/docs/reliability-modules.md +71 -0
- storq-0.1.0/docs/reporting-and-benchmarking.md +219 -0
- storq-0.1.0/docs/safety-and-limitations.md +78 -0
- storq-0.1.0/docs/workflows-and-testing.md +167 -0
- storq-0.1.0/example/README.md +34 -0
- storq-0.1.0/example/example_1.py +41 -0
- storq-0.1.0/example/example_10.py +52 -0
- storq-0.1.0/example/example_11.py +34 -0
- storq-0.1.0/example/example_12.py +35 -0
- storq-0.1.0/example/example_13.py +51 -0
- storq-0.1.0/example/example_14.py +48 -0
- storq-0.1.0/example/example_15.py +35 -0
- storq-0.1.0/example/example_2.py +40 -0
- storq-0.1.0/example/example_3.py +39 -0
- storq-0.1.0/example/example_4.py +39 -0
- storq-0.1.0/example/example_5.py +33 -0
- storq-0.1.0/example/example_6.py +55 -0
- storq-0.1.0/example/example_7.py +93 -0
- storq-0.1.0/example/example_8.py +29 -0
- storq-0.1.0/example/example_9.py +42 -0
- storq-0.1.0/examples/analyze_malformed.cpp +96 -0
- storq-0.1.0/examples/analyze_truncated_wal.cpp +88 -0
- storq-0.1.0/examples/basic_runtime.cpp +35 -0
- storq-0.1.0/examples/corrupt_wal.cpp +205 -0
- storq-0.1.0/examples/crash_simulation.cpp +43 -0
- storq-0.1.0/examples/fault_injection.cpp +229 -0
- storq-0.1.0/examples/forensics.cpp +39 -0
- storq-0.1.0/examples/format_inspector.cpp +40 -0
- storq-0.1.0/examples/page_analyzer.cpp +77 -0
- storq-0.1.0/examples/recovery_verification.cpp +62 -0
- storq-0.1.0/examples/storage.cpp +120 -0
- storq-0.1.0/examples/wal_analyzer.cpp +38 -0
- storq-0.1.0/include/storq/adapters/database_adapter.hpp +227 -0
- storq-0.1.0/include/storq/adapters/sqlite/sqlite_adapter.hpp +92 -0
- storq-0.1.0/include/storq/analysis/page_analyzer.hpp +345 -0
- storq-0.1.0/include/storq/common/constants.hpp +12 -0
- storq-0.1.0/include/storq/common/result.hpp +129 -0
- storq-0.1.0/include/storq/common/types.hpp +14 -0
- storq-0.1.0/include/storq/common/utilities.hpp +60 -0
- storq-0.1.0/include/storq/core/capabilities.hpp +21 -0
- storq-0.1.0/include/storq/core/configuration.hpp +58 -0
- storq-0.1.0/include/storq/core/error.hpp +56 -0
- storq-0.1.0/include/storq/core/logger.hpp +44 -0
- storq-0.1.0/include/storq/core/module.hpp +19 -0
- storq-0.1.0/include/storq/core/module_registry.hpp +32 -0
- storq-0.1.0/include/storq/core/runtime.hpp +54 -0
- storq-0.1.0/include/storq/core/version.hpp +18 -0
- storq-0.1.0/include/storq/crash/crash_simulator.hpp +281 -0
- storq-0.1.0/include/storq/fault/fault_injector.hpp +375 -0
- storq-0.1.0/include/storq/forensics/forensics_engine.hpp +281 -0
- storq-0.1.0/include/storq/format/format_inspector.hpp +248 -0
- storq-0.1.0/include/storq/format/storq_format.hpp +198 -0
- storq-0.1.0/include/storq/index/hash_index.hpp +32 -0
- storq-0.1.0/include/storq/index/index_key.hpp +45 -0
- storq-0.1.0/include/storq/page/data_page.hpp +60 -0
- storq-0.1.0/include/storq/records/record.hpp +28 -0
- storq-0.1.0/include/storq/records/record_id.hpp +23 -0
- storq-0.1.0/include/storq/records/record_manager.hpp +42 -0
- storq-0.1.0/include/storq/recovery/recovery_engine.hpp +313 -0
- storq-0.1.0/include/storq/storage/storage.hpp +289 -0
- storq-0.1.0/include/storq/storq.hpp +33 -0
- storq-0.1.0/include/storq/wal/native_wal.hpp +57 -0
- storq-0.1.0/include/storq/wal/wal_analyzer.hpp +324 -0
- storq-0.1.0/include/storq/workload/workload_engine.hpp +198 -0
- storq-0.1.0/phase.md +587 -0
- storq-0.1.0/pyproject.toml +45 -0
- storq-0.1.0/python/CMakeLists.txt +9 -0
- storq-0.1.0/python/bindings/adapter_bindings.cpp +438 -0
- storq-0.1.0/python/bindings/core_bindings.cpp +50 -0
- storq-0.1.0/python/bindings/inspection_bindings.cpp +232 -0
- storq-0.1.0/python/bindings/module.cpp +14 -0
- storq-0.1.0/python/bindings/module18_bindings.cpp +38 -0
- storq-0.1.0/python/bindings/record_bindings.cpp +98 -0
- storq-0.1.0/python/bindings/workload_bindings.cpp +88 -0
- storq-0.1.0/python/storq/__init__.py +147 -0
- storq-0.1.0/python/storq/_native.pyi +128 -0
- storq-0.1.0/python/storq/benchmarking/__init__.py +29 -0
- storq-0.1.0/python/storq/benchmarking/comparison/comparator.py +35 -0
- storq-0.1.0/python/storq/benchmarking/comparison/comparison_result.py +25 -0
- storq-0.1.0/python/storq/benchmarking/comparison/regression.py +66 -0
- storq-0.1.0/python/storq/benchmarking/config.py +58 -0
- storq-0.1.0/python/storq/benchmarking/engine.py +136 -0
- storq-0.1.0/python/storq/benchmarking/environment.py +42 -0
- storq-0.1.0/python/storq/benchmarking/exporters/csv.py +29 -0
- storq-0.1.0/python/storq/benchmarking/exporters/json.py +24 -0
- storq-0.1.0/python/storq/benchmarking/history/__init__.py +15 -0
- storq-0.1.0/python/storq/benchmarking/history/manager.py +79 -0
- storq-0.1.0/python/storq/benchmarking/models.py +53 -0
- storq-0.1.0/python/storq/benchmarking/statistics.py +69 -0
- storq-0.1.0/python/storq/benchmarking/suite.py +47 -0
- storq-0.1.0/python/storq/benchmarking/workloads.py +52 -0
- storq-0.1.0/python/storq/diagnosis.py +143 -0
- storq-0.1.0/python/storq/evidence.py +190 -0
- storq-0.1.0/python/storq/fixtures.py +85 -0
- storq-0.1.0/python/storq/forensics.py +367 -0
- storq-0.1.0/python/storq/format.py +37 -0
- storq-0.1.0/python/storq/managed.py +3715 -0
- storq-0.1.0/python/storq/py.typed +0 -0
- storq-0.1.0/python/storq/reporting/__init__.py +36 -0
- storq-0.1.0/python/storq/reporting/builder.py +114 -0
- storq-0.1.0/python/storq/reporting/comparison/__init__.py +16 -0
- storq-0.1.0/python/storq/reporting/comparison/comparison_result.py +30 -0
- storq-0.1.0/python/storq/reporting/comparison/report_comparator.py +56 -0
- storq-0.1.0/python/storq/reporting/config.py +40 -0
- storq-0.1.0/python/storq/reporting/engine.py +33 -0
- storq-0.1.0/python/storq/reporting/exporters/__init__.py +15 -0
- storq-0.1.0/python/storq/reporting/exporters/base.py +31 -0
- storq-0.1.0/python/storq/reporting/exporters/csv_exporter.py +41 -0
- storq-0.1.0/python/storq/reporting/exporters/html_exporter.py +62 -0
- storq-0.1.0/python/storq/reporting/exporters/json_exporter.py +27 -0
- storq-0.1.0/python/storq/reporting/exporters/manager.py +35 -0
- storq-0.1.0/python/storq/reporting/exporters/pdf_exporter.py +56 -0
- storq-0.1.0/python/storq/reporting/history/__init__.py +15 -0
- storq-0.1.0/python/storq/reporting/history/history_manager.py +70 -0
- storq-0.1.0/python/storq/reporting/models.py +137 -0
- storq-0.1.0/python/storq/reporting/normalizer.py +110 -0
- storq-0.1.0/python/storq/reporting/registry.py +45 -0
- storq-0.1.0/python/storq/reporting/sections.py +35 -0
- storq-0.1.0/python/storq/reporting/serialization.py +77 -0
- storq-0.1.0/python/storq/reporting/templates/__init__.py +24 -0
- storq-0.1.0/python/storq/reporting/visualization/__init__.py +15 -0
- storq-0.1.0/python/storq/reporting/visualization/charts.py +25 -0
- storq-0.1.0/python/storq/reporting/visualization/engine.py +63 -0
- storq-0.1.0/python/storq/testing/__init__.py +24 -0
- storq-0.1.0/python/storq/testing/builtin.py +83 -0
- storq-0.1.0/python/storq/testing/cases.py +58 -0
- storq-0.1.0/python/storq/testing/config.py +59 -0
- storq-0.1.0/python/storq/testing/models.py +76 -0
- storq-0.1.0/python/storq/testing/registry.py +53 -0
- storq-0.1.0/python/storq/testing/suites.py +174 -0
- storq-0.1.0/python/storq/workflows/__init__.py +39 -0
- storq-0.1.0/python/storq/workflows/builder.py +142 -0
- storq-0.1.0/python/storq/workflows/config.py +40 -0
- storq-0.1.0/python/storq/workflows/context.py +53 -0
- storq-0.1.0/python/storq/workflows/events/__init__.py +16 -0
- storq-0.1.0/python/storq/workflows/events/dispatcher.py +52 -0
- storq-0.1.0/python/storq/workflows/events/event.py +27 -0
- storq-0.1.0/python/storq/workflows/execution/__init__.py +20 -0
- storq-0.1.0/python/storq/workflows/execution/cancellation.py +37 -0
- storq-0.1.0/python/storq/workflows/execution/checkpoint.py +82 -0
- storq-0.1.0/python/storq/workflows/execution/dependency.py +51 -0
- storq-0.1.0/python/storq/workflows/execution/executor.py +197 -0
- storq-0.1.0/python/storq/workflows/execution/retry.py +26 -0
- storq-0.1.0/python/storq/workflows/execution/state.py +105 -0
- storq-0.1.0/python/storq/workflows/results/__init__.py +16 -0
- storq-0.1.0/python/storq/workflows/results/history.py +64 -0
- storq-0.1.0/python/storq/workflows/results/result.py +77 -0
- storq-0.1.0/python/storq/workflows/serialization/__init__.py +16 -0
- storq-0.1.0/python/storq/workflows/serialization/schema.py +19 -0
- storq-0.1.0/python/storq/workflows/serialization/serializer.py +102 -0
- storq-0.1.0/python/storq/workflows/steps/__init__.py +62 -0
- storq-0.1.0/python/storq/workflows/steps/base.py +76 -0
- storq-0.1.0/python/storq/workflows/steps/native.py +94 -0
- storq-0.1.0/python/storq/workflows/steps/registration.py +29 -0
- storq-0.1.0/python/storq/workflows/steps/registry.py +44 -0
- storq-0.1.0/python/storq/workflows/templates.py +59 -0
- storq-0.1.0/python/storq/workflows/workflow.py +168 -0
- storq-0.1.0/python/tests/benchmarking/test_benchmarking.py +102 -0
- storq-0.1.0/python/tests/reporting/test_reporting.py +62 -0
- storq-0.1.0/python/tests/test_native_bindings.py +1304 -0
- storq-0.1.0/python/tests/workflows/test_workflows.py +55 -0
- storq-0.1.0/src/adapters/database_adapter.cpp +154 -0
- storq-0.1.0/src/adapters/sqlite/sqlite_adapter.cpp +438 -0
- storq-0.1.0/src/analysis/page_analyzer.cpp +1424 -0
- storq-0.1.0/src/common/utilities.cpp +87 -0
- storq-0.1.0/src/core/capabilities.cpp +32 -0
- storq-0.1.0/src/core/configuration.cpp +77 -0
- storq-0.1.0/src/core/error.cpp +46 -0
- storq-0.1.0/src/core/logger.cpp +125 -0
- storq-0.1.0/src/core/module_registry.cpp +188 -0
- storq-0.1.0/src/core/runtime.cpp +196 -0
- storq-0.1.0/src/core/version.cpp +36 -0
- storq-0.1.0/src/crash/crash_simulator.cpp +390 -0
- storq-0.1.0/src/fault/fault_injector.cpp +1774 -0
- storq-0.1.0/src/forensics/forensics_engine.cpp +439 -0
- storq-0.1.0/src/format/format_inspector.cpp +719 -0
- storq-0.1.0/src/format/storq_format.cpp +371 -0
- storq-0.1.0/src/index/hash_index.cpp +80 -0
- storq-0.1.0/src/index/index_key.cpp +123 -0
- storq-0.1.0/src/page/data_page.cpp +257 -0
- storq-0.1.0/src/records/record_id.cpp +35 -0
- storq-0.1.0/src/records/record_manager.cpp +318 -0
- storq-0.1.0/src/recovery/recovery_engine.cpp +410 -0
- storq-0.1.0/src/storage/storage.cpp +1660 -0
- storq-0.1.0/src/wal/native_wal.cpp +216 -0
- storq-0.1.0/src/wal/wal_analyzer.cpp +1081 -0
- storq-0.1.0/src/workload/workload_engine.cpp +397 -0
- storq-0.1.0/test.py +243 -0
- storq-0.1.0/tests/CMakeLists.txt +111 -0
- storq-0.1.0/tests/python/test_fault_diagnose_restore.py +69 -0
- storq-0.1.0/tests/test_adapters.cpp +76 -0
- storq-0.1.0/tests/test_analysis.cpp +394 -0
- storq-0.1.0/tests/test_core.cpp +301 -0
- storq-0.1.0/tests/test_crash.cpp +51 -0
- storq-0.1.0/tests/test_fault.cpp +615 -0
- storq-0.1.0/tests/test_forensics.cpp +46 -0
- storq-0.1.0/tests/test_format.cpp +304 -0
- storq-0.1.0/tests/test_module18.cpp +66 -0
- storq-0.1.0/tests/test_records.cpp +62 -0
- storq-0.1.0/tests/test_recovery.cpp +69 -0
- storq-0.1.0/tests/test_storage.cpp +514 -0
- storq-0.1.0/tests/test_wal.cpp +311 -0
- storq-0.1.0/tests/test_workload.cpp +68 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
name: Storq Multi-Platform Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test-python:
|
|
13
|
+
name: Python ${{ matrix.python-version }} tests
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check out repository
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up Python
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
|
|
29
|
+
- name: Install Storq and test dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
python -m pip install . pytest
|
|
33
|
+
|
|
34
|
+
- name: Verify native Python import
|
|
35
|
+
run: python -c "import storq; import storq._native; print(storq.__file__)"
|
|
36
|
+
|
|
37
|
+
- name: Run Python tests
|
|
38
|
+
run: python -m pytest python/tests tests/python -q
|
|
39
|
+
|
|
40
|
+
build-wheels:
|
|
41
|
+
name: Wheels (${{ matrix.os }}, ${{ matrix.arch }})
|
|
42
|
+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
43
|
+
needs: test-python
|
|
44
|
+
runs-on: ${{ matrix.os }}
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
matrix:
|
|
48
|
+
include:
|
|
49
|
+
- os: ubuntu-latest
|
|
50
|
+
arch: x86_64
|
|
51
|
+
- os: ubuntu-24.04-arm
|
|
52
|
+
arch: aarch64
|
|
53
|
+
- os: windows-latest
|
|
54
|
+
arch: AMD64
|
|
55
|
+
- os: macos-15-intel
|
|
56
|
+
arch: x86_64
|
|
57
|
+
- os: macos-latest
|
|
58
|
+
arch: arm64
|
|
59
|
+
|
|
60
|
+
steps:
|
|
61
|
+
- name: Check out repository
|
|
62
|
+
uses: actions/checkout@v4
|
|
63
|
+
|
|
64
|
+
- name: Set up Python
|
|
65
|
+
uses: actions/setup-python@v5
|
|
66
|
+
with:
|
|
67
|
+
python-version: "3.11"
|
|
68
|
+
|
|
69
|
+
- name: Install cibuildwheel
|
|
70
|
+
run: python -m pip install "cibuildwheel>=3.0"
|
|
71
|
+
|
|
72
|
+
- name: Install SQLite development library
|
|
73
|
+
if: runner.os == 'Windows'
|
|
74
|
+
shell: pwsh
|
|
75
|
+
run: |
|
|
76
|
+
$vcpkgRoot = $env:VCPKG_INSTALLATION_ROOT
|
|
77
|
+
if (-not $vcpkgRoot) { $vcpkgRoot = 'C:\vcpkg' }
|
|
78
|
+
& "$vcpkgRoot\vcpkg.exe" install sqlite3:x64-windows-static-md
|
|
79
|
+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
80
|
+
|
|
81
|
+
- name: Prioritize Visual Studio CRT redistributable for wheel repair
|
|
82
|
+
if: runner.os == 'Windows'
|
|
83
|
+
shell: pwsh
|
|
84
|
+
run: |
|
|
85
|
+
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
|
|
86
|
+
if (Test-Path $vswhere) {
|
|
87
|
+
$vsPath = & $vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
|
|
88
|
+
if ($vsPath) {
|
|
89
|
+
$crtDir = Get-ChildItem -Path "$vsPath\VC\Redist\MSVC" -Directory -ErrorAction SilentlyContinue |
|
|
90
|
+
Where-Object { $_.Name -match '^\d+\.\d+' } |
|
|
91
|
+
Sort-Object { [version]($_.Name -split '-')[0] } -Descending |
|
|
92
|
+
ForEach-Object { Get-ChildItem -Path "$($_.FullName)\x64" -Filter "Microsoft.VC*.CRT" -Directory -ErrorAction SilentlyContinue } |
|
|
93
|
+
Select-Object -First 1 -ExpandProperty FullName
|
|
94
|
+
if ($crtDir) {
|
|
95
|
+
Add-Content -Path $env:GITHUB_PATH -Value $crtDir
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
- name: Build CPython wheels
|
|
101
|
+
run: python -m cibuildwheel . --output-dir wheelhouse
|
|
102
|
+
env:
|
|
103
|
+
CIBW_BUILD_VERBOSITY: "1"
|
|
104
|
+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
|
|
105
|
+
CIBW_SKIP: "*-musllinux_*"
|
|
106
|
+
CIBW_ARCHS_LINUX: "${{ matrix.arch }}"
|
|
107
|
+
CIBW_ARCHS_MACOS: "${{ matrix.arch }}"
|
|
108
|
+
CIBW_ARCHS_WINDOWS: "${{ matrix.arch }}"
|
|
109
|
+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
|
110
|
+
CIBW_BEFORE_ALL_LINUX: "yum install -y gcc-toolset-12-gcc-c++ sqlite-devel"
|
|
111
|
+
CIBW_ENVIRONMENT_LINUX: 'CC="/opt/rh/gcc-toolset-12/root/usr/bin/gcc" CXX="/opt/rh/gcc-toolset-12/root/usr/bin/g++"'
|
|
112
|
+
CIBW_ENVIRONMENT_MACOS: 'MACOSX_DEPLOYMENT_TARGET="11.0"'
|
|
113
|
+
CIBW_ENVIRONMENT_WINDOWS: 'CMAKE_PREFIX_PATH="C:/vcpkg/installed/x64-windows-static-md"'
|
|
114
|
+
CIBW_TEST_COMMAND: 'python -c "import os, tempfile; os.chdir(tempfile.gettempdir()); import storq; import storq._native"'
|
|
115
|
+
|
|
116
|
+
- name: Upload wheel artifacts
|
|
117
|
+
uses: actions/upload-artifact@v4
|
|
118
|
+
with:
|
|
119
|
+
name: storq-wheels-${{ matrix.os }}-${{ matrix.arch }}
|
|
120
|
+
path: wheelhouse/*.whl
|
|
121
|
+
if-no-files-found: error
|
|
122
|
+
|
|
123
|
+
build-sdist:
|
|
124
|
+
name: Build source distribution
|
|
125
|
+
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
126
|
+
needs: test-python
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
|
|
129
|
+
steps:
|
|
130
|
+
- name: Check out repository
|
|
131
|
+
uses: actions/checkout@v4
|
|
132
|
+
|
|
133
|
+
- name: Set up Python
|
|
134
|
+
uses: actions/setup-python@v5
|
|
135
|
+
with:
|
|
136
|
+
python-version: "3.11"
|
|
137
|
+
|
|
138
|
+
- name: Build source distribution
|
|
139
|
+
run: |
|
|
140
|
+
python -m pip install --upgrade build
|
|
141
|
+
python -m build --sdist --outdir dist .
|
|
142
|
+
|
|
143
|
+
- name: Upload source distribution
|
|
144
|
+
uses: actions/upload-artifact@v4
|
|
145
|
+
with:
|
|
146
|
+
name: storq-sdist
|
|
147
|
+
path: dist/*.tar.gz
|
|
148
|
+
if-no-files-found: error
|
|
149
|
+
|
|
150
|
+
publish:
|
|
151
|
+
name: Publish storq to PyPI and GitHub Releases
|
|
152
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
153
|
+
needs: [build-wheels, build-sdist]
|
|
154
|
+
runs-on: ubuntu-latest
|
|
155
|
+
environment:
|
|
156
|
+
name: pypi
|
|
157
|
+
url: https://pypi.org/project/storq/
|
|
158
|
+
permissions:
|
|
159
|
+
contents: write
|
|
160
|
+
id-token: write
|
|
161
|
+
|
|
162
|
+
steps:
|
|
163
|
+
- name: Download release distributions
|
|
164
|
+
uses: actions/download-artifact@v4
|
|
165
|
+
with:
|
|
166
|
+
pattern: storq-*
|
|
167
|
+
path: dist
|
|
168
|
+
merge-multiple: true
|
|
169
|
+
|
|
170
|
+
- name: Validate release distributions
|
|
171
|
+
run: |
|
|
172
|
+
python -m pip install --upgrade twine
|
|
173
|
+
python -m twine check dist/*
|
|
174
|
+
|
|
175
|
+
- name: Attach distributions to GitHub Release
|
|
176
|
+
uses: softprops/action-gh-release@v2
|
|
177
|
+
with:
|
|
178
|
+
files: dist/*
|
|
179
|
+
fail_on_unmatched_files: true
|
|
180
|
+
env:
|
|
181
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
182
|
+
|
|
183
|
+
- name: Publish distributions to PyPI
|
|
184
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
storq-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# CMake build output
|
|
2
|
+
/build/
|
|
3
|
+
/build-*/
|
|
4
|
+
/cmake-build-*/
|
|
5
|
+
CMakeUserPresets.json
|
|
6
|
+
CMakeFiles/
|
|
7
|
+
CMakeCache.txt
|
|
8
|
+
cmake_install.cmake
|
|
9
|
+
CTestTestfile.cmake
|
|
10
|
+
/Testing/
|
|
11
|
+
install_manifest.txt
|
|
12
|
+
compile_commands.json
|
|
13
|
+
_skbuild/
|
|
14
|
+
skbuild/
|
|
15
|
+
.ninja/
|
|
16
|
+
# Compiled artifacts
|
|
17
|
+
*.o
|
|
18
|
+
*.obj
|
|
19
|
+
*.a
|
|
20
|
+
*.lib
|
|
21
|
+
*.so
|
|
22
|
+
*.so.*
|
|
23
|
+
*.dylib
|
|
24
|
+
*.dll
|
|
25
|
+
*.exe
|
|
26
|
+
*.pdb
|
|
27
|
+
*.ilk
|
|
28
|
+
*.exp
|
|
29
|
+
*.pch
|
|
30
|
+
*.gch
|
|
31
|
+
*.pyc
|
|
32
|
+
*.pyo
|
|
33
|
+
*.pyd
|
|
34
|
+
|
|
35
|
+
# Runtime and test output
|
|
36
|
+
*.log
|
|
37
|
+
*.gcda
|
|
38
|
+
*.gcno
|
|
39
|
+
/.coverage
|
|
40
|
+
/coverage.xml
|
|
41
|
+
/htmlcov/
|
|
42
|
+
/.tox/
|
|
43
|
+
/.nox/
|
|
44
|
+
/.hypothesis/
|
|
45
|
+
|
|
46
|
+
# IDE and operating system files
|
|
47
|
+
.vs/
|
|
48
|
+
.idea/
|
|
49
|
+
.vscode/
|
|
50
|
+
*.suo
|
|
51
|
+
*.user
|
|
52
|
+
*.code-workspace
|
|
53
|
+
.DS_Store
|
|
54
|
+
Thumbs.db
|
|
55
|
+
Desktop.ini
|
|
56
|
+
|
|
57
|
+
# Python SDK and tooling artifacts
|
|
58
|
+
__pycache__/
|
|
59
|
+
**/__pycache__/
|
|
60
|
+
*.py[cod]
|
|
61
|
+
.venv/
|
|
62
|
+
venv/
|
|
63
|
+
env/
|
|
64
|
+
.env/
|
|
65
|
+
.pytest_cache/
|
|
66
|
+
.mypy_cache/
|
|
67
|
+
.ruff_cache/
|
|
68
|
+
dist/
|
|
69
|
+
wheelhouse/
|
|
70
|
+
wheel-test/
|
|
71
|
+
/.wheel-test/
|
|
72
|
+
*.whl
|
|
73
|
+
*.egg
|
|
74
|
+
*.egg-info/
|
|
75
|
+
pip-wheel-metadata/
|
|
76
|
+
|
|
77
|
+
# Python test and SQLite runtime files
|
|
78
|
+
.coverage.*
|
|
79
|
+
.python-version
|
|
80
|
+
*.sqlite
|
|
81
|
+
*.sqlite-shm
|
|
82
|
+
*.sqlite-wal
|
|
83
|
+
*.sqlite-journal
|
|
84
|
+
*.storq-backups/
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.20)
|
|
2
|
+
|
|
3
|
+
project(Storq VERSION 0.1.0 LANGUAGES CXX)
|
|
4
|
+
|
|
5
|
+
option(STORQ_BUILD_SHARED "Build Storq as a shared library" OFF)
|
|
6
|
+
option(STORQ_BUILD_EXAMPLES "Build Storq examples" ON)
|
|
7
|
+
option(STORQ_BUILD_TESTS "Build Storq tests" ON)
|
|
8
|
+
|
|
9
|
+
if(CMAKE_CONFIGURATION_TYPES)
|
|
10
|
+
set(STORQ_BUILD_TYPE_VALUE "$<CONFIG>")
|
|
11
|
+
elseif(CMAKE_BUILD_TYPE)
|
|
12
|
+
set(STORQ_BUILD_TYPE_VALUE "${CMAKE_BUILD_TYPE}")
|
|
13
|
+
else()
|
|
14
|
+
set(STORQ_BUILD_TYPE_VALUE "Unknown")
|
|
15
|
+
endif()
|
|
16
|
+
|
|
17
|
+
option(STORQ_BUILD_PYTHON "Build the Storq Python native extension" OFF)
|
|
18
|
+
|
|
19
|
+
set(STORQ_CORE_SOURCES
|
|
20
|
+
src/common/utilities.cpp
|
|
21
|
+
src/analysis/page_analyzer.cpp
|
|
22
|
+
src/core/capabilities.cpp
|
|
23
|
+
src/core/configuration.cpp
|
|
24
|
+
src/core/error.cpp
|
|
25
|
+
src/core/logger.cpp
|
|
26
|
+
src/core/module_registry.cpp
|
|
27
|
+
src/core/runtime.cpp
|
|
28
|
+
src/core/version.cpp
|
|
29
|
+
src/crash/crash_simulator.cpp
|
|
30
|
+
src/recovery/recovery_engine.cpp
|
|
31
|
+
src/forensics/forensics_engine.cpp
|
|
32
|
+
src/format/format_inspector.cpp
|
|
33
|
+
src/format/storq_format.cpp
|
|
34
|
+
src/fault/fault_injector.cpp
|
|
35
|
+
src/storage/storage.cpp
|
|
36
|
+
src/wal/wal_analyzer.cpp
|
|
37
|
+
src/adapters/database_adapter.cpp
|
|
38
|
+
src/adapters/sqlite/sqlite_adapter.cpp
|
|
39
|
+
src/workload/workload_engine.cpp
|
|
40
|
+
src/page/data_page.cpp
|
|
41
|
+
src/records/record_id.cpp
|
|
42
|
+
src/records/record_manager.cpp
|
|
43
|
+
src/index/index_key.cpp
|
|
44
|
+
src/index/hash_index.cpp
|
|
45
|
+
src/wal/native_wal.cpp
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
if(STORQ_BUILD_SHARED)
|
|
49
|
+
add_library(storq_core SHARED ${STORQ_CORE_SOURCES})
|
|
50
|
+
else()
|
|
51
|
+
add_library(storq_core STATIC ${STORQ_CORE_SOURCES})
|
|
52
|
+
endif()
|
|
53
|
+
|
|
54
|
+
add_library(Storq::core ALIAS storq_core)
|
|
55
|
+
set_target_properties(storq_core PROPERTIES
|
|
56
|
+
EXPORT_NAME core
|
|
57
|
+
POSITION_INDEPENDENT_CODE ON
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
target_compile_features(storq_core PUBLIC cxx_std_20)
|
|
61
|
+
target_include_directories(storq_core
|
|
62
|
+
PUBLIC
|
|
63
|
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
|
64
|
+
$<INSTALL_INTERFACE:include>
|
|
65
|
+
)
|
|
66
|
+
target_compile_definitions(storq_core
|
|
67
|
+
PRIVATE
|
|
68
|
+
STORQ_BUILD_TYPE="${STORQ_BUILD_TYPE_VALUE}"
|
|
69
|
+
)
|
|
70
|
+
find_package(Threads REQUIRED)
|
|
71
|
+
target_link_libraries(storq_core PUBLIC Threads::Threads)
|
|
72
|
+
find_package(SQLite3 QUIET)
|
|
73
|
+
if(SQLite3_FOUND)
|
|
74
|
+
if(TARGET SQLite3::SQLite3)
|
|
75
|
+
target_link_libraries(storq_core PUBLIC SQLite3::SQLite3)
|
|
76
|
+
elseif(TARGET SQLite::SQLite3)
|
|
77
|
+
target_link_libraries(storq_core PUBLIC SQLite::SQLite3)
|
|
78
|
+
else()
|
|
79
|
+
target_compile_definitions(storq_core PRIVATE STORQ_SQLITE3_AVAILABLE=0)
|
|
80
|
+
endif()
|
|
81
|
+
else()
|
|
82
|
+
target_compile_definitions(storq_core PRIVATE STORQ_SQLITE3_AVAILABLE=0)
|
|
83
|
+
endif()
|
|
84
|
+
|
|
85
|
+
if(MSVC)
|
|
86
|
+
target_compile_options(storq_core PRIVATE /W4 /permissive-)
|
|
87
|
+
else()
|
|
88
|
+
target_compile_options(storq_core PRIVATE -Wall -Wextra -Wpedantic)
|
|
89
|
+
endif()
|
|
90
|
+
if(STORQ_BUILD_SHARED AND WIN32)
|
|
91
|
+
set_target_properties(storq_core PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
92
|
+
endif()
|
|
93
|
+
|
|
94
|
+
if(STORQ_BUILD_PYTHON)
|
|
95
|
+
add_subdirectory(python)
|
|
96
|
+
endif()
|
|
97
|
+
|
|
98
|
+
if(STORQ_BUILD_EXAMPLES)
|
|
99
|
+
add_executable(storq_basic_runtime examples/basic_runtime.cpp)
|
|
100
|
+
target_link_libraries(storq_basic_runtime PRIVATE Storq::core)
|
|
101
|
+
set_target_properties(storq_basic_runtime PROPERTIES
|
|
102
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
103
|
+
)
|
|
104
|
+
add_executable(storq_storage examples/storage.cpp)
|
|
105
|
+
target_link_libraries(storq_storage PRIVATE Storq::core)
|
|
106
|
+
set_target_properties(storq_storage PROPERTIES
|
|
107
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
108
|
+
)
|
|
109
|
+
add_executable(storq_format_inspector examples/format_inspector.cpp)
|
|
110
|
+
target_link_libraries(storq_format_inspector PRIVATE Storq::core)
|
|
111
|
+
set_target_properties(storq_format_inspector PROPERTIES
|
|
112
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
113
|
+
)
|
|
114
|
+
add_executable(storq_page_analyzer examples/page_analyzer.cpp)
|
|
115
|
+
target_link_libraries(storq_page_analyzer PRIVATE Storq::core)
|
|
116
|
+
set_target_properties(storq_page_analyzer PROPERTIES
|
|
117
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
118
|
+
)
|
|
119
|
+
add_executable(storq_analyze_malformed examples/analyze_malformed.cpp)
|
|
120
|
+
target_link_libraries(storq_analyze_malformed PRIVATE Storq::core)
|
|
121
|
+
set_target_properties(storq_analyze_malformed PROPERTIES
|
|
122
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
123
|
+
)
|
|
124
|
+
add_executable(storq_wal_analyzer examples/wal_analyzer.cpp)
|
|
125
|
+
target_link_libraries(storq_wal_analyzer PRIVATE Storq::core)
|
|
126
|
+
set_target_properties(storq_wal_analyzer PROPERTIES
|
|
127
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
128
|
+
)
|
|
129
|
+
add_executable(storq_analyze_truncated_wal examples/analyze_truncated_wal.cpp)
|
|
130
|
+
target_link_libraries(storq_analyze_truncated_wal PRIVATE Storq::core)
|
|
131
|
+
set_target_properties(storq_analyze_truncated_wal PROPERTIES
|
|
132
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
133
|
+
)
|
|
134
|
+
add_executable(storq_fault_injection examples/fault_injection.cpp)
|
|
135
|
+
target_link_libraries(storq_fault_injection PRIVATE Storq::core)
|
|
136
|
+
set_target_properties(storq_fault_injection PROPERTIES
|
|
137
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
138
|
+
)
|
|
139
|
+
add_executable(storq_corrupt_wal examples/corrupt_wal.cpp)
|
|
140
|
+
target_link_libraries(storq_corrupt_wal PRIVATE Storq::core)
|
|
141
|
+
set_target_properties(storq_corrupt_wal PROPERTIES
|
|
142
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
143
|
+
)
|
|
144
|
+
add_executable(storq_crash_simulation examples/crash_simulation.cpp)
|
|
145
|
+
target_link_libraries(storq_crash_simulation PRIVATE Storq::core)
|
|
146
|
+
set_target_properties(storq_crash_simulation PROPERTIES
|
|
147
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
148
|
+
)
|
|
149
|
+
add_executable(storq_recovery_verification examples/recovery_verification.cpp)
|
|
150
|
+
target_link_libraries(storq_recovery_verification PRIVATE Storq::core)
|
|
151
|
+
set_target_properties(storq_recovery_verification PROPERTIES
|
|
152
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
153
|
+
)
|
|
154
|
+
add_executable(storq_forensics examples/forensics.cpp)
|
|
155
|
+
target_link_libraries(storq_forensics PRIVATE Storq::core)
|
|
156
|
+
set_target_properties(storq_forensics PROPERTIES
|
|
157
|
+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
|
|
158
|
+
)
|
|
159
|
+
endif()
|
|
160
|
+
|
|
161
|
+
if(STORQ_BUILD_TESTS)
|
|
162
|
+
enable_testing()
|
|
163
|
+
add_subdirectory(tests)
|
|
164
|
+
endif()
|
|
165
|
+
|
|
166
|
+
include(GNUInstallDirs)
|
|
167
|
+
include(CMakePackageConfigHelpers)
|
|
168
|
+
|
|
169
|
+
if(NOT STORQ_BUILD_PYTHON)
|
|
170
|
+
install(TARGETS storq_core
|
|
171
|
+
EXPORT StorqTargets
|
|
172
|
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
173
|
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
174
|
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
175
|
+
)
|
|
176
|
+
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
|
177
|
+
install(EXPORT StorqTargets
|
|
178
|
+
FILE StorqTargets.cmake
|
|
179
|
+
NAMESPACE Storq::
|
|
180
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Storq
|
|
181
|
+
)
|
|
182
|
+
configure_package_config_file(
|
|
183
|
+
cmake/StorqConfig.cmake.in
|
|
184
|
+
${CMAKE_CURRENT_BINARY_DIR}/StorqConfig.cmake
|
|
185
|
+
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Storq
|
|
186
|
+
)
|
|
187
|
+
write_basic_package_version_file(
|
|
188
|
+
${CMAKE_CURRENT_BINARY_DIR}/StorqConfigVersion.cmake
|
|
189
|
+
VERSION ${PROJECT_VERSION}
|
|
190
|
+
COMPATIBILITY SameMajorVersion
|
|
191
|
+
)
|
|
192
|
+
install(FILES
|
|
193
|
+
${CMAKE_CURRENT_BINARY_DIR}/StorqConfig.cmake
|
|
194
|
+
${CMAKE_CURRENT_BINARY_DIR}/StorqConfigVersion.cmake
|
|
195
|
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Storq
|
|
196
|
+
)
|
|
197
|
+
endif()
|
storq-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Team Classic Clove
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|