Files
Jason Larabie cf73acff92 Add primary keys for C++ procedural views (#5354)
# Description of Changes

Adds primary keys to procedural views in C++. This mirrors the work from
#5111, #5246, and #5327 adding the feature and the docs changes.

# API and ABI breaking changes

None

# Expected complexity level and risk

3

# Testing

- [x] Equivalent tests as were added in #5111 and #5246 for rust,
typescript, and C#
2026-06-18 22:43:51 +00:00

37 lines
1.2 KiB
C++

// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE
// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD.
// This was generated using spacetimedb codegen.
#pragma once
#include <cstdint>
#include <string>
#include <vector>
#include <optional>
#include <memory>
#include "../autogen_base.h"
#include "spacetimedb/bsatn/bsatn.h"
#include "MiscModuleExport.g.h"
#include "Typespace.g.h"
#include "TableDesc.g.h"
#include "ReducerDef.g.h"
namespace SpacetimeDB::Internal {
SPACETIMEDB_INTERNAL_PRODUCT_TYPE(RawModuleDefV8) {
SpacetimeDB::Internal::Typespace typespace;
std::vector<SpacetimeDB::Internal::TableDesc> tables;
std::vector<SpacetimeDB::Internal::ReducerDef> reducers;
std::vector<SpacetimeDB::Internal::MiscModuleExport> misc_exports;
void bsatn_serialize(::SpacetimeDB::bsatn::Writer& writer) const {
::SpacetimeDB::bsatn::serialize(writer, typespace);
::SpacetimeDB::bsatn::serialize(writer, tables);
::SpacetimeDB::bsatn::serialize(writer, reducers);
::SpacetimeDB::bsatn::serialize(writer, misc_exports);
}
SPACETIMEDB_PRODUCT_TYPE_EQUALITY(typespace, tables, reducers, misc_exports)
};
} // namespace SpacetimeDB::Internal