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

43 lines
1.6 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 "RawTableDefV9.g.h"
#include "RawReducerDefV9.g.h"
#include "RawTypeDefV9.g.h"
#include "Typespace.g.h"
#include "RawMiscModuleExportV9.g.h"
#include "RawRowLevelSecurityDefV9.g.h"
namespace SpacetimeDB::Internal {
SPACETIMEDB_INTERNAL_PRODUCT_TYPE(RawModuleDefV9) {
SpacetimeDB::Internal::Typespace typespace;
std::vector<SpacetimeDB::Internal::RawTableDefV9> tables;
std::vector<SpacetimeDB::Internal::RawReducerDefV9> reducers;
std::vector<SpacetimeDB::Internal::RawTypeDefV9> types;
std::vector<SpacetimeDB::Internal::RawMiscModuleExportV9> misc_exports;
std::vector<SpacetimeDB::Internal::RawRowLevelSecurityDefV9> row_level_security;
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, types);
::SpacetimeDB::bsatn::serialize(writer, misc_exports);
::SpacetimeDB::bsatn::serialize(writer, row_level_security);
}
SPACETIMEDB_PRODUCT_TYPE_EQUALITY(typespace, tables, reducers, types, misc_exports, row_level_security)
};
} // namespace SpacetimeDB::Internal