rocksdb/examples
Tomasz Posłuszny 8d44d792c3 Make examples work on Windows (#7304)
Summary:
Quick fixes to examples to make it easier to get familiar with RocksDB for Windows users:

- Set proper temporary directory path on Windows for all examples (with C++17 we should start using std::filesystem)
- Fixed typo and got rid of warnings treated as errors in multi_processes_example.cc
- Get number of available cores on Windows in c_simple_example.c
- Add command to remove DB directory for Windows in compaction_filter_example.cc (print error, but carry on with example upon error, because error code is returned if there is no such directory on Windows)

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7304

Reviewed By: jay-zhuang

Differential Revision: D23450900

Pulled By: pdillinger

fbshipit-source-id: 4256134deb6ae6bb267ed1bd69f814842b95f60f
2020-09-01 18:03:50 -07:00
..
.gitignore Support for single-primary, multi-secondary instances (#4899) 2019-03-26 16:45:31 -07:00
CMakeLists.txt add WITH_EXAMPLES options to cmake and cleanups. (#6580) 2020-06-18 18:00:04 -07:00
Makefile Support for single-primary, multi-secondary instances (#4899) 2019-03-26 16:45:31 -07:00
README.md Improve examples/README.md 2015-12-16 16:27:37 +01:00
c_simple_example.c Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
column_families_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
compact_files_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
compaction_filter_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
multi_processes_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
optimistic_transaction_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
options_file_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
rocksdb_option_file_example.ini Refactor trimming logic for immutable memtables (#5022) 2019-08-23 13:55:34 -07:00
simple_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00
transaction_example.cc Make examples work on Windows (#7304) 2020-09-01 18:03:50 -07:00

README.md

  1. Compile RocksDB first by executing make static_lib in parent dir
  2. Compile all examples: cd examples/; make all