Skip to content

Unoperate/bigtable-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Single Node, Memory Only Emulator for Google Bigtable

This is a single-node, non-persistent emulator for Google's Bigtable.

It should pass all the integration tests in Google's C++ client repository (google-cloud-cpp), except those that must run against production Bigtable.

Dependencies

The Bigtable-emulator depends on google-cloud-cpp (which the build tools retrieve and build automatically) and the abseil library. Other dependencies such as GRPC are provided by google-cloud-cpp.

Building

Building the Bigtable emulator requires bazel.

bazel build //...

Running the Unit Tests

bazel test //...

Running clang-tidy with Bazel

bazel build --config clang-tidy //...

Running the Emulator

bigtable-emulator -p <port>

Development

It's a good idea to set home ($HOME/.bazelrc on Unixes) or system bazelrc and enable compilation cache there with this line:

build --disk_cache=~/.cache/bazel/disk-cache

Note that the cache directory grows indefinitely.

Formatting the code

# On bash you neet to enable globstar with `shopt -s globstar` first
clang-format -i -style=file -assume-filename=.clang-format **/*.cc **/*.h

compile_commands.json

If you need to generate compile_commands.json for your tooling, run:

bazel run --config=compile-commands

Contributing changes

See CONTRIBUTING.md for details on how to contribute to this project, including how to build and test your changes as well as how to properly format your code.

Licensing

Apache 2.0; see LICENSE for details.

About

A single node (for now memory storage only) emulator for Google's Bigtable

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •