modules/sdk-test-cpp/README.md
sdk-test-cpp C++ test moduleExercise the functionality of the SpacetimeDB C++ bindings API surface, modeling all combinations of types, with several examples of tables, indexes, and reducers.
Used to validate C++ bindings functionality and ensure parity with Rust/C# implementations.
Note: Mirrors functionality from
modules/sdk-testandmodules/sdk-test-cs.
cd modules/sdk-test-cpp
spacetime build -p .
The built WASM module will be at build/lib.wasm.
# Start SpacetimeDB
spacetime start
# Publish the module
spacetime publish . test-db --delete-data
# Verify module schema
spacetime describe test-db
# Call example reducer
spacetime call test-db add_player '"Alice"'
# View logs
spacetime logs test-db -f
lib.cpp contains comprehensive testing of:
For C++ bindings usage documentation, see crates/bindings-cpp/.