rn-leveldb 3.11.0
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.
- package/LICENSE +21 -0
- package/README.md +92 -0
- package/android/.project +34 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/CMakeLists.txt +69 -0
- package/android/build.gradle +125 -0
- package/android/cpp-adapter.cpp +19 -0
- package/android/gradle.properties +6 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/reactnativeleveldb/LeveldbModule.java +57 -0
- package/android/src/main/java/com/reactnativeleveldb/LeveldbPackage.java +28 -0
- package/cpp/leveldb/.appveyor.yml +36 -0
- package/cpp/leveldb/.clang-format +18 -0
- package/cpp/leveldb/.travis.yml +88 -0
- package/cpp/leveldb/AUTHORS +12 -0
- package/cpp/leveldb/CMakeLists.txt +495 -0
- package/cpp/leveldb/CONTRIBUTING.md +36 -0
- package/cpp/leveldb/LICENSE +27 -0
- package/cpp/leveldb/NEWS +17 -0
- package/cpp/leveldb/README.md +231 -0
- package/cpp/leveldb/TODO +14 -0
- package/cpp/leveldb/benchmarks/db_bench.cc +990 -0
- package/cpp/leveldb/benchmarks/db_bench_sqlite3.cc +726 -0
- package/cpp/leveldb/benchmarks/db_bench_tree_db.cc +531 -0
- package/cpp/leveldb/cmake/leveldbConfig.cmake.in +9 -0
- package/cpp/leveldb/db/autocompact_test.cc +115 -0
- package/cpp/leveldb/db/builder.cc +82 -0
- package/cpp/leveldb/db/builder.h +30 -0
- package/cpp/leveldb/db/c.cc +562 -0
- package/cpp/leveldb/db/c_test.c +384 -0
- package/cpp/leveldb/db/corruption_test.cc +367 -0
- package/cpp/leveldb/db/db_impl.cc +1554 -0
- package/cpp/leveldb/db/db_impl.h +217 -0
- package/cpp/leveldb/db/db_iter.cc +318 -0
- package/cpp/leveldb/db/db_iter.h +26 -0
- package/cpp/leveldb/db/db_test.cc +2305 -0
- package/cpp/leveldb/db/dbformat.cc +136 -0
- package/cpp/leveldb/db/dbformat.h +224 -0
- package/cpp/leveldb/db/dbformat_test.cc +133 -0
- package/cpp/leveldb/db/dumpfile.cc +232 -0
- package/cpp/leveldb/db/fault_injection_test.cc +555 -0
- package/cpp/leveldb/db/filename.cc +141 -0
- package/cpp/leveldb/db/filename.h +83 -0
- package/cpp/leveldb/db/filename_test.cc +132 -0
- package/cpp/leveldb/db/leveldbutil.cc +64 -0
- package/cpp/leveldb/db/log_format.h +35 -0
- package/cpp/leveldb/db/log_reader.cc +274 -0
- package/cpp/leveldb/db/log_reader.h +112 -0
- package/cpp/leveldb/db/log_test.cc +563 -0
- package/cpp/leveldb/db/log_writer.cc +111 -0
- package/cpp/leveldb/db/log_writer.h +54 -0
- package/cpp/leveldb/db/memtable.cc +137 -0
- package/cpp/leveldb/db/memtable.h +87 -0
- package/cpp/leveldb/db/recovery_test.cc +339 -0
- package/cpp/leveldb/db/repair.cc +451 -0
- package/cpp/leveldb/db/skiplist.h +382 -0
- package/cpp/leveldb/db/skiplist_test.cc +373 -0
- package/cpp/leveldb/db/snapshot.h +95 -0
- package/cpp/leveldb/db/table_cache.cc +120 -0
- package/cpp/leveldb/db/table_cache.h +57 -0
- package/cpp/leveldb/db/version_edit.cc +257 -0
- package/cpp/leveldb/db/version_edit.h +106 -0
- package/cpp/leveldb/db/version_edit_test.cc +46 -0
- package/cpp/leveldb/db/version_set.cc +1562 -0
- package/cpp/leveldb/db/version_set.h +393 -0
- package/cpp/leveldb/db/version_set_test.cc +336 -0
- package/cpp/leveldb/db/write_batch.cc +150 -0
- package/cpp/leveldb/db/write_batch_internal.h +45 -0
- package/cpp/leveldb/db/write_batch_test.cc +137 -0
- package/cpp/leveldb/doc/benchmark.html +459 -0
- package/cpp/leveldb/doc/impl.md +172 -0
- package/cpp/leveldb/doc/index.md +523 -0
- package/cpp/leveldb/doc/log_format.md +75 -0
- package/cpp/leveldb/doc/table_format.md +107 -0
- package/cpp/leveldb/helpers/memenv/memenv.cc +390 -0
- package/cpp/leveldb/helpers/memenv/memenv.h +22 -0
- package/cpp/leveldb/helpers/memenv/memenv_test.cc +264 -0
- package/cpp/leveldb/include/leveldb/c.h +270 -0
- package/cpp/leveldb/include/leveldb/cache.h +111 -0
- package/cpp/leveldb/include/leveldb/comparator.h +64 -0
- package/cpp/leveldb/include/leveldb/db.h +167 -0
- package/cpp/leveldb/include/leveldb/dumpfile.h +28 -0
- package/cpp/leveldb/include/leveldb/env.h +417 -0
- package/cpp/leveldb/include/leveldb/export.h +33 -0
- package/cpp/leveldb/include/leveldb/filter_policy.h +72 -0
- package/cpp/leveldb/include/leveldb/iterator.h +112 -0
- package/cpp/leveldb/include/leveldb/options.h +187 -0
- package/cpp/leveldb/include/leveldb/slice.h +114 -0
- package/cpp/leveldb/include/leveldb/status.h +122 -0
- package/cpp/leveldb/include/leveldb/table.h +84 -0
- package/cpp/leveldb/include/leveldb/table_builder.h +93 -0
- package/cpp/leveldb/include/leveldb/write_batch.h +83 -0
- package/cpp/leveldb/issues/issue178_test.cc +90 -0
- package/cpp/leveldb/issues/issue200_test.cc +59 -0
- package/cpp/leveldb/issues/issue320_test.cc +131 -0
- package/cpp/leveldb/port/README.md +10 -0
- package/cpp/leveldb/port/port.h +19 -0
- package/cpp/leveldb/port/port_config.h.in +33 -0
- package/cpp/leveldb/port/port_example.h +100 -0
- package/cpp/leveldb/port/port_stdcxx.h +151 -0
- package/cpp/leveldb/port/thread_annotations.h +108 -0
- package/cpp/leveldb/table/block.cc +267 -0
- package/cpp/leveldb/table/block.h +44 -0
- package/cpp/leveldb/table/block_builder.cc +107 -0
- package/cpp/leveldb/table/block_builder.h +54 -0
- package/cpp/leveldb/table/filter_block.cc +106 -0
- package/cpp/leveldb/table/filter_block.h +68 -0
- package/cpp/leveldb/table/filter_block_test.cc +127 -0
- package/cpp/leveldb/table/format.cc +141 -0
- package/cpp/leveldb/table/format.h +99 -0
- package/cpp/leveldb/table/iterator.cc +76 -0
- package/cpp/leveldb/table/iterator_wrapper.h +92 -0
- package/cpp/leveldb/table/merger.cc +191 -0
- package/cpp/leveldb/table/merger.h +26 -0
- package/cpp/leveldb/table/table.cc +271 -0
- package/cpp/leveldb/table/table_builder.cc +265 -0
- package/cpp/leveldb/table/table_test.cc +834 -0
- package/cpp/leveldb/table/two_level_iterator.cc +171 -0
- package/cpp/leveldb/table/two_level_iterator.h +31 -0
- package/cpp/leveldb/third_party/benchmark/.clang-format +5 -0
- package/cpp/leveldb/third_party/benchmark/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/cpp/leveldb/third_party/benchmark/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/cpp/leveldb/third_party/benchmark/.github/workflows/build-and-test.yml +38 -0
- package/cpp/leveldb/third_party/benchmark/.github/workflows/pylint.yml +26 -0
- package/cpp/leveldb/third_party/benchmark/.github/workflows/test_bindings.yml +24 -0
- package/cpp/leveldb/third_party/benchmark/.travis-libcxx-setup.sh +28 -0
- package/cpp/leveldb/third_party/benchmark/.travis.yml +231 -0
- package/cpp/leveldb/third_party/benchmark/.ycm_extra_conf.py +115 -0
- package/cpp/leveldb/third_party/benchmark/AUTHORS +58 -0
- package/cpp/leveldb/third_party/benchmark/BUILD.bazel +44 -0
- package/cpp/leveldb/third_party/benchmark/CMakeLists.txt +287 -0
- package/cpp/leveldb/third_party/benchmark/CONTRIBUTING.md +58 -0
- package/cpp/leveldb/third_party/benchmark/CONTRIBUTORS +83 -0
- package/cpp/leveldb/third_party/benchmark/LICENSE +202 -0
- package/cpp/leveldb/third_party/benchmark/README.md +1323 -0
- package/cpp/leveldb/third_party/benchmark/WORKSPACE +51 -0
- package/cpp/leveldb/third_party/benchmark/_config.yml +1 -0
- package/cpp/leveldb/third_party/benchmark/appveyor.yml +50 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/BUILD +3 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/build_defs.bzl +25 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/BUILD +38 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/__init__.py +156 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/benchmark.cc +180 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/google_benchmark/example.py +136 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/pybind11.BUILD +20 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/python_headers.BUILD +6 -0
- package/cpp/leveldb/third_party/benchmark/bindings/python/requirements.txt +2 -0
- package/cpp/leveldb/third_party/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- package/cpp/leveldb/third_party/benchmark/cmake/CXXFeatureCheck.cmake +69 -0
- package/cpp/leveldb/third_party/benchmark/cmake/Config.cmake.in +1 -0
- package/cpp/leveldb/third_party/benchmark/cmake/GetGitVersion.cmake +54 -0
- package/cpp/leveldb/third_party/benchmark/cmake/GoogleTest.cmake +41 -0
- package/cpp/leveldb/third_party/benchmark/cmake/GoogleTest.cmake.in +58 -0
- package/cpp/leveldb/third_party/benchmark/cmake/benchmark.pc.in +12 -0
- package/cpp/leveldb/third_party/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- package/cpp/leveldb/third_party/benchmark/cmake/llvm-toolchain.cmake +8 -0
- package/cpp/leveldb/third_party/benchmark/cmake/posix_regex.cpp +14 -0
- package/cpp/leveldb/third_party/benchmark/cmake/split_list.cmake +3 -0
- package/cpp/leveldb/third_party/benchmark/cmake/std_regex.cpp +10 -0
- package/cpp/leveldb/third_party/benchmark/cmake/steady_clock.cpp +7 -0
- package/cpp/leveldb/third_party/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- package/cpp/leveldb/third_party/benchmark/conan/CMakeLists.txt +7 -0
- package/cpp/leveldb/third_party/benchmark/conan/test_package/CMakeLists.txt +10 -0
- package/cpp/leveldb/third_party/benchmark/conan/test_package/conanfile.py +19 -0
- package/cpp/leveldb/third_party/benchmark/conan/test_package/test_package.cpp +18 -0
- package/cpp/leveldb/third_party/benchmark/conanfile.py +79 -0
- package/cpp/leveldb/third_party/benchmark/dependencies.md +18 -0
- package/cpp/leveldb/third_party/benchmark/docs/AssemblyTests.md +147 -0
- package/cpp/leveldb/third_party/benchmark/docs/_config.yml +1 -0
- package/cpp/leveldb/third_party/benchmark/docs/releasing.md +16 -0
- package/cpp/leveldb/third_party/benchmark/docs/tools.md +203 -0
- package/cpp/leveldb/third_party/benchmark/include/benchmark/benchmark.h +1604 -0
- package/cpp/leveldb/third_party/benchmark/requirements.txt +2 -0
- package/cpp/leveldb/third_party/benchmark/setup.py +140 -0
- package/cpp/leveldb/third_party/benchmark/src/CMakeLists.txt +114 -0
- package/cpp/leveldb/third_party/benchmark/src/arraysize.h +33 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark.cc +499 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_api_internal.cc +15 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_api_internal.h +53 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_main.cc +17 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_name.cc +58 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_register.cc +515 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_register.h +108 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_runner.cc +362 -0
- package/cpp/leveldb/third_party/benchmark/src/benchmark_runner.h +51 -0
- package/cpp/leveldb/third_party/benchmark/src/check.h +82 -0
- package/cpp/leveldb/third_party/benchmark/src/colorprint.cc +188 -0
- package/cpp/leveldb/third_party/benchmark/src/colorprint.h +33 -0
- package/cpp/leveldb/third_party/benchmark/src/commandlineflags.cc +228 -0
- package/cpp/leveldb/third_party/benchmark/src/commandlineflags.h +103 -0
- package/cpp/leveldb/third_party/benchmark/src/complexity.cc +238 -0
- package/cpp/leveldb/third_party/benchmark/src/complexity.h +55 -0
- package/cpp/leveldb/third_party/benchmark/src/console_reporter.cc +177 -0
- package/cpp/leveldb/third_party/benchmark/src/counter.cc +80 -0
- package/cpp/leveldb/third_party/benchmark/src/counter.h +32 -0
- package/cpp/leveldb/third_party/benchmark/src/csv_reporter.cc +154 -0
- package/cpp/leveldb/third_party/benchmark/src/cycleclock.h +211 -0
- package/cpp/leveldb/third_party/benchmark/src/internal_macros.h +102 -0
- package/cpp/leveldb/third_party/benchmark/src/json_reporter.cc +255 -0
- package/cpp/leveldb/third_party/benchmark/src/log.h +74 -0
- package/cpp/leveldb/third_party/benchmark/src/mutex.h +155 -0
- package/cpp/leveldb/third_party/benchmark/src/re.h +158 -0
- package/cpp/leveldb/third_party/benchmark/src/reporter.cc +105 -0
- package/cpp/leveldb/third_party/benchmark/src/sleep.cc +67 -0
- package/cpp/leveldb/third_party/benchmark/src/sleep.h +15 -0
- package/cpp/leveldb/third_party/benchmark/src/statistics.cc +193 -0
- package/cpp/leveldb/third_party/benchmark/src/statistics.h +37 -0
- package/cpp/leveldb/third_party/benchmark/src/string_util.cc +255 -0
- package/cpp/leveldb/third_party/benchmark/src/string_util.h +59 -0
- package/cpp/leveldb/third_party/benchmark/src/sysinfo.cc +716 -0
- package/cpp/leveldb/third_party/benchmark/src/thread_manager.h +64 -0
- package/cpp/leveldb/third_party/benchmark/src/thread_timer.h +86 -0
- package/cpp/leveldb/third_party/benchmark/src/timers.cc +245 -0
- package/cpp/leveldb/third_party/benchmark/src/timers.h +48 -0
- package/cpp/leveldb/third_party/benchmark/test/AssemblyTests.cmake +46 -0
- package/cpp/leveldb/third_party/benchmark/test/BUILD +73 -0
- package/cpp/leveldb/third_party/benchmark/test/CMakeLists.txt +263 -0
- package/cpp/leveldb/third_party/benchmark/test/args_product_test.cc +77 -0
- package/cpp/leveldb/third_party/benchmark/test/basic_test.cc +136 -0
- package/cpp/leveldb/third_party/benchmark/test/benchmark_gtest.cc +134 -0
- package/cpp/leveldb/third_party/benchmark/test/benchmark_name_gtest.cc +74 -0
- package/cpp/leveldb/third_party/benchmark/test/benchmark_test.cc +245 -0
- package/cpp/leveldb/third_party/benchmark/test/clobber_memory_assembly_test.cc +64 -0
- package/cpp/leveldb/third_party/benchmark/test/commandlineflags_gtest.cc +201 -0
- package/cpp/leveldb/third_party/benchmark/test/complexity_test.cc +213 -0
- package/cpp/leveldb/third_party/benchmark/test/cxx03_test.cc +63 -0
- package/cpp/leveldb/third_party/benchmark/test/diagnostics_test.cc +80 -0
- package/cpp/leveldb/third_party/benchmark/test/display_aggregates_only_test.cc +43 -0
- package/cpp/leveldb/third_party/benchmark/test/donotoptimize_assembly_test.cc +163 -0
- package/cpp/leveldb/third_party/benchmark/test/donotoptimize_test.cc +52 -0
- package/cpp/leveldb/third_party/benchmark/test/filter_test.cc +104 -0
- package/cpp/leveldb/third_party/benchmark/test/fixture_test.cc +51 -0
- package/cpp/leveldb/third_party/benchmark/test/internal_threading_test.cc +184 -0
- package/cpp/leveldb/third_party/benchmark/test/link_main_test.cc +8 -0
- package/cpp/leveldb/third_party/benchmark/test/map_test.cc +57 -0
- package/cpp/leveldb/third_party/benchmark/test/memory_manager_test.cc +44 -0
- package/cpp/leveldb/third_party/benchmark/test/multiple_ranges_test.cc +96 -0
- package/cpp/leveldb/third_party/benchmark/test/options_test.cc +75 -0
- package/cpp/leveldb/third_party/benchmark/test/output_test.h +213 -0
- package/cpp/leveldb/third_party/benchmark/test/output_test_helper.cc +515 -0
- package/cpp/leveldb/third_party/benchmark/test/register_benchmark_test.cc +184 -0
- package/cpp/leveldb/third_party/benchmark/test/report_aggregates_only_test.cc +39 -0
- package/cpp/leveldb/third_party/benchmark/test/reporter_output_test.cc +747 -0
- package/cpp/leveldb/third_party/benchmark/test/skip_with_error_test.cc +195 -0
- package/cpp/leveldb/third_party/benchmark/test/state_assembly_test.cc +68 -0
- package/cpp/leveldb/third_party/benchmark/test/statistics_gtest.cc +28 -0
- package/cpp/leveldb/third_party/benchmark/test/string_util_gtest.cc +153 -0
- package/cpp/leveldb/third_party/benchmark/test/templated_fixture_test.cc +28 -0
- package/cpp/leveldb/third_party/benchmark/test/user_counters_tabular_test.cc +285 -0
- package/cpp/leveldb/third_party/benchmark/test/user_counters_test.cc +531 -0
- package/cpp/leveldb/third_party/benchmark/test/user_counters_thousands_test.cc +173 -0
- package/cpp/leveldb/third_party/benchmark/tools/BUILD.bazel +19 -0
- package/cpp/leveldb/third_party/benchmark/tools/compare.py +429 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test1_run1.json +119 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test1_run2.json +119 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test2_run.json +81 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test3_run0.json +65 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/Inputs/test3_run1.json +65 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/__init__.py +8 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/report.py +903 -0
- package/cpp/leveldb/third_party/benchmark/tools/gbench/util.py +163 -0
- package/cpp/leveldb/third_party/benchmark/tools/requirements.txt +1 -0
- package/cpp/leveldb/third_party/benchmark/tools/strip_asm.py +151 -0
- package/cpp/leveldb/third_party/googletest/.clang-format +4 -0
- package/cpp/leveldb/third_party/googletest/.travis.yml +73 -0
- package/cpp/leveldb/third_party/googletest/BUILD.bazel +179 -0
- package/cpp/leveldb/third_party/googletest/CMakeLists.txt +36 -0
- package/cpp/leveldb/third_party/googletest/CONTRIBUTING.md +142 -0
- package/cpp/leveldb/third_party/googletest/LICENSE +28 -0
- package/cpp/leveldb/third_party/googletest/README.md +132 -0
- package/cpp/leveldb/third_party/googletest/WORKSPACE +23 -0
- package/cpp/leveldb/third_party/googletest/appveyor.yml +154 -0
- package/cpp/leveldb/third_party/googletest/ci/build-linux-bazel.sh +37 -0
- package/cpp/leveldb/third_party/googletest/ci/build-platformio.sh +2 -0
- package/cpp/leveldb/third_party/googletest/ci/env-linux.sh +41 -0
- package/cpp/leveldb/third_party/googletest/ci/env-osx.sh +47 -0
- package/cpp/leveldb/third_party/googletest/ci/get-nprocessors.sh +48 -0
- package/cpp/leveldb/third_party/googletest/ci/install-linux.sh +49 -0
- package/cpp/leveldb/third_party/googletest/ci/install-osx.sh +40 -0
- package/cpp/leveldb/third_party/googletest/ci/install-platformio.sh +5 -0
- package/cpp/leveldb/third_party/googletest/ci/log-config.sh +51 -0
- package/cpp/leveldb/third_party/googletest/ci/travis.sh +44 -0
- package/cpp/leveldb/third_party/googletest/googlemock/CMakeLists.txt +233 -0
- package/cpp/leveldb/third_party/googletest/googlemock/CONTRIBUTORS +40 -0
- package/cpp/leveldb/third_party/googletest/googlemock/LICENSE +28 -0
- package/cpp/leveldb/third_party/googletest/googlemock/README.md +44 -0
- package/cpp/leveldb/third_party/googletest/googlemock/cmake/gmock.pc.in +10 -0
- package/cpp/leveldb/third_party/googletest/googlemock/cmake/gmock_main.pc.in +10 -0
- package/cpp/leveldb/third_party/googletest/googlemock/docs/cheat_sheet.md +770 -0
- package/cpp/leveldb/third_party/googletest/googlemock/docs/cook_book.md +4270 -0
- package/cpp/leveldb/third_party/googletest/googlemock/docs/for_dummies.md +700 -0
- package/cpp/leveldb/third_party/googletest/googlemock/docs/gmock_faq.md +396 -0
- package/cpp/leveldb/third_party/googletest/googlemock/docs/pump_manual.md +187 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-actions.h +1193 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-cardinalities.h +157 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-function-mocker.h +276 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h +1884 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-actions.h.pump +627 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h +752 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +227 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-matchers.h +1097 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-generated-matchers.h.pump +346 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-matchers.h +4591 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-more-actions.h +162 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-more-matchers.h +92 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-nice-strict.h +215 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock-spec-builders.h +1985 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/gmock.h +101 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/README.md +16 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +10 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +12 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-matchers.h +36 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/custom/gmock-port.h +39 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h +472 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-port.h +87 -0
- package/cpp/leveldb/third_party/googletest/googlemock/include/gmock/internal/gmock-pp.h +271 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/README.md +5 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/fuse_gmock_files.py +240 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/LICENSE +203 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/README +34 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/README.cppclean +115 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/ast.py +1761 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class.py +248 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py +540 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/keywords.py +56 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/tokenize.py +284 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/cpp/utils.py +37 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/generator/gmock_gen.py +30 -0
- package/cpp/leveldb/third_party/googletest/googlemock/scripts/pump.py +856 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-all.cc +46 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-cardinalities.cc +155 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-internal-utils.cc +200 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-matchers.cc +462 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock-spec-builders.cc +892 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock.cc +213 -0
- package/cpp/leveldb/third_party/googletest/googlemock/src/gmock_main.cc +72 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/BUILD.bazel +110 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-actions_test.cc +1507 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-cardinalities_test.cc +429 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_nc.cc +16 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_nc_test.py +43 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-function-mocker_test.cc +696 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-actions_test.cc +1064 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-function-mockers_test.cc +659 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-generated-matchers_test.cc +1323 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-internal-utils_test.cc +732 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-matchers_test.cc +6913 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-more-actions_test.cc +698 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-nice-strict_test.cc +500 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-port_test.cc +42 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-pp-string_test.cc +206 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-pp_test.cc +83 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock-spec-builders_test.cc +2775 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_all_test.cc +49 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_ex_test.cc +80 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_leak_test.py +104 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_leak_test_.cc +99 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link2_test.cc +39 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link_test.cc +39 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_link_test.h +690 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test.py +183 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test_.cc +309 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_output_test_golden.txt +317 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_stress_test.cc +240 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_test.cc +181 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/gmock_test_utils.py +108 -0
- package/cpp/leveldb/third_party/googletest/googlemock/test/pump_test.py +182 -0
- package/cpp/leveldb/third_party/googletest/googletest/CMakeLists.txt +329 -0
- package/cpp/leveldb/third_party/googletest/googletest/CONTRIBUTORS +38 -0
- package/cpp/leveldb/third_party/googletest/googletest/LICENSE +28 -0
- package/cpp/leveldb/third_party/googletest/googletest/README.md +244 -0
- package/cpp/leveldb/third_party/googletest/googletest/cmake/Config.cmake.in +9 -0
- package/cpp/leveldb/third_party/googletest/googletest/cmake/gtest.pc.in +9 -0
- package/cpp/leveldb/third_party/googletest/googletest/cmake/gtest_main.pc.in +10 -0
- package/cpp/leveldb/third_party/googletest/googletest/cmake/internal_utils.cmake +358 -0
- package/cpp/leveldb/third_party/googletest/googletest/cmake/libgtest.la.in +21 -0
- package/cpp/leveldb/third_party/googletest/googletest/docs/advanced.md +2567 -0
- package/cpp/leveldb/third_party/googletest/googletest/docs/faq.md +753 -0
- package/cpp/leveldb/third_party/googletest/googletest/docs/pkgconfig.md +219 -0
- package/cpp/leveldb/third_party/googletest/googletest/docs/primer.md +579 -0
- package/cpp/leveldb/third_party/googletest/googletest/docs/samples.md +22 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-death-test.h +343 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-matchers.h +750 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-message.h +219 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-param-test.h +514 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-printers.h +928 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-spi.h +238 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-test-part.h +184 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest-typed-test.h +337 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest.h +2477 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest_pred_impl.h +359 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/gtest_prod.h +61 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/README.md +56 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest-port.h +37 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/custom/gtest.h +37 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h +304 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-filepath.h +211 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-internal.h +1411 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-param-util.h +880 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-port-arch.h +111 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-port.h +2227 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-string.h +171 -0
- package/cpp/leveldb/third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h +183 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/prime_tables.h +126 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample1.cc +66 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample1.h +41 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample10_unittest.cc +139 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample1_unittest.cc +151 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample2.cc +54 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample2.h +81 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample2_unittest.cc +107 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample3-inl.h +172 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample3_unittest.cc +149 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample4.cc +54 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample4.h +53 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample4_unittest.cc +53 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample5_unittest.cc +196 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample6_unittest.cc +224 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample7_unittest.cc +117 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample8_unittest.cc +154 -0
- package/cpp/leveldb/third_party/googletest/googletest/samples/sample9_unittest.cc +156 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/README.md +5 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/common.py +83 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/fuse_gtest_files.py +253 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/gen_gtest_pred_impl.py +734 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/gtest-config.in +274 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/release_docs.py +158 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/run_with_path.py +32 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/upload.py +1402 -0
- package/cpp/leveldb/third_party/googletest/googletest/scripts/upload_gtest.py +78 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-all.cc +48 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-death-test.cc +1653 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-filepath.cc +382 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-internal-inl.h +1211 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-matchers.cc +97 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-port.cc +1399 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-printers.cc +442 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-test-part.cc +108 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest-typed-test.cc +118 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest.cc +6180 -0
- package/cpp/leveldb/third_party/googletest/googletest/src/gtest_main.cc +54 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/BUILD.bazel +529 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-break-on-failure-unittest.py +208 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-break-on-failure-unittest_.cc +86 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-catch-exceptions-test.py +236 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-catch-exceptions-test_.cc +293 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-color-test.py +127 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-color-test_.cc +62 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-death-test-test.cc +1516 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-death-test_ex_test.cc +92 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-env-var-test.py +117 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-env-var-test_.cc +122 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filepath-test.cc +649 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filter-unittest.py +639 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-filter-unittest_.cc +137 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-json-outfiles-test.py +191 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-json-output-unittest.py +778 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-list-tests-unittest.py +205 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-list-tests-unittest_.cc +156 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-listener-test.cc +518 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-message-test.cc +158 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-options-test.cc +216 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test-golden-lin.txt +1137 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test.py +346 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-output-test_.cc +1149 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test.py +63 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name1-test_.cc +50 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test.py +62 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-invalid-name2-test_.cc +55 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-test.cc +1086 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test-test.h +51 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-param-test2-test.cc +61 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-port-test.cc +1272 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-printers-test.cc +1619 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-shuffle-test.py +323 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-shuffle-test_.cc +101 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-test-part-test.cc +230 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-test2_test.cc +61 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-throw-on-failure-test.py +168 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-throw-on-failure-test_.cc +71 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-uninitialized-test.py +67 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/googletest-uninitialized-test_.cc +42 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test2_test.cc +44 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test_test.cc +462 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest-typed-test_test.h +65 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest-unittest-api_test.cc +341 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_all_test.cc +46 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_assert_by_exception_test.cc +116 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_environment_test.cc +188 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_help_test.py +170 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_help_test_.cc +45 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_json_test_utils.py +60 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_list_output_unittest.py +141 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_list_output_unittest_.cc +51 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_main_unittest.cc +44 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_no_test_unittest.cc +54 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc +2427 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_premature_exit_test.cc +126 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_prod_test.cc +56 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_repeat_test.cc +233 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_check_output_test.py +59 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_environment_check_output_test.py +54 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_in_environment_setup_test.cc +49 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_skip_test.cc +55 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_sole_header_test.cc +56 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_stress_test.cc +248 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_test_macro_stack_footprint_test.cc +89 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_test_utils.py +314 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_testbridge_test.py +63 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_testbridge_test_.cc +43 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_throw_on_failure_ex_test.cc +90 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_unittest.cc +7496 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfile1_test_.cc +43 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfile2_test_.cc +43 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_outfiles_test.py +135 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_output_unittest.py +389 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_output_unittest_.cc +188 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/gtest_xml_test_utils.py +196 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/production.cc +35 -0
- package/cpp/leveldb/third_party/googletest/googletest/test/production.h +54 -0
- package/cpp/leveldb/third_party/googletest/library.json +66 -0
- package/cpp/leveldb/third_party/googletest/platformio.ini +47 -0
- package/cpp/leveldb/util/arena.cc +66 -0
- package/cpp/leveldb/util/arena.h +71 -0
- package/cpp/leveldb/util/arena_test.cc +66 -0
- package/cpp/leveldb/util/bloom.cc +92 -0
- package/cpp/leveldb/util/bloom_test.cc +159 -0
- package/cpp/leveldb/util/cache.cc +401 -0
- package/cpp/leveldb/util/cache_test.cc +229 -0
- package/cpp/leveldb/util/coding.cc +166 -0
- package/cpp/leveldb/util/coding.h +122 -0
- package/cpp/leveldb/util/coding_test.cc +198 -0
- package/cpp/leveldb/util/comparator.cc +75 -0
- package/cpp/leveldb/util/crc32c.cc +380 -0
- package/cpp/leveldb/util/crc32c.h +43 -0
- package/cpp/leveldb/util/crc32c_test.cc +61 -0
- package/cpp/leveldb/util/env.cc +108 -0
- package/cpp/leveldb/util/env_posix.cc +893 -0
- package/cpp/leveldb/util/env_posix_test.cc +353 -0
- package/cpp/leveldb/util/env_posix_test_helper.h +28 -0
- package/cpp/leveldb/util/env_test.cc +240 -0
- package/cpp/leveldb/util/env_windows.cc +796 -0
- package/cpp/leveldb/util/env_windows_test.cc +65 -0
- package/cpp/leveldb/util/env_windows_test_helper.h +25 -0
- package/cpp/leveldb/util/filter_policy.cc +11 -0
- package/cpp/leveldb/util/hash.cc +55 -0
- package/cpp/leveldb/util/hash.h +19 -0
- package/cpp/leveldb/util/hash_test.cc +46 -0
- package/cpp/leveldb/util/histogram.cc +272 -0
- package/cpp/leveldb/util/histogram.h +44 -0
- package/cpp/leveldb/util/logging.cc +82 -0
- package/cpp/leveldb/util/logging.h +44 -0
- package/cpp/leveldb/util/logging_test.cc +145 -0
- package/cpp/leveldb/util/mutexlock.h +39 -0
- package/cpp/leveldb/util/no_destructor.h +46 -0
- package/cpp/leveldb/util/no_destructor_test.cc +49 -0
- package/cpp/leveldb/util/options.cc +14 -0
- package/cpp/leveldb/util/posix_logger.h +130 -0
- package/cpp/leveldb/util/random.h +63 -0
- package/cpp/leveldb/util/status.cc +77 -0
- package/cpp/leveldb/util/status_test.cc +44 -0
- package/cpp/leveldb/util/testutil.cc +51 -0
- package/cpp/leveldb/util/testutil.h +82 -0
- package/cpp/leveldb/util/windows_logger.h +124 -0
- package/cpp/react-native-leveldb.cpp +694 -0
- package/cpp/react-native-leveldb.h +4 -0
- package/ios/Leveldb.h +9 -0
- package/ios/Leveldb.mm +35 -0
- package/ios/Leveldb.xcodeproj/project.pbxproj +288 -0
- package/lib/commonjs/fake.js +181 -0
- package/lib/commonjs/fake.js.map +1 -0
- package/lib/commonjs/fake.test.js +30 -0
- package/lib/commonjs/fake.test.js.map +1 -0
- package/lib/commonjs/index.js +172 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/fake.js +171 -0
- package/lib/module/fake.js.map +1 -0
- package/lib/module/fake.test.js +30 -0
- package/lib/module/fake.test.js.map +1 -0
- package/lib/module/index.js +165 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/fake.d.ts +34 -0
- package/lib/typescript/fake.d.ts.map +1 -0
- package/lib/typescript/fake.test.d.ts +2 -0
- package/lib/typescript/fake.test.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +72 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/package.json +157 -0
- package/rn-leveldb.podspec +30 -0
- package/src/fake.test.ts +37 -0
- package/src/fake.ts +203 -0
- package/src/index.ts +291 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
# Copyright 2017 The LevelDB Authors. All rights reserved.
|
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
# found in the LICENSE file. See the AUTHORS file for names of contributors.
|
|
4
|
+
|
|
5
|
+
cmake_minimum_required(VERSION 3.9)
|
|
6
|
+
# Keep the version below in sync with the one in db.h
|
|
7
|
+
project(leveldb VERSION 1.22.0 LANGUAGES C CXX)
|
|
8
|
+
|
|
9
|
+
# C standard can be overridden when this is used as a sub-project.
|
|
10
|
+
if(NOT CMAKE_C_STANDARD)
|
|
11
|
+
# This project can use C11, but will gracefully decay down to C89.
|
|
12
|
+
set(CMAKE_C_STANDARD 11)
|
|
13
|
+
set(CMAKE_C_STANDARD_REQUIRED OFF)
|
|
14
|
+
set(CMAKE_C_EXTENSIONS OFF)
|
|
15
|
+
endif(NOT CMAKE_C_STANDARD)
|
|
16
|
+
|
|
17
|
+
# C++ standard can be overridden when this is used as a sub-project.
|
|
18
|
+
if(NOT CMAKE_CXX_STANDARD)
|
|
19
|
+
# This project requires C++11.
|
|
20
|
+
set(CMAKE_CXX_STANDARD 11)
|
|
21
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
22
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
23
|
+
endif(NOT CMAKE_CXX_STANDARD)
|
|
24
|
+
|
|
25
|
+
if (WIN32)
|
|
26
|
+
set(LEVELDB_PLATFORM_NAME LEVELDB_PLATFORM_WINDOWS)
|
|
27
|
+
# TODO(cmumford): Make UNICODE configurable for Windows.
|
|
28
|
+
add_definitions(-D_UNICODE -DUNICODE)
|
|
29
|
+
else (WIN32)
|
|
30
|
+
set(LEVELDB_PLATFORM_NAME LEVELDB_PLATFORM_POSIX)
|
|
31
|
+
endif (WIN32)
|
|
32
|
+
|
|
33
|
+
option(LEVELDB_BUILD_TESTS "Build LevelDB's unit tests" ON)
|
|
34
|
+
option(LEVELDB_BUILD_BENCHMARKS "Build LevelDB's benchmarks" ON)
|
|
35
|
+
option(LEVELDB_INSTALL "Install LevelDB's header and library" ON)
|
|
36
|
+
|
|
37
|
+
include(CheckIncludeFile)
|
|
38
|
+
check_include_file("unistd.h" HAVE_UNISTD_H)
|
|
39
|
+
|
|
40
|
+
include(CheckLibraryExists)
|
|
41
|
+
check_library_exists(crc32c crc32c_value "" HAVE_CRC32C)
|
|
42
|
+
check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)
|
|
43
|
+
check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC)
|
|
44
|
+
|
|
45
|
+
include(CheckCXXSymbolExists)
|
|
46
|
+
# Using check_cxx_symbol_exists() instead of check_c_symbol_exists() because
|
|
47
|
+
# we're including the header from C++, and feature detection should use the same
|
|
48
|
+
# compiler language that the project will use later. Principles aside, some
|
|
49
|
+
# versions of do not expose fdatasync() in <unistd.h> in standard C mode
|
|
50
|
+
# (-std=c11), but do expose the function in standard C++ mode (-std=c++11).
|
|
51
|
+
check_cxx_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC)
|
|
52
|
+
check_cxx_symbol_exists(F_FULLFSYNC "fcntl.h" HAVE_FULLFSYNC)
|
|
53
|
+
check_cxx_symbol_exists(O_CLOEXEC "fcntl.h" HAVE_O_CLOEXEC)
|
|
54
|
+
|
|
55
|
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
56
|
+
# Disable C++ exceptions.
|
|
57
|
+
string(REGEX REPLACE "/EH[a-z]+" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
58
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs-c-")
|
|
59
|
+
add_definitions(-D_HAS_EXCEPTIONS=0)
|
|
60
|
+
|
|
61
|
+
# Disable RTTI.
|
|
62
|
+
string(REGEX REPLACE "/GR" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
63
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")
|
|
64
|
+
else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
65
|
+
# Enable strict prototype warnings for C code in clang and gcc.
|
|
66
|
+
if(NOT CMAKE_C_FLAGS MATCHES "-Wstrict-prototypes")
|
|
67
|
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes")
|
|
68
|
+
endif(NOT CMAKE_C_FLAGS MATCHES "-Wstrict-prototypes")
|
|
69
|
+
|
|
70
|
+
# Disable C++ exceptions.
|
|
71
|
+
string(REGEX REPLACE "-fexceptions" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
72
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
|
|
73
|
+
|
|
74
|
+
# Disable RTTI.
|
|
75
|
+
string(REGEX REPLACE "-frtti" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
76
|
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
|
|
77
|
+
endif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
78
|
+
|
|
79
|
+
# Test whether -Wthread-safety is available. See
|
|
80
|
+
# https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
|
|
81
|
+
include(CheckCXXCompilerFlag)
|
|
82
|
+
check_cxx_compiler_flag(-Wthread-safety HAVE_CLANG_THREAD_SAFETY)
|
|
83
|
+
|
|
84
|
+
# Used by googletest.
|
|
85
|
+
check_cxx_compiler_flag(-Wno-missing-field-initializers
|
|
86
|
+
LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
87
|
+
|
|
88
|
+
include(CheckCXXSourceCompiles)
|
|
89
|
+
|
|
90
|
+
# Test whether C++17 __has_include is available.
|
|
91
|
+
check_cxx_source_compiles("
|
|
92
|
+
#if defined(__has_include) && __has_include(<string>)
|
|
93
|
+
#include <string>
|
|
94
|
+
#endif
|
|
95
|
+
int main() { std::string str; return 0; }
|
|
96
|
+
" HAVE_CXX17_HAS_INCLUDE)
|
|
97
|
+
|
|
98
|
+
set(LEVELDB_PUBLIC_INCLUDE_DIR "include/leveldb")
|
|
99
|
+
set(LEVELDB_PORT_CONFIG_DIR "include/port")
|
|
100
|
+
|
|
101
|
+
configure_file(
|
|
102
|
+
"port/port_config.h.in"
|
|
103
|
+
"${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
include_directories(
|
|
107
|
+
"${PROJECT_BINARY_DIR}/include"
|
|
108
|
+
"."
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
if(BUILD_SHARED_LIBS)
|
|
112
|
+
# Only export LEVELDB_EXPORT symbols from the shared library.
|
|
113
|
+
add_compile_options(-fvisibility=hidden)
|
|
114
|
+
endif(BUILD_SHARED_LIBS)
|
|
115
|
+
|
|
116
|
+
# Must be included before CMAKE_INSTALL_INCLUDEDIR is used.
|
|
117
|
+
include(GNUInstallDirs)
|
|
118
|
+
|
|
119
|
+
add_library(leveldb "")
|
|
120
|
+
target_sources(leveldb
|
|
121
|
+
PRIVATE
|
|
122
|
+
"${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
|
|
123
|
+
"db/builder.cc"
|
|
124
|
+
"db/builder.h"
|
|
125
|
+
"db/c.cc"
|
|
126
|
+
"db/db_impl.cc"
|
|
127
|
+
"db/db_impl.h"
|
|
128
|
+
"db/db_iter.cc"
|
|
129
|
+
"db/db_iter.h"
|
|
130
|
+
"db/dbformat.cc"
|
|
131
|
+
"db/dbformat.h"
|
|
132
|
+
"db/dumpfile.cc"
|
|
133
|
+
"db/filename.cc"
|
|
134
|
+
"db/filename.h"
|
|
135
|
+
"db/log_format.h"
|
|
136
|
+
"db/log_reader.cc"
|
|
137
|
+
"db/log_reader.h"
|
|
138
|
+
"db/log_writer.cc"
|
|
139
|
+
"db/log_writer.h"
|
|
140
|
+
"db/memtable.cc"
|
|
141
|
+
"db/memtable.h"
|
|
142
|
+
"db/repair.cc"
|
|
143
|
+
"db/skiplist.h"
|
|
144
|
+
"db/snapshot.h"
|
|
145
|
+
"db/table_cache.cc"
|
|
146
|
+
"db/table_cache.h"
|
|
147
|
+
"db/version_edit.cc"
|
|
148
|
+
"db/version_edit.h"
|
|
149
|
+
"db/version_set.cc"
|
|
150
|
+
"db/version_set.h"
|
|
151
|
+
"db/write_batch_internal.h"
|
|
152
|
+
"db/write_batch.cc"
|
|
153
|
+
"port/port_stdcxx.h"
|
|
154
|
+
"port/port.h"
|
|
155
|
+
"port/thread_annotations.h"
|
|
156
|
+
"table/block_builder.cc"
|
|
157
|
+
"table/block_builder.h"
|
|
158
|
+
"table/block.cc"
|
|
159
|
+
"table/block.h"
|
|
160
|
+
"table/filter_block.cc"
|
|
161
|
+
"table/filter_block.h"
|
|
162
|
+
"table/format.cc"
|
|
163
|
+
"table/format.h"
|
|
164
|
+
"table/iterator_wrapper.h"
|
|
165
|
+
"table/iterator.cc"
|
|
166
|
+
"table/merger.cc"
|
|
167
|
+
"table/merger.h"
|
|
168
|
+
"table/table_builder.cc"
|
|
169
|
+
"table/table.cc"
|
|
170
|
+
"table/two_level_iterator.cc"
|
|
171
|
+
"table/two_level_iterator.h"
|
|
172
|
+
"util/arena.cc"
|
|
173
|
+
"util/arena.h"
|
|
174
|
+
"util/bloom.cc"
|
|
175
|
+
"util/cache.cc"
|
|
176
|
+
"util/coding.cc"
|
|
177
|
+
"util/coding.h"
|
|
178
|
+
"util/comparator.cc"
|
|
179
|
+
"util/crc32c.cc"
|
|
180
|
+
"util/crc32c.h"
|
|
181
|
+
"util/env.cc"
|
|
182
|
+
"util/filter_policy.cc"
|
|
183
|
+
"util/hash.cc"
|
|
184
|
+
"util/hash.h"
|
|
185
|
+
"util/logging.cc"
|
|
186
|
+
"util/logging.h"
|
|
187
|
+
"util/mutexlock.h"
|
|
188
|
+
"util/no_destructor.h"
|
|
189
|
+
"util/options.cc"
|
|
190
|
+
"util/random.h"
|
|
191
|
+
"util/status.cc"
|
|
192
|
+
|
|
193
|
+
# Only CMake 3.3+ supports PUBLIC sources in targets exported by "install".
|
|
194
|
+
$<$<VERSION_GREATER:CMAKE_VERSION,3.2>:PUBLIC>
|
|
195
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/c.h"
|
|
196
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/cache.h"
|
|
197
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/comparator.h"
|
|
198
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/db.h"
|
|
199
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/dumpfile.h"
|
|
200
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/env.h"
|
|
201
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/export.h"
|
|
202
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/filter_policy.h"
|
|
203
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/iterator.h"
|
|
204
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/options.h"
|
|
205
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/slice.h"
|
|
206
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/status.h"
|
|
207
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/table_builder.h"
|
|
208
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/table.h"
|
|
209
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/write_batch.h"
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
if (WIN32)
|
|
213
|
+
target_sources(leveldb
|
|
214
|
+
PRIVATE
|
|
215
|
+
"util/env_windows.cc"
|
|
216
|
+
"util/windows_logger.h"
|
|
217
|
+
)
|
|
218
|
+
else (WIN32)
|
|
219
|
+
target_sources(leveldb
|
|
220
|
+
PRIVATE
|
|
221
|
+
"util/env_posix.cc"
|
|
222
|
+
"util/posix_logger.h"
|
|
223
|
+
)
|
|
224
|
+
endif (WIN32)
|
|
225
|
+
|
|
226
|
+
# MemEnv is not part of the interface and could be pulled to a separate library.
|
|
227
|
+
target_sources(leveldb
|
|
228
|
+
PRIVATE
|
|
229
|
+
"helpers/memenv/memenv.cc"
|
|
230
|
+
"helpers/memenv/memenv.h"
|
|
231
|
+
)
|
|
232
|
+
|
|
233
|
+
target_include_directories(leveldb
|
|
234
|
+
PUBLIC
|
|
235
|
+
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
|
236
|
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
set_target_properties(leveldb
|
|
240
|
+
PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
|
|
241
|
+
|
|
242
|
+
target_compile_definitions(leveldb
|
|
243
|
+
PRIVATE
|
|
244
|
+
# Used by include/export.h when building shared libraries.
|
|
245
|
+
LEVELDB_COMPILE_LIBRARY
|
|
246
|
+
# Used by port/port.h.
|
|
247
|
+
${LEVELDB_PLATFORM_NAME}=1
|
|
248
|
+
)
|
|
249
|
+
if (NOT HAVE_CXX17_HAS_INCLUDE)
|
|
250
|
+
target_compile_definitions(leveldb
|
|
251
|
+
PRIVATE
|
|
252
|
+
LEVELDB_HAS_PORT_CONFIG_H=1
|
|
253
|
+
)
|
|
254
|
+
endif(NOT HAVE_CXX17_HAS_INCLUDE)
|
|
255
|
+
|
|
256
|
+
if(BUILD_SHARED_LIBS)
|
|
257
|
+
target_compile_definitions(leveldb
|
|
258
|
+
PUBLIC
|
|
259
|
+
# Used by include/export.h.
|
|
260
|
+
LEVELDB_SHARED_LIBRARY
|
|
261
|
+
)
|
|
262
|
+
endif(BUILD_SHARED_LIBS)
|
|
263
|
+
|
|
264
|
+
if(HAVE_CLANG_THREAD_SAFETY)
|
|
265
|
+
target_compile_options(leveldb
|
|
266
|
+
PUBLIC
|
|
267
|
+
-Werror -Wthread-safety)
|
|
268
|
+
endif(HAVE_CLANG_THREAD_SAFETY)
|
|
269
|
+
|
|
270
|
+
if(HAVE_CRC32C)
|
|
271
|
+
target_link_libraries(leveldb crc32c)
|
|
272
|
+
endif(HAVE_CRC32C)
|
|
273
|
+
if(HAVE_SNAPPY)
|
|
274
|
+
target_link_libraries(leveldb snappy)
|
|
275
|
+
endif(HAVE_SNAPPY)
|
|
276
|
+
if(HAVE_TCMALLOC)
|
|
277
|
+
target_link_libraries(leveldb tcmalloc)
|
|
278
|
+
endif(HAVE_TCMALLOC)
|
|
279
|
+
|
|
280
|
+
# Needed by port_stdcxx.h
|
|
281
|
+
find_package(Threads REQUIRED)
|
|
282
|
+
target_link_libraries(leveldb Threads::Threads)
|
|
283
|
+
|
|
284
|
+
add_executable(leveldbutil
|
|
285
|
+
"db/leveldbutil.cc"
|
|
286
|
+
)
|
|
287
|
+
target_link_libraries(leveldbutil leveldb)
|
|
288
|
+
|
|
289
|
+
if(LEVELDB_BUILD_TESTS)
|
|
290
|
+
enable_testing()
|
|
291
|
+
|
|
292
|
+
# Prevent overriding the parent project's compiler/linker settings on Windows.
|
|
293
|
+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
294
|
+
set(install_gtest OFF)
|
|
295
|
+
set(install_gmock OFF)
|
|
296
|
+
set(build_gmock ON)
|
|
297
|
+
|
|
298
|
+
# This project is tested using GoogleTest.
|
|
299
|
+
add_subdirectory("third_party/googletest")
|
|
300
|
+
|
|
301
|
+
# This project uses Google benchmark for benchmarking.
|
|
302
|
+
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "" FORCE)
|
|
303
|
+
set(BENCHMARK_ENABLE_EXCEPTIONS OFF CACHE BOOL "" FORCE)
|
|
304
|
+
add_subdirectory("third_party/benchmark")
|
|
305
|
+
|
|
306
|
+
# GoogleTest triggers a missing field initializers warning.
|
|
307
|
+
if(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
308
|
+
set_property(TARGET gtest
|
|
309
|
+
APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
310
|
+
set_property(TARGET gmock
|
|
311
|
+
APPEND PROPERTY COMPILE_OPTIONS -Wno-missing-field-initializers)
|
|
312
|
+
endif(LEVELDB_HAVE_NO_MISSING_FIELD_INITIALIZERS)
|
|
313
|
+
|
|
314
|
+
function(leveldb_test test_file)
|
|
315
|
+
get_filename_component(test_target_name "${test_file}" NAME_WE)
|
|
316
|
+
|
|
317
|
+
add_executable("${test_target_name}" "")
|
|
318
|
+
target_sources("${test_target_name}"
|
|
319
|
+
PRIVATE
|
|
320
|
+
"${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
|
|
321
|
+
"util/testutil.cc"
|
|
322
|
+
"util/testutil.h"
|
|
323
|
+
|
|
324
|
+
"${test_file}"
|
|
325
|
+
)
|
|
326
|
+
target_link_libraries("${test_target_name}" leveldb gmock gtest benchmark)
|
|
327
|
+
target_compile_definitions("${test_target_name}"
|
|
328
|
+
PRIVATE
|
|
329
|
+
${LEVELDB_PLATFORM_NAME}=1
|
|
330
|
+
)
|
|
331
|
+
if (NOT HAVE_CXX17_HAS_INCLUDE)
|
|
332
|
+
target_compile_definitions("${test_target_name}"
|
|
333
|
+
PRIVATE
|
|
334
|
+
LEVELDB_HAS_PORT_CONFIG_H=1
|
|
335
|
+
)
|
|
336
|
+
endif(NOT HAVE_CXX17_HAS_INCLUDE)
|
|
337
|
+
|
|
338
|
+
add_test(NAME "${test_target_name}" COMMAND "${test_target_name}")
|
|
339
|
+
endfunction(leveldb_test)
|
|
340
|
+
|
|
341
|
+
leveldb_test("db/c_test.c")
|
|
342
|
+
leveldb_test("db/fault_injection_test.cc")
|
|
343
|
+
|
|
344
|
+
leveldb_test("issues/issue178_test.cc")
|
|
345
|
+
leveldb_test("issues/issue200_test.cc")
|
|
346
|
+
leveldb_test("issues/issue320_test.cc")
|
|
347
|
+
|
|
348
|
+
leveldb_test("util/env_test.cc")
|
|
349
|
+
leveldb_test("util/status_test.cc")
|
|
350
|
+
leveldb_test("util/no_destructor_test.cc")
|
|
351
|
+
|
|
352
|
+
if(NOT BUILD_SHARED_LIBS)
|
|
353
|
+
leveldb_test("db/autocompact_test.cc")
|
|
354
|
+
leveldb_test("db/corruption_test.cc")
|
|
355
|
+
leveldb_test("db/db_test.cc")
|
|
356
|
+
leveldb_test("db/dbformat_test.cc")
|
|
357
|
+
leveldb_test("db/filename_test.cc")
|
|
358
|
+
leveldb_test("db/log_test.cc")
|
|
359
|
+
leveldb_test("db/recovery_test.cc")
|
|
360
|
+
leveldb_test("db/skiplist_test.cc")
|
|
361
|
+
leveldb_test("db/version_edit_test.cc")
|
|
362
|
+
leveldb_test("db/version_set_test.cc")
|
|
363
|
+
leveldb_test("db/write_batch_test.cc")
|
|
364
|
+
|
|
365
|
+
leveldb_test("helpers/memenv/memenv_test.cc")
|
|
366
|
+
|
|
367
|
+
leveldb_test("table/filter_block_test.cc")
|
|
368
|
+
leveldb_test("table/table_test.cc")
|
|
369
|
+
|
|
370
|
+
leveldb_test("util/arena_test.cc")
|
|
371
|
+
leveldb_test("util/bloom_test.cc")
|
|
372
|
+
leveldb_test("util/cache_test.cc")
|
|
373
|
+
leveldb_test("util/coding_test.cc")
|
|
374
|
+
leveldb_test("util/crc32c_test.cc")
|
|
375
|
+
leveldb_test("util/hash_test.cc")
|
|
376
|
+
leveldb_test("util/logging_test.cc")
|
|
377
|
+
|
|
378
|
+
# TODO(costan): This test also uses
|
|
379
|
+
# "util/env_{posix|windows}_test_helper.h"
|
|
380
|
+
if (WIN32)
|
|
381
|
+
leveldb_test("util/env_windows_test.cc")
|
|
382
|
+
else (WIN32)
|
|
383
|
+
leveldb_test("util/env_posix_test.cc")
|
|
384
|
+
endif (WIN32)
|
|
385
|
+
endif(NOT BUILD_SHARED_LIBS)
|
|
386
|
+
endif(LEVELDB_BUILD_TESTS)
|
|
387
|
+
|
|
388
|
+
if(LEVELDB_BUILD_BENCHMARKS)
|
|
389
|
+
function(leveldb_benchmark bench_file)
|
|
390
|
+
get_filename_component(bench_target_name "${bench_file}" NAME_WE)
|
|
391
|
+
|
|
392
|
+
add_executable("${bench_target_name}" "")
|
|
393
|
+
target_sources("${bench_target_name}"
|
|
394
|
+
PRIVATE
|
|
395
|
+
"${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"
|
|
396
|
+
"util/histogram.cc"
|
|
397
|
+
"util/histogram.h"
|
|
398
|
+
"util/testutil.cc"
|
|
399
|
+
"util/testutil.h"
|
|
400
|
+
|
|
401
|
+
"${bench_file}"
|
|
402
|
+
)
|
|
403
|
+
target_link_libraries("${bench_target_name}" leveldb gmock gtest)
|
|
404
|
+
target_compile_definitions("${bench_target_name}"
|
|
405
|
+
PRIVATE
|
|
406
|
+
${LEVELDB_PLATFORM_NAME}=1
|
|
407
|
+
)
|
|
408
|
+
if (NOT HAVE_CXX17_HAS_INCLUDE)
|
|
409
|
+
target_compile_definitions("${bench_target_name}"
|
|
410
|
+
PRIVATE
|
|
411
|
+
LEVELDB_HAS_PORT_CONFIG_H=1
|
|
412
|
+
)
|
|
413
|
+
endif(NOT HAVE_CXX17_HAS_INCLUDE)
|
|
414
|
+
endfunction(leveldb_benchmark)
|
|
415
|
+
|
|
416
|
+
if(NOT BUILD_SHARED_LIBS)
|
|
417
|
+
leveldb_benchmark("benchmarks/db_bench.cc")
|
|
418
|
+
endif(NOT BUILD_SHARED_LIBS)
|
|
419
|
+
|
|
420
|
+
check_library_exists(sqlite3 sqlite3_open "" HAVE_SQLITE3)
|
|
421
|
+
if(HAVE_SQLITE3)
|
|
422
|
+
leveldb_benchmark("benchmarks/db_bench_sqlite3.cc")
|
|
423
|
+
target_link_libraries(db_bench_sqlite3 sqlite3)
|
|
424
|
+
endif(HAVE_SQLITE3)
|
|
425
|
+
|
|
426
|
+
# check_library_exists is insufficient here because the library names have
|
|
427
|
+
# different manglings when compiled with clang or gcc, at least when installed
|
|
428
|
+
# with Homebrew on Mac.
|
|
429
|
+
set(OLD_CMAKE_REQURED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
|
|
430
|
+
list(APPEND CMAKE_REQUIRED_LIBRARIES kyotocabinet)
|
|
431
|
+
check_cxx_source_compiles("
|
|
432
|
+
#include <kcpolydb.h>
|
|
433
|
+
|
|
434
|
+
int main() {
|
|
435
|
+
kyotocabinet::TreeDB* db = new kyotocabinet::TreeDB();
|
|
436
|
+
delete db;
|
|
437
|
+
return 0;
|
|
438
|
+
}
|
|
439
|
+
" HAVE_KYOTOCABINET)
|
|
440
|
+
set(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQURED_LIBRARIES})
|
|
441
|
+
if(HAVE_KYOTOCABINET)
|
|
442
|
+
leveldb_benchmark("benchmarks/db_bench_tree_db.cc")
|
|
443
|
+
target_link_libraries(db_bench_tree_db kyotocabinet)
|
|
444
|
+
endif(HAVE_KYOTOCABINET)
|
|
445
|
+
endif(LEVELDB_BUILD_BENCHMARKS)
|
|
446
|
+
|
|
447
|
+
if(LEVELDB_INSTALL)
|
|
448
|
+
install(TARGETS leveldb
|
|
449
|
+
EXPORT leveldbTargets
|
|
450
|
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
451
|
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
452
|
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
453
|
+
)
|
|
454
|
+
install(
|
|
455
|
+
FILES
|
|
456
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/c.h"
|
|
457
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/cache.h"
|
|
458
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/comparator.h"
|
|
459
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/db.h"
|
|
460
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/dumpfile.h"
|
|
461
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/env.h"
|
|
462
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/export.h"
|
|
463
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/filter_policy.h"
|
|
464
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/iterator.h"
|
|
465
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/options.h"
|
|
466
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/slice.h"
|
|
467
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/status.h"
|
|
468
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/table_builder.h"
|
|
469
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/table.h"
|
|
470
|
+
"${LEVELDB_PUBLIC_INCLUDE_DIR}/write_batch.h"
|
|
471
|
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/leveldb"
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
include(CMakePackageConfigHelpers)
|
|
475
|
+
configure_package_config_file(
|
|
476
|
+
"cmake/${PROJECT_NAME}Config.cmake.in"
|
|
477
|
+
"${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake"
|
|
478
|
+
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
|
479
|
+
)
|
|
480
|
+
write_basic_package_version_file(
|
|
481
|
+
"${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake"
|
|
482
|
+
COMPATIBILITY SameMajorVersion
|
|
483
|
+
)
|
|
484
|
+
install(
|
|
485
|
+
EXPORT leveldbTargets
|
|
486
|
+
NAMESPACE leveldb::
|
|
487
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
|
488
|
+
)
|
|
489
|
+
install(
|
|
490
|
+
FILES
|
|
491
|
+
"${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake"
|
|
492
|
+
"${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake"
|
|
493
|
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
|
|
494
|
+
)
|
|
495
|
+
endif(LEVELDB_INSTALL)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
We'd love to accept your code patches! However, before we can take them, we
|
|
4
|
+
have to jump a couple of legal hurdles.
|
|
5
|
+
|
|
6
|
+
## Contributor License Agreements
|
|
7
|
+
|
|
8
|
+
Please fill out either the individual or corporate Contributor License
|
|
9
|
+
Agreement as appropriate.
|
|
10
|
+
|
|
11
|
+
* If you are an individual writing original source code and you're sure you
|
|
12
|
+
own the intellectual property, then sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
|
|
13
|
+
* If you work for a company that wants to allow you to contribute your work,
|
|
14
|
+
then sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
|
|
15
|
+
|
|
16
|
+
Follow either of the two links above to access the appropriate CLA and
|
|
17
|
+
instructions for how to sign and return it.
|
|
18
|
+
|
|
19
|
+
## Submitting a Patch
|
|
20
|
+
|
|
21
|
+
1. Sign the contributors license agreement above.
|
|
22
|
+
2. Decide which code you want to submit. A submission should be a set of changes
|
|
23
|
+
that addresses one issue in the [issue tracker](https://github.com/google/leveldb/issues).
|
|
24
|
+
Please don't mix more than one logical change per submission, because it makes
|
|
25
|
+
the history hard to follow. If you want to make a change
|
|
26
|
+
(e.g. add a sample or feature) that doesn't have a corresponding issue in the
|
|
27
|
+
issue tracker, please create one.
|
|
28
|
+
3. **Submitting**: When you are ready to submit, send us a Pull Request. Be
|
|
29
|
+
sure to include the issue number you fixed and the name you used to sign
|
|
30
|
+
the CLA.
|
|
31
|
+
|
|
32
|
+
## Writing Code ##
|
|
33
|
+
|
|
34
|
+
If your contribution contains code, please make sure that it follows
|
|
35
|
+
[the style guide](http://google.github.io/styleguide/cppguide.html).
|
|
36
|
+
Otherwise we will have to ask you to make changes, and that's no fun for anyone.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2011 The LevelDB Authors. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are
|
|
5
|
+
met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above
|
|
10
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
11
|
+
in the documentation and/or other materials provided with the
|
|
12
|
+
distribution.
|
|
13
|
+
* Neither the name of Google Inc. nor the names of its
|
|
14
|
+
contributors may be used to endorse or promote products derived from
|
|
15
|
+
this software without specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
18
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
19
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
20
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
21
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
22
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
23
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
24
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
25
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/cpp/leveldb/NEWS
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Release 1.2 2011-05-16
|
|
2
|
+
----------------------
|
|
3
|
+
|
|
4
|
+
Fixes for larger databases (tested up to one billion 100-byte entries,
|
|
5
|
+
i.e., ~100GB).
|
|
6
|
+
|
|
7
|
+
(1) Place hard limit on number of level-0 files. This fixes errors
|
|
8
|
+
of the form "too many open files".
|
|
9
|
+
|
|
10
|
+
(2) Fixed memtable management. Before the fix, a heavy write burst
|
|
11
|
+
could cause unbounded memory usage.
|
|
12
|
+
|
|
13
|
+
A fix for a logging bug where the reader would incorrectly complain
|
|
14
|
+
about corruption.
|
|
15
|
+
|
|
16
|
+
Allow public access to WriteBatch contents so that users can easily
|
|
17
|
+
wrap a DB.
|