diff --git a/Cargo.lock b/Cargo.lock index 22abcf362c1..8fdb8396928 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7497,6 +7497,7 @@ dependencies = [ "anymap", "byte-unit", "clap 4.5.50", + "convert_case 0.6.0", "criterion", "foldhash 0.2.0", "futures", @@ -8308,6 +8309,7 @@ name = "spacetimedb-schema" version = "2.0.0" dependencies = [ "anyhow", + "convert_case 0.6.0", "derive_more 0.99.20", "enum-as-inner", "enum-map", diff --git a/crates/bench/Cargo.toml b/crates/bench/Cargo.toml index 5a77113c435..115eb115022 100644 --- a/crates/bench/Cargo.toml +++ b/crates/bench/Cargo.toml @@ -55,6 +55,7 @@ spacetimedb-testing = { path = "../testing" } ahash.workspace = true anyhow.workspace = true +convert_case.workspace = true anymap.workspace = true byte-unit.workspace = true clap.workspace = true diff --git a/crates/bench/src/spacetime_module.rs b/crates/bench/src/spacetime_module.rs index 3aefcbdc5d1..7775b58e8fd 100644 --- a/crates/bench/src/spacetime_module.rs +++ b/crates/bench/src/spacetime_module.rs @@ -1,5 +1,6 @@ use std::{marker::PhantomData, path::Path}; +use convert_case::{Case, Casing}; use spacetimedb::db::{Config, Storage}; use spacetimedb_lib::{ sats::{product, ArrayValue}, @@ -89,9 +90,14 @@ impl BenchDatabase for SpacetimeModule { table_style: crate::schemas::IndexStrategy, ) -> ResultBench { // Noop. All tables are built into the "benchmarks" module. + // The module's default CaseConversionPolicy is SnakeCase, which + // inserts underscores at letter-digit boundaries (e.g. u32 -> u_32). + // We must match that here so reducer/table lookups succeed. + let raw = table_name::(table_style); + let converted = raw.as_ref().to_case(Case::Snake); Ok(TableId { - pascal_case: table_name::(table_style), - snake_case: table_name::(table_style), + pascal_case: TableName::for_test(&converted), + snake_case: TableName::for_test(&converted), }) } diff --git a/crates/bindings-csharp/Codegen/Module.cs b/crates/bindings-csharp/Codegen/Module.cs index 8812ceb0b69..ba8d6295162 100644 --- a/crates/bindings-csharp/Codegen/Module.cs +++ b/crates/bindings-csharp/Codegen/Module.cs @@ -452,7 +452,7 @@ public string GenerateIndexDef(TableAccessor tableAccessor) => $$""" new( SourceName: "{{StandardIndexName(tableAccessor)}}", - AccessorName: null, + AccessorName: "{{AccessorName}}", Algorithm: new SpacetimeDB.Internal.RawIndexAlgorithm.{{Type}}([{{string.Join( ", ", Columns.Select(c => c.Index) diff --git a/crates/bindings-macro/src/table.rs b/crates/bindings-macro/src/table.rs index c94e7399701..ae2cbbc4334 100644 --- a/crates/bindings-macro/src/table.rs +++ b/crates/bindings-macro/src/table.rs @@ -49,22 +49,21 @@ struct ScheduledArg { struct IndexArg { accessor: Ident, - //TODO: add canonical name - // name: Option, + canonical_name: Option, is_unique: bool, kind: IndexType, } impl IndexArg { - fn new(accessor: Ident, kind: IndexType) -> Self { + fn new(accessor: Ident, kind: IndexType, canonical_name: Option) -> Self { // We don't know if its unique yet. // We'll discover this once we have collected constraints. let is_unique = false; Self { + canonical_name, accessor, is_unique, kind, - // name, } } } @@ -235,6 +234,7 @@ impl ScheduledArg { impl IndexArg { fn parse_meta(meta: ParseNestedMeta) -> syn::Result { let mut accessor = None; + let mut canonical_name = None; let mut algo = None; meta.parse_nested_meta(|meta| { @@ -243,6 +243,11 @@ impl IndexArg { check_duplicate(&accessor, &meta)?; accessor = Some(meta.value()?.parse()?); } + sym::name => { + check_duplicate(&canonical_name, &meta)?; + canonical_name = Some(meta.value()?.parse()?); + } + sym::btree => { check_duplicate_msg(&algo, &meta, "index algorithm specified twice")?; algo = Some(Self::parse_btree(meta)?); @@ -304,7 +309,7 @@ Did you mean to specify an `accessor` instead? Do so with `accessor = my_index`, ) })?; - Ok(IndexArg::new(accessor, kind)) + Ok(IndexArg::new(accessor, kind, canonical_name)) } fn parse_columns(meta: &ParseNestedMeta) -> syn::Result>> { @@ -390,7 +395,7 @@ Did you mean to specify an `accessor` instead? Do so with `accessor = my_index`, // Default accessor = field name if not provided let accessor = field.clone(); - Ok(IndexArg::new(accessor, kind)) + Ok(IndexArg::new(accessor, kind, None)) } fn validate<'a>(&'a self, table_name: &str, cols: &'a [Column<'a>]) -> syn::Result> { @@ -434,6 +439,7 @@ Did you mean to specify an `accessor` instead? Do so with `accessor = my_index`, index_name: gen_index_name(), accessor_name: &self.accessor, kind, + canonical_name: self.canonical_name.as_ref().map(|s| s.value()), }) } } @@ -492,6 +498,7 @@ struct ValidatedIndex<'a> { accessor_name: &'a Ident, is_unique: bool, kind: ValidatedIndexType<'a>, + canonical_name: Option, } enum ValidatedIndexType<'a> { @@ -539,11 +546,13 @@ impl ValidatedIndex<'_> { } }; let source_name = self.index_name.clone(); + let accessor_name = self.accessor_name.to_string(); // Note: we do not pass the index_name through here. // We trust the schema validation logic to reconstruct the name we've stored in `self.name`. //TODO(shub): pass generated index name instead of accessor name as source_name quote!(spacetimedb::table::IndexDesc { source_name: #source_name, + accessor_name: #accessor_name, algo: #algo, }) } @@ -939,6 +948,7 @@ pub(crate) fn table_impl(mut args: TableArgs, item: &syn::DeriveInput) -> syn::R //name: None, is_unique: true, kind: IndexType::BTree { columns }, + canonical_name: None, }) } @@ -1130,7 +1140,8 @@ pub(crate) fn table_impl(mut args: TableArgs, item: &syn::DeriveInput) -> syn::R } }; - let explicit_names_impl = generate_explicit_names_impl(&table_name, &tablehandle_ident, &explicit_table_name); + let explicit_names_impl = + generate_explicit_names_impl(&table_name, &tablehandle_ident, &explicit_table_name, &indices); let register_describer_symbol = format!("__preinit__20_register_describer_{table_ident}"); @@ -1323,6 +1334,7 @@ fn generate_explicit_names_impl( table_name: &str, tablehandle_ident: &Ident, explicit_table_name: &Option, + indexes: &[ValidatedIndex], ) -> TokenStream { let mut explicit_names_body = Vec::new(); @@ -1336,6 +1348,19 @@ fn generate_explicit_names_impl( }); }; + // Index names + for index in indexes { + if let Some(canonical_name) = &index.canonical_name { + let index_name = &index.index_name; + explicit_names_body.push(quote! { + names.insert_index( + #index_name, + #canonical_name, + ); + }); + } + } + quote! { impl spacetimedb::rt::ExplicitNames for #tablehandle_ident { diff --git a/crates/bindings-typescript/src/lib/indexes.ts b/crates/bindings-typescript/src/lib/indexes.ts index 5c1663f1141..84a131589fd 100644 --- a/crates/bindings-typescript/src/lib/indexes.ts +++ b/crates/bindings-typescript/src/lib/indexes.ts @@ -9,6 +9,7 @@ import type { ColumnIsUnique } from './constraints'; * existing column names are referenced. */ export type IndexOpts = { + accessor?: string; name?: string; } & ( | { algorithm: 'btree'; columns: readonly AllowedCol[] } diff --git a/crates/bindings-typescript/src/lib/schema.ts b/crates/bindings-typescript/src/lib/schema.ts index f09ac5ad999..5d1fc053c65 100644 --- a/crates/bindings-typescript/src/lib/schema.ts +++ b/crates/bindings-typescript/src/lib/schema.ts @@ -30,8 +30,7 @@ import { type RowObj, type VariantsObj, } from './type_builders'; -import type { CamelCase, Values } from './type_util'; -import { toCamelCase } from './util'; +import type { Values } from './type_util'; export type TableNamesOf = Values< S['tables'] @@ -58,7 +57,7 @@ export interface TableToSchema< AccName extends string, T extends UntypedTableSchema, > extends UntypedTableDef { - accessorName: CamelCase; + accessorName: AccName; columns: T['rowType']['row']; rowType: T['rowSpacetimeType']; indexes: T['idxs']; @@ -91,8 +90,8 @@ export function tableToSchema< type AllowedCol = keyof T['rowType']['row'] & string; return { - sourceName: schema.tableName ?? accName, - accessorName: toCamelCase(accName), + sourceName: accName, + accessorName: accName, columns: schema.rowType.row, // typed as T[i]['rowType']['row'] under TablesToSchema rowType: schema.rowSpacetimeType, constraints: tableDef.constraints.map(c => ({ @@ -188,6 +187,12 @@ export class ModuleContext { value: module.rowLevelSecurity, } ); + push( + module.explicitNames && { + tag: 'ExplicitNames', + value: module.explicitNames, + } + ); return { sections }; } diff --git a/crates/bindings-typescript/src/lib/table.ts b/crates/bindings-typescript/src/lib/table.ts index 13485755234..f51763e5211 100644 --- a/crates/bindings-typescript/src/lib/table.ts +++ b/crates/bindings-typescript/src/lib/table.ts @@ -1,6 +1,7 @@ import type { ProcedureExport, ReducerExport, t } from '../server'; import type { errors } from '../server/errors'; import { + ExplicitNameEntry, RawColumnDefaultValueV10, RawConstraintDefV10, RawIndexAlgorithm, @@ -132,7 +133,7 @@ export type TableIndexes = { ? never : K]: ColumnIndex; } & { - [I in TableDef['indexes'][number] as I['name'] & {}]: TableIndexFromDef< + [I in TableDef['indexes'][number] as I['accessor'] & {}]: TableIndexFromDef< TableDef, I >; @@ -146,7 +147,7 @@ type TableIndexFromDef< keyof TableDef['columns'] & string > ? { - name: I['name']; + name: I['accessor']; unique: AllUnique; algorithm: Lowercase; columns: Cols; @@ -322,7 +323,7 @@ export function table>( // gather primary keys, per‑column indexes, uniques, sequences const pk: ColList = []; - const indexes: RawIndexDefV10[] = []; + const indexes: (RawIndexDefV10 & { canonicalName?: string })[] = []; const constraints: RawConstraintDefV10[] = []; const sequences: RawSequenceDefV10[] = []; @@ -426,8 +427,9 @@ export function table>( // the name and accessor name of an index across all SDKs. indexes.push({ sourceName: undefined, - accessorName: indexOpts.name, + accessorName: indexOpts.accessor, algorithm, + canonicalName: indexOpts.name, }); } @@ -443,15 +445,6 @@ export function table>( } } - for (const index of indexes) { - const cols = - index.algorithm.tag === 'Direct' - ? [index.algorithm.value] - : index.algorithm.value; - const colS = cols.map(i => colNameList[i]).join('_'); - index.sourceName = `${name}_${colS}_idx_${index.algorithm.tag.toLowerCase()}`; - } - const productType = row.algebraicType.value as RowBuilder< CoerceRow >['algebraicType']['value']; @@ -470,8 +463,28 @@ export function table>( if (row.typeName === undefined) { row.typeName = toPascalCase(tableName); } + + // Build index source names using accName + for (const index of indexes) { + const cols = + index.algorithm.tag === 'Direct' + ? [index.algorithm.value] + : index.algorithm.value; + + const colS = cols.map(i => colNameList[i]).join('_'); + const sourceName = + (index.sourceName = `${accName}_${colS}_idx_${index.algorithm.tag.toLowerCase()}`); + + const { canonicalName } = index; + if (canonicalName !== undefined) { + ctx.moduleDef.explicitNames.entries.push( + ExplicitNameEntry.Index({ sourceName, canonicalName }) + ); + } + } + return { - sourceName: tableName, + sourceName: accName, productTypeRef: ctx.registerTypesRecursively(row).ref, primaryKey: pk, indexes, diff --git a/crates/bindings-typescript/src/sdk/db_connection_impl.ts b/crates/bindings-typescript/src/sdk/db_connection_impl.ts index e115d9bdcd4..21e7990aeba 100644 --- a/crates/bindings-typescript/src/sdk/db_connection_impl.ts +++ b/crates/bindings-typescript/src/sdk/db_connection_impl.ts @@ -54,7 +54,6 @@ import type { } from './reducers.ts'; import type { ClientDbView } from './db_view.ts'; import type { RowType, UntypedTableDef } from '../lib/table.ts'; -import { toCamelCase } from '../lib/util.ts'; import type { ProceduresView } from './procedures.ts'; import type { Values } from '../lib/type_util.ts'; import type { TransactionUpdate } from './client_api/types.ts'; @@ -305,7 +304,7 @@ export class DbConnectionImpl for (const reducer of def.reducers) { const reducerName = reducer.name; - const key = toCamelCase(reducerName); + const key = reducer.accessorName; const { serialize: serializeArgs } = this.#reducerArgsSerializers[reducerName]; @@ -326,7 +325,7 @@ export class DbConnectionImpl for (const procedure of def.procedures) { const procedureName = procedure.name; - const key = toCamelCase(procedureName); + const key = procedure.accessorName; const { serializeArgs, deserializeReturn } = this.#procedureSerializers[procedureName]; diff --git a/crates/bindings-typescript/src/sdk/table_cache.ts b/crates/bindings-typescript/src/sdk/table_cache.ts index 9f04ccad0c2..3b798b37725 100644 --- a/crates/bindings-typescript/src/sdk/table_cache.ts +++ b/crates/bindings-typescript/src/sdk/table_cache.ts @@ -92,7 +92,7 @@ export class TableCacheImpl< keyof TableDefForTableName['columns'] & string >; const index = this.#makeReadonlyIndex(this.tableDef, idxDef); - (this as any)[idx.name!] = index; + (this as any)[idxDef.name] = index; } } diff --git a/crates/bindings-typescript/src/server/runtime.ts b/crates/bindings-typescript/src/server/runtime.ts index 0ef03c9b2ce..c68f3d765d5 100644 --- a/crates/bindings-typescript/src/server/runtime.ts +++ b/crates/bindings-typescript/src/server/runtime.ts @@ -34,7 +34,7 @@ import { } from '../lib/reducers'; import { type UntypedSchemaDef } from '../lib/schema'; import { type RowType, type Table, type TableMethods } from '../lib/table'; -import { hasOwn, toCamelCase } from '../lib/util'; +import { hasOwn } from '../lib/util'; import { type AnonymousViewCtx, type ViewCtx } from './views'; import { isRowTypedQuery, makeQueryBuilder, toSql } from './query'; import type { DbView } from './db_view'; @@ -288,7 +288,7 @@ class ModuleHooksImpl implements ModuleHooks { return (this.#dbView_ ??= freeze( Object.fromEntries( Object.values(this.#schema.schemaType.tables).map(table => [ - toCamelCase(table.accessorName), + table.accessorName, makeTableView(this.#schema.typespace, table.tableDef), ]) ) diff --git a/crates/bindings-typescript/src/server/schema.test-d.ts b/crates/bindings-typescript/src/server/schema.test-d.ts index 9ed7cdedb95..6c7cc492862 100644 --- a/crates/bindings-typescript/src/server/schema.test-d.ts +++ b/crates/bindings-typescript/src/server/schema.test-d.ts @@ -7,17 +7,17 @@ const person = table( // name: 'person', indexes: [ { - name: 'id_name_idx', + accessor: 'id_name_idx', algorithm: 'btree', columns: ['id', 'name'] as const, }, { - name: 'id_name2_idx', + accessor: 'id_name2_idx', algorithm: 'btree', columns: ['id', 'name2'] as const, }, { - name: 'name_idx', + accessor: 'name_idx', algorithm: 'btree', columns: ['name'] as const, }, diff --git a/crates/bindings-typescript/src/server/schema.ts b/crates/bindings-typescript/src/server/schema.ts index 537edc73a26..e4de1fd2fb6 100644 --- a/crates/bindings-typescript/src/server/schema.ts +++ b/crates/bindings-typescript/src/server/schema.ts @@ -540,6 +540,15 @@ export function schema>( tableName: tableDef.sourceName, }); } + if (table.tableName) { + ctx.moduleDef.explicitNames.entries.push({ + tag: 'Table', + value: { + sourceName: accName, + canonicalName: table.tableName, + }, + }); + } } return { tables: tableSchemas } as TablesToSchema; }); diff --git a/crates/bindings-typescript/src/server/views.ts b/crates/bindings-typescript/src/server/views.ts index bc2f854833b..accd0c92563 100644 --- a/crates/bindings-typescript/src/server/views.ts +++ b/crates/bindings-typescript/src/server/views.ts @@ -143,8 +143,7 @@ export function registerView< ? AnonymousViewFn : ViewFn ) { - const name = opts.name ?? exportName; - const paramsBuilder = new RowBuilder(params, toPascalCase(name)); + const paramsBuilder = new RowBuilder(params, toPascalCase(exportName)); // Register return types if they are product types let returnType = ctx.registerTypesRecursively(ret).algebraicType; @@ -156,7 +155,7 @@ export function registerView< ); ctx.moduleDef.views.push({ - sourceName: name, + sourceName: exportName, index: (anon ? ctx.anonViews : ctx.views).length, isPublic: opts.public, isAnonymous: anon, @@ -164,6 +163,16 @@ export function registerView< returnType, }); + if (opts.name != null) { + ctx.moduleDef.explicitNames.entries.push({ + tag: 'Function', + value: { + sourceName: exportName, + canonicalName: opts.name, + }, + }); + } + // If it is an option, we wrap the function to make the return look like an array. if (returnType.tag == 'Sum') { const originalFn = fn; diff --git a/crates/bindings-typescript/test-app/src/module_bindings/index.ts b/crates/bindings-typescript/test-app/src/module_bindings/index.ts index 764a16bc480..a376f4f8caa 100644 --- a/crates/bindings-typescript/test-app/src/module_bindings/index.ts +++ b/crates/bindings-typescript/test-app/src/module_bindings/index.ts @@ -50,9 +50,7 @@ const tablesSchema = __schema({ player: __table( { name: 'player', - indexes: [ - { name: 'player_id_idx_btree', algorithm: 'btree', columns: ['id'] }, - ], + indexes: [{ name: 'id', algorithm: 'btree', columns: ['id'] }], constraints: [ { name: 'player_id_key', constraint: 'unique', columns: ['id'] }, ], @@ -62,13 +60,7 @@ const tablesSchema = __schema({ unindexed_player: __table( { name: 'unindexed_player', - indexes: [ - { - name: 'unindexed_player_id_idx_btree', - algorithm: 'btree', - columns: ['id'], - }, - ], + indexes: [{ name: 'id', algorithm: 'btree', columns: ['id'] }], constraints: [ { name: 'unindexed_player_id_key', @@ -83,11 +75,7 @@ const tablesSchema = __schema({ { name: 'user', indexes: [ - { - name: 'user_identity_idx_btree', - algorithm: 'btree', - columns: ['identity'], - }, + { name: 'identity', algorithm: 'btree', columns: ['identity'] }, ], constraints: [ { diff --git a/crates/bindings-typescript/test-react-router-app/src/module_bindings/index.ts b/crates/bindings-typescript/test-react-router-app/src/module_bindings/index.ts index dce7e5eee76..780ae5dfb34 100644 --- a/crates/bindings-typescript/test-react-router-app/src/module_bindings/index.ts +++ b/crates/bindings-typescript/test-react-router-app/src/module_bindings/index.ts @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit ed2408b3d1fb8b634b143fcc289b8bfda5d385ee). /* eslint-disable */ /* tslint:disable */ diff --git a/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/index.ts b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/index.ts new file mode 100644 index 00000000000..971fd23a7e8 --- /dev/null +++ b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/index.ts @@ -0,0 +1,13 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +/* eslint-disable */ +/* tslint:disable */ +import { type Infer as __Infer } from '../../../../src/index'; + +// Import all non-reducer types +import Counter from '../counter_type'; +import User from '../user_type'; + +export type Counter = __Infer; +export type User = __Infer; diff --git a/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/procedures.ts b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/procedures.ts new file mode 100644 index 00000000000..a39363a990e --- /dev/null +++ b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/procedures.ts @@ -0,0 +1,8 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +/* eslint-disable */ +/* tslint:disable */ +import { type Infer as __Infer } from '../../../../src/index'; + +// Import all procedure arg schemas diff --git a/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/reducers.ts b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/reducers.ts new file mode 100644 index 00000000000..636548e076f --- /dev/null +++ b/crates/bindings-typescript/test-react-router-app/src/module_bindings/types/reducers.ts @@ -0,0 +1,13 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +/* eslint-disable */ +/* tslint:disable */ +import { type Infer as __Infer } from '../../../../src/index'; + +// Import all reducer arg schemas +import ClearCounterReducer from '../clear_counter_reducer'; +import IncrementCounterReducer from '../increment_counter_reducer'; + +export type ClearCounterParams = __Infer; +export type IncrementCounterParams = __Infer; diff --git a/crates/bindings-typescript/tests/client_query.test.ts b/crates/bindings-typescript/tests/client_query.test.ts index 9da4eaee804..b29a44ba185 100644 --- a/crates/bindings-typescript/tests/client_query.test.ts +++ b/crates/bindings-typescript/tests/client_query.test.ts @@ -89,7 +89,7 @@ describe('ClientQuery.toSql', () => { it('renders semijoin queries without additional filters', () => { const sql = toSql( tables.player - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -104,7 +104,7 @@ describe('ClientQuery.toSql', () => { const sql = toSql( tables.player .where(row => row.id.eq(42)) - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -119,7 +119,7 @@ describe('ClientQuery.toSql', () => { const sql = toSql( tables.player .where(row => row.name.eq("O'Brian")) - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -134,7 +134,7 @@ describe('ClientQuery.toSql', () => { const sql = toSql( tables.player .where(row => and(row.name.eq('Alice'), row.id.eq(30))) - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -196,7 +196,7 @@ describe('ClientQuery.toSql', () => { it('basic semijoin', () => { const sql = toSql( tables.player - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -209,7 +209,7 @@ describe('ClientQuery.toSql', () => { it('basic left semijoin', () => { const sql = toSql( tables.player - .leftSemijoin(tables.unindexedPlayer, (player, other) => + .leftSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .build() @@ -252,7 +252,7 @@ describe('ClientQuery.toSql', () => { const sql = toSql( tables.player .where(row => row.id.eq(42)) - .rightSemijoin(tables.unindexedPlayer, (player, other) => + .rightSemijoin(tables.unindexed_player, (player, other) => other.id.eq(player.id) ) .where(row => row.name.eq('Gadget')) @@ -286,7 +286,7 @@ describe('useTable type compatibility', () => { it('rightSemijoin result is assignable to useTable query param', () => { assertType( - tables.player.rightSemijoin(tables.unindexedPlayer, (p, o) => + tables.player.rightSemijoin(tables.unindexed_player, (p, o) => o.id.eq(p.id) ) ); @@ -294,7 +294,7 @@ describe('useTable type compatibility', () => { it('leftSemijoin result is assignable to useTable query param', () => { assertType( - tables.player.leftSemijoin(tables.unindexedPlayer, (p, o) => + tables.player.leftSemijoin(tables.unindexed_player, (p, o) => o.id.eq(p.id) ) ); @@ -303,7 +303,7 @@ describe('useTable type compatibility', () => { it('semijoin with .where() is assignable to useTable query param', () => { assertType( tables.player - .rightSemijoin(tables.unindexedPlayer, (p, o) => o.id.eq(p.id)) + .rightSemijoin(tables.unindexed_player, (p, o) => o.id.eq(p.id)) .where(r => r.name.eq('test')) ); }); @@ -320,7 +320,7 @@ describe('useTable type compatibility', () => { it('semijoin result exposes toSql() returning string', () => { const sql: string = tables.player - .rightSemijoin(tables.unindexedPlayer, (p, o) => o.id.eq(p.id)) + .rightSemijoin(tables.unindexed_player, (p, o) => o.id.eq(p.id)) .toSql(); expect(typeof sql).toBe('string'); }); diff --git a/crates/bindings-typescript/tests/table_cache.test.ts b/crates/bindings-typescript/tests/table_cache.test.ts index 558faf06b48..a3b1f2becc6 100644 --- a/crates/bindings-typescript/tests/table_cache.test.ts +++ b/crates/bindings-typescript/tests/table_cache.test.ts @@ -101,13 +101,13 @@ function runTest( describe('TableCache', () => { describe('Unindexed player table', () => { - const newTable = () => new TableCacheImpl(tables.unindexedPlayer.tableDef); + const newTable = () => new TableCacheImpl(tables.unindexed_player.tableDef); const mkOperation = ( type: 'insert' | 'delete', row: Infer ) => { const rowId = AlgebraicType.intoMapKey( - { tag: 'Product', value: tables.unindexedPlayer.rowType }, + { tag: 'Product', value: tables.unindexed_player.rowType }, row ); return { diff --git a/crates/bindings/src/rt.rs b/crates/bindings/src/rt.rs index e99ac2df73a..266ffe16a44 100644 --- a/crates/bindings/src/rt.rs +++ b/crates/bindings/src/rt.rs @@ -747,7 +747,7 @@ pub fn register_table() { table = table.with_unique_constraint(col); } for index in T::INDEXES { - table = table.with_index(index.algo.into(), index.source_name); + table = table.with_index(index.algo.into(), index.source_name, index.accessor_name); } if let Some(primary_key) = T::PRIMARY_KEY { table = table.with_primary_key(primary_key); diff --git a/crates/bindings/src/table.rs b/crates/bindings/src/table.rs index c0cdb684f23..2fe380c1541 100644 --- a/crates/bindings/src/table.rs +++ b/crates/bindings/src/table.rs @@ -140,6 +140,7 @@ pub trait TableInternal: Sized { #[derive(Clone, Copy)] pub struct IndexDesc<'a> { pub source_name: &'a str, + pub accessor_name: &'a str, pub algo: IndexAlgo<'a>, } diff --git a/crates/codegen/src/csharp.rs b/crates/codegen/src/csharp.rs index d9e0e4292de..f40bf9148a0 100644 --- a/crates/codegen/src/csharp.rs +++ b/crates/codegen/src/csharp.rs @@ -517,7 +517,7 @@ impl Lang for Csharp<'_> { writeln!(output, "public sealed partial class RemoteTables"); indented_block(&mut output, |output| { - let csharp_table_name = table.name.deref().to_case(Case::Pascal); + let csharp_table_name = table.accessor_name.deref().to_case(Case::Pascal); let csharp_table_class_name = csharp_table_name.clone() + "Handle"; let table_type = type_ref_name(module, table.product_type_ref); @@ -639,7 +639,7 @@ impl Lang for Csharp<'_> { // Emit top-level Cols/IxCols helpers for the typed query builder. writeln!(output); - let cols_owner_name = table.name.deref().to_case(Case::Pascal); + let cols_owner_name = table.accessor_name.deref().to_case(Case::Pascal); let row_type = type_ref_name(module, table.product_type_ref); let product_type = module.typespace_for_generate()[table.product_type_ref] .as_product() @@ -724,7 +724,7 @@ impl Lang for Csharp<'_> { }); OutputFile { - filename: format!("Tables/{}.g.cs", table.name.deref().to_case(Case::Pascal)), + filename: format!("Tables/{}.g.cs", table.accessor_name.deref().to_case(Case::Pascal)), code: output.into_inner(), } } @@ -756,7 +756,7 @@ impl Lang for Csharp<'_> { writeln!(output, "public sealed partial class RemoteReducers : RemoteBase"); indented_block(&mut output, |output| { - let func_name_pascal_case = reducer.name.deref().to_case(Case::Pascal); + let func_name_pascal_case = reducer.accessor_name.deref().to_case(Case::Pascal); let delegate_separator = if reducer.params_for_generate.elements.is_empty() { "" } else { @@ -829,7 +829,7 @@ impl Lang for Csharp<'_> { autogen_csharp_product_common( module, output, - reducer.name.deref().to_case(Case::Pascal), + reducer.accessor_name.deref().to_case(Case::Pascal), &reducer.params_for_generate, "Reducer, IReducerArgs", |output| { @@ -842,7 +842,7 @@ impl Lang for Csharp<'_> { }); OutputFile { - filename: format!("Reducers/{}.g.cs", reducer.name.deref().to_case(Case::Pascal)), + filename: format!("Reducers/{}.g.cs", reducer.accessor_name.deref().to_case(Case::Pascal)), code: output.into_inner(), } } @@ -864,7 +864,7 @@ impl Lang for Csharp<'_> { writeln!(output, "public sealed partial class RemoteProcedures : RemoteBase"); indented_block(&mut output, |output| { - let func_name_pascal_case = procedure.name.deref().to_case(Case::Pascal); + let func_name_pascal_case = procedure.accessor_name.deref().to_case(Case::Pascal); let delegate_separator = if procedure.params_for_generate.elements.is_empty() { "" } else { @@ -925,14 +925,14 @@ impl Lang for Csharp<'_> { autogen_csharp_proc_return( module, output, - procedure.name.deref().to_case(Case::Pascal).to_string(), + procedure.accessor_name.deref().to_case(Case::Pascal).to_string(), &procedure.return_type_for_generate, self.namespace, ); autogen_csharp_product_common( module, output, - format!("{}Args", procedure.name.deref().to_case(Case::Pascal)), + format!("{}Args", procedure.accessor_name.deref().to_case(Case::Pascal)), &procedure.params_for_generate, "Procedure, IProcedureArgs", |output| { @@ -946,7 +946,10 @@ impl Lang for Csharp<'_> { }); OutputFile { - filename: format!("Procedures/{}.g.cs", procedure.name.deref().to_case(Case::Pascal)), + filename: format!( + "Procedures/{}.g.cs", + procedure.accessor_name.deref().to_case(Case::Pascal) + ), code: output.into_inner(), } } @@ -985,11 +988,11 @@ impl Lang for Csharp<'_> { indented_block(&mut output, |output| { writeln!(output, "public RemoteTables(DbConnection conn)"); indented_block(output, |output| { - for (table_name, _) in iter_table_names_and_types(module, options.visibility) { + for (_, accessor_name, _) in iter_table_names_and_types(module, options.visibility) { writeln!( output, "AddTable({} = new(conn));", - table_name.deref().to_case(Case::Pascal) + accessor_name.deref().to_case(Case::Pascal) ); } }); @@ -1004,8 +1007,8 @@ impl Lang for Csharp<'_> { writeln!(output); writeln!(output, "internal static string[] AllTablesSqlQueries() => new string[]"); indented_block(output, |output| { - for (table_name, _) in iter_table_names_and_types(module, options.visibility) { - let method_name = table_name.deref().to_case(Case::Pascal); + for (_, accessor_name, _) in iter_table_names_and_types(module, options.visibility) { + let method_name = accessor_name.deref().to_case(Case::Pascal); writeln!(output, "new QueryBuilder().From.{method_name}().ToSql(),"); } }); @@ -1015,10 +1018,10 @@ impl Lang for Csharp<'_> { writeln!(output, "public sealed class From"); indented_block(&mut output, |output| { - for (table_name, product_type_ref) in iter_table_names_and_types(module, options.visibility) { - let method_name = table_name.deref().to_case(Case::Pascal); + for (name, accessor_name, product_type_ref) in iter_table_names_and_types(module, options.visibility) { + let method_name = accessor_name.deref().to_case(Case::Pascal); let row_type = type_ref_name(module, product_type_ref); - let table_name_lit = format!("{:?}", table_name.deref()); + let table_name_lit = format!("{:?}", name.deref()); writeln!( output, "public global::SpacetimeDB.Table<{row_type}, {method_name}Cols, {method_name}IxCols> {method_name}() => new({table_name_lit}, new {method_name}Cols({table_name_lit}), new {method_name}IxCols({table_name_lit}));" @@ -1158,7 +1161,7 @@ impl Lang for Csharp<'_> { { indent_scope!(output); for reducer_name in - iter_reducers(module, options.visibility).map(|r| r.name.deref().to_case(Case::Pascal)) + iter_reducers(module, options.visibility).map(|r| r.accessor_name.deref().to_case(Case::Pascal)) { writeln!( output, @@ -1383,6 +1386,7 @@ fn autogen_csharp_sum(module: &ModuleDef, sum_type_name: String, sum_type: &SumT write!(output, ","); } writeln!(output); + let variant_name = variant_name.deref().to_case(Case::Pascal); write!(output, "{} {variant_name}", ty_fmt(module, variant_ty)); } // If we have fewer than 2 variants, we need to add some dummy variants to make the tuple work. @@ -1412,6 +1416,7 @@ fn autogen_csharp_plain_enum(enum_type_name: String, enum_type: &PlainEnumTypeDe writeln!(output, "public enum {enum_type_name}"); indented_block(&mut output, |output| { for variant in &*enum_type.variants { + let variant = variant.deref().to_case(Case::Pascal); writeln!(output, "{variant},"); } }); diff --git a/crates/codegen/src/rust.rs b/crates/codegen/src/rust.rs index 2f40da1a0a2..f122eef6ca3 100644 --- a/crates/codegen/src/rust.rs +++ b/crates/codegen/src/rust.rs @@ -126,12 +126,12 @@ impl __sdk::InModule for {type_name} {{ ); let table_name = table.name.deref(); - let table_name_pascalcase = table.name.deref().to_case(Case::Pascal); + let table_name_pascalcase = table.accessor_name.deref().to_case(Case::Pascal); let table_handle = table_name_pascalcase.clone() + "TableHandle"; let insert_callback_id = table_name_pascalcase.clone() + "InsertCallbackId"; let delete_callback_id = table_name_pascalcase.clone() + "DeleteCallbackId"; - let accessor_trait = table_access_trait_name(&table.name); - let accessor_method = table_method_name(&table.name); + let accessor_trait = table_access_trait_name(&table.accessor_name); + let accessor_method = table_method_name(&table.accessor_name); write!( out, @@ -368,7 +368,7 @@ pub(super) fn parse_table_update( implement_query_table_accessor(table, out, &row_type).expect("failed to implement query table accessor"); OutputFile { - filename: table_module_name(&table.name) + ".rs", + filename: table_module_name(&table.accessor_name) + ".rs", code: output.into_inner(), } } @@ -392,8 +392,8 @@ pub(super) fn parse_table_update( let reducer_name = reducer.name.deref(); let func_name = reducer_function_name(reducer); - let args_type = function_args_type_name(&reducer.name); - let enum_variant_name = reducer_variant_name(&reducer.name); + let args_type = function_args_type_name(&reducer.accessor_name); + let enum_variant_name = reducer_variant_name(&reducer.accessor_name); // Define an "args struct" for the reducer. // This is not user-facing (note the `pub(super)` visibility); @@ -506,7 +506,7 @@ impl {func_name} for super::RemoteReducers {{ ); OutputFile { - filename: reducer_module_name(&reducer.name) + ".rs", + filename: reducer_module_name(&reducer.accessor_name) + ".rs", code: output.into_inner(), } } @@ -529,7 +529,7 @@ impl {func_name} for super::RemoteReducers {{ let procedure_name = procedure.name.deref(); let func_name = procedure_function_name(procedure); let func_name_with_callback = procedure_function_with_callback_name(procedure); - let args_type = function_args_type_name(&procedure.name); + let args_type = function_args_type_name(&procedure.accessor_name); let res_ty_name = type_name(module, &procedure.return_type_for_generate); // Define an "args struct" as a serialization helper. @@ -593,7 +593,7 @@ impl {func_name} for super::RemoteProcedures {{ ); OutputFile { - filename: procedure_module_name(&procedure.name) + ".rs", + filename: procedure_module_name(&procedure.accessor_name) + ".rs", code: output.into_inner(), } } @@ -735,7 +735,7 @@ pub struct {cols_ix} {{" .iter() .find(|col| col.col_id == cols.as_singleton().expect("singleton column")) .unwrap(); - let field_name = column.name.deref(); + let field_name = column.accessor_name.deref(); let field_type = type_name(module, &column.ty_for_generate); writeln!( @@ -763,11 +763,12 @@ impl __sdk::__query_builder::HasIxCols for {struct_name} {{ .iter() .find(|col| col.col_id == cols.as_singleton().expect("singleton column")) .expect("singleton column"); - let field_name = column.name.deref(); + let field_name = column.accessor_name.deref(); + let col_name = column.name.deref(); writeln!( out, - " {field_name}: __sdk::__query_builder::IxCol::new(table_name, {field_name:?}),", + " {field_name}: __sdk::__query_builder::IxCol::new(table_name, {col_name:?}),", )?; } writeln!( @@ -791,7 +792,8 @@ impl __sdk::__query_builder::HasIxCols for {struct_name} {{ pub fn implement_query_table_accessor(table: &TableDef, out: &mut impl Write, struct_name: &String) -> fmt::Result { // NEW: Generate query table accessor trait and implementation - let accessor_method = table.name.clone(); + let accessor_method = table_method_name(&table.accessor_name); + let table_name = table.name.deref(); let query_accessor_trait = accessor_method.to_string() + "QueryTableAccess"; writeln!( @@ -809,7 +811,7 @@ pub fn implement_query_table_accessor(table: &TableDef, out: &mut impl Write, st impl {query_accessor_trait} for __sdk::QueryTableAccessor {{ fn {accessor_method}(&self) -> __sdk::__query_builder::Table<{struct_name}> {{ - __sdk::__query_builder::Table::new({accessor_method:?}) + __sdk::__query_builder::Table::new({table_name:?}) }} }} " @@ -1113,7 +1115,7 @@ fn reducer_module_name(reducer_name: &ReducerName) -> String { } fn reducer_function_name(reducer: &ReducerDef) -> String { - reducer.name.deref().to_case(Case::Snake) + reducer.accessor_name.deref().to_case(Case::Snake) } fn procedure_module_name(procedure_name: &Identifier) -> String { @@ -1121,7 +1123,7 @@ fn procedure_module_name(procedure_name: &Identifier) -> String { } fn procedure_function_name(procedure: &ProcedureDef) -> String { - procedure.name.deref().to_case(Case::Snake) + procedure.accessor_name.deref().to_case(Case::Snake) } fn procedure_function_with_callback_name(procedure: &ProcedureDef) -> String { @@ -1132,10 +1134,10 @@ fn procedure_function_with_callback_name(procedure: &ProcedureDef) -> String { fn iter_module_names(module: &ModuleDef, visibility: CodegenVisibility) -> impl Iterator + '_ { itertools::chain!( iter_types(module).map(|ty| type_module_name(&ty.accessor_name)), - iter_reducers(module, visibility).map(|r| reducer_module_name(&r.name)), - iter_tables(module, visibility).map(|tbl| table_module_name(&tbl.name)), - iter_views(module).map(|view| table_module_name(&view.name)), - iter_procedures(module, visibility).map(|proc| procedure_module_name(&proc.name)), + iter_reducers(module, visibility).map(|r| reducer_module_name(&r.accessor_name)), + iter_tables(module, visibility).map(|tbl| table_module_name(&tbl.accessor_name)), + iter_views(module).map(|view| table_module_name(&view.accessor_name)), + iter_procedures(module, visibility).map(|proc| procedure_module_name(&proc.accessor_name)), ) } @@ -1153,8 +1155,8 @@ fn print_module_reexports(module: &ModuleDef, visibility: CodegenVisibility, out let type_name = collect_case(Case::Pascal, ty.accessor_name.name_segments()); writeln!(out, "pub use {mod_name}::{type_name};") } - for (table_name, _) in iter_table_names_and_types(module, visibility) { - let mod_name = table_module_name(table_name); + for (_, accessor_name, _) in iter_table_names_and_types(module, visibility) { + let mod_name = table_module_name(accessor_name); // TODO: More precise reexport: we want: // - The trait name. // - The insert, delete and possibly update callback ids. @@ -1163,12 +1165,12 @@ fn print_module_reexports(module: &ModuleDef, visibility: CodegenVisibility, out writeln!(out, "pub use {mod_name}::*;"); } for reducer in iter_reducers(module, visibility) { - let mod_name = reducer_module_name(&reducer.name); + let mod_name = reducer_module_name(&reducer.accessor_name); let reducer_trait_name = reducer_function_name(reducer); writeln!(out, "pub use {mod_name}::{reducer_trait_name};"); } for procedure in iter_procedures(module, visibility) { - let mod_name = procedure_module_name(&procedure.name); + let mod_name = procedure_module_name(&procedure.accessor_name); let trait_name = procedure_function_name(procedure); writeln!(out, "pub use {mod_name}::{trait_name};"); } @@ -1191,7 +1193,7 @@ fn print_reducer_enum_defn(module: &ModuleDef, visibility: CodegenVisibility, ou "pub enum Reducer {", |out| { for reducer in iter_reducers(module, visibility) { - write!(out, "{} ", reducer_variant_name(&reducer.name)); + write!(out, "{} ", reducer_variant_name(&reducer.accessor_name)); if !reducer.params_for_generate.elements.is_empty() { // If the reducer has any arguments, generate a "struct variant," // like `Foo { bar: Baz, }`. @@ -1224,7 +1226,7 @@ impl __sdk::InModule for Reducer {{ "match self {", |out| { for reducer in iter_reducers(module, visibility) { - write!(out, "Reducer::{}", reducer_variant_name(&reducer.name)); + write!(out, "Reducer::{}", reducer_variant_name(&reducer.accessor_name)); if !reducer.params_for_generate.elements.is_empty() { // Because we're emitting unit variants when the payload is empty, // we will emit different patterns for empty vs non-empty variants. @@ -1254,7 +1256,7 @@ impl __sdk::InModule for Reducer {{ "match self {", |out| { for reducer in iter_reducers(module, visibility) { - write!(out, "Reducer::{}", reducer_variant_name(&reducer.name)); + write!(out, "Reducer::{}", reducer_variant_name(&reducer.accessor_name)); if !reducer.params_for_generate.elements.is_empty() { // Because we're emitting unit variants when the payload is empty, // we will emit different patterns for empty vs non-empty variants. @@ -1277,8 +1279,8 @@ impl __sdk::InModule for Reducer {{ write!( out, " => __sats::bsatn::to_vec(&{}::{}", - reducer_module_name(&reducer.name), - function_args_type_name(&reducer.name) + reducer_module_name(&reducer.accessor_name), + function_args_type_name(&reducer.accessor_name) ); out.delimited_block( " {", @@ -1313,11 +1315,11 @@ fn print_db_update_defn(module: &ModuleDef, visibility: CodegenVisibility, out: out.delimited_block( "pub struct DbUpdate {", |out| { - for (table_name, product_type_ref) in iter_table_names_and_types(module, visibility) { + for (_, accessor_name, product_type_ref) in iter_table_names_and_types(module, visibility) { writeln!( out, "{}: __sdk::TableUpdate<{}>,", - table_method_name(table_name), + table_method_name(accessor_name), type_ref_name(module, product_type_ref), ); } @@ -1337,13 +1339,13 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { match &table_update.table_name[..] { ", |out| { - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (name, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!( out, "{:?} => db_update.{}.append({}::parse_table_update(table_update)?),", - table_name.deref(), - table_method_name(table_name), - table_module_name(table_name), + name.deref(), + table_method_name(accessor_name), + table_module_name(accessor_name), ); } }, @@ -1382,7 +1384,7 @@ impl __sdk::InModule for DbUpdate {{ ", |out| { for table in iter_tables(module, visibility) { - let field_name = table_method_name(&table.name); + let field_name = table_method_name(&table.accessor_name); if table.is_event { // Event tables bypass the client cache entirely. // We construct an applied diff directly from the inserts, @@ -1395,7 +1397,7 @@ impl __sdk::InModule for DbUpdate {{ let with_updates = table .primary_key .map(|col| { - let pk_field = table.get_column(col).unwrap().name.deref().to_case(Case::Snake); + let pk_field = table.get_column(col).unwrap().accessor_name.deref().to_case(Case::Snake); format!(".with_updates_by_pk(|row| &row.{pk_field})") }) .unwrap_or_default(); @@ -1409,7 +1411,7 @@ impl __sdk::InModule for DbUpdate {{ } } for view in iter_views(module) { - let field_name = table_method_name(&view.name); + let field_name = table_method_name(&view.accessor_name); writeln!( out, "diff.{field_name} = cache.apply_diff_to_table::<{}>({:?}, &self.{field_name});", @@ -1433,12 +1435,12 @@ impl __sdk::InModule for DbUpdate {{ out.delimited_block( "match &table_rows.table[..] {", |out| { - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (name, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!( out, "{:?} => db_update.{}.append(__sdk::parse_row_list_as_inserts(table_rows.rows)?),", - table_name.deref(), - table_method_name(table_name), + name.deref(), + table_method_name(accessor_name), ); } writeln!( @@ -1466,12 +1468,12 @@ impl __sdk::InModule for DbUpdate {{ out.delimited_block( "match &table_rows.table[..] {", |out| { - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (name, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!( out, "{:?} => db_update.{}.append(__sdk::parse_row_list_as_deletes(table_rows.rows)?),", - table_name.deref(), - table_method_name(table_name), + name.deref(), + table_method_name(accessor_name), ); } writeln!( @@ -1500,11 +1502,11 @@ fn print_applied_diff_defn(module: &ModuleDef, visibility: CodegenVisibility, ou out.delimited_block( "pub struct AppliedDiff<'r> {", |out| { - for (table_name, product_type_ref) in iter_table_names_and_types(module, visibility) { + for (_, accessor_name, product_type_ref) in iter_table_names_and_types(module, visibility) { writeln!( out, "{}: __sdk::TableAppliedDiff<'r, {}>,", - table_method_name(table_name), + table_method_name(accessor_name), type_ref_name(module, product_type_ref), ); } @@ -1533,13 +1535,13 @@ impl __sdk::InModule for AppliedDiff<'_> {{ out.delimited_block( "fn invoke_row_callbacks(&self, event: &EventContext, callbacks: &mut __sdk::DbCallbacks) {", |out| { - for (table_name, product_type_ref) in iter_table_names_and_types(module, visibility) { + for (name, accessor_name, product_type_ref) in iter_table_names_and_types(module, visibility) { writeln!( out, "callbacks.invoke_table_row_callbacks::<{}>({:?}, &self.{}, event);", type_ref_name(module, product_type_ref), - table_name.deref(), - table_method_name(table_name), + name.deref(), + table_method_name(accessor_name), ); } }, @@ -1576,8 +1578,12 @@ type QueryBuilder = __sdk::QueryBuilder; out.delimited_block( "fn register_tables(client_cache: &mut __sdk::ClientCache) {", |out| { - for (table_name, _) in iter_table_names_and_types(module, visibility) { - writeln!(out, "{}::register_table(client_cache);", table_module_name(table_name)); + for (_, accessor_name, _) in iter_table_names_and_types(module, visibility) { + writeln!( + out, + "{}::register_table(client_cache);", + table_module_name(accessor_name) + ); } }, "}\n", @@ -1585,8 +1591,8 @@ type QueryBuilder = __sdk::QueryBuilder; out.delimited_block( "const ALL_TABLE_NAMES: &'static [&'static str] = &[", |out| { - for (table_name, _) in iter_table_names_and_types(module, visibility) { - writeln!(out, "\"{table_name}\","); + for (name, _, _) in iter_table_names_and_types(module, visibility) { + writeln!(out, "\"{name}\","); } }, "];\n", diff --git a/crates/codegen/src/typescript.rs b/crates/codegen/src/typescript.rs index 9d8b5aa471e..9c239af8950 100644 --- a/crates/codegen/src/typescript.rs +++ b/crates/codegen/src/typescript.rs @@ -80,7 +80,7 @@ impl Lang for TypeScript { out.dedent(1); writeln!(out, "}});"); OutputFile { - filename: table_module_name(&table.name) + ".ts", + filename: table_module_name(&table.accessor_name) + ".ts", code: output.into_inner(), } } @@ -104,7 +104,7 @@ impl Lang for TypeScript { define_body_for_reducer(module, out, &reducer.params_for_generate.elements); OutputFile { - filename: reducer_module_name(&reducer.name) + ".ts", + filename: reducer_module_name(&reducer.accessor_name) + ".ts", code: output.into_inner(), } } @@ -143,7 +143,7 @@ impl Lang for TypeScript { write_type_builder(module, out, &procedure.return_type_for_generate).unwrap(); OutputFile { - filename: procedure_module_name(&procedure.name) + ".ts", + filename: procedure_module_name(&procedure.accessor_name) + ".ts", code: output.into_inner(), } } @@ -161,26 +161,24 @@ impl Lang for TypeScript { // Skip system-defined reducers continue; } - let reducer_name = &reducer.name; - let reducer_module_name = reducer_module_name(reducer_name); - let args_type = reducer_args_type_name(reducer_name); + let reducer_module_name = reducer_module_name(&reducer.accessor_name); + let args_type = reducer_args_type_name(&reducer.accessor_name); writeln!(out, "import {args_type} from \"./{reducer_module_name}\";"); } writeln!(out); writeln!(out, "// Import all procedure arg schemas"); for procedure in iter_procedures(module, options.visibility) { - let procedure_name = &procedure.name; - let procedure_module_name = procedure_module_name(procedure_name); - let args_type = procedure_args_type_name(&procedure.name); + let procedure_module_name = procedure_module_name(&procedure.accessor_name); + let args_type = procedure_args_type_name(&procedure.accessor_name); writeln!(out, "import * as {args_type} from \"./{procedure_module_name}\";"); } writeln!(out); writeln!(out, "// Import all table schema definitions"); - for (table_name, _) in iter_table_names_and_types(module, options.visibility) { - let table_module_name = table_module_name(table_name); - let table_name_pascalcase = table_name.deref().to_case(Case::Pascal); + for (_, accessor_name, _) in iter_table_names_and_types(module, options.visibility) { + let table_module_name = table_module_name(accessor_name); + let table_name_pascalcase = accessor_name.deref().to_case(Case::Pascal); // TODO: This really shouldn't be necessary. We could also have `table()` accept // `__t.object(...)`s. writeln!(out, "import {table_name_pascalcase}Row from \"./{table_module_name}\";"); @@ -195,8 +193,8 @@ impl Lang for TypeScript { out.indent(1); for table in iter_tables(module, options.visibility) { let type_ref = table.product_type_ref; - let table_name_pascalcase = table.name.deref().to_case(Case::Pascal); - writeln!(out, "{}: __table({{", table.name); + let table_name_pascalcase = table.accessor_name.deref().to_case(Case::Pascal); + writeln!(out, "{}: __table({{", table.accessor_name); out.indent(1); write_table_opts( module, @@ -212,8 +210,8 @@ impl Lang for TypeScript { } for view in iter_views(module) { let type_ref = view.product_type_ref; - let view_name_pascalcase = view.name.deref().to_case(Case::Pascal); - writeln!(out, "{}: __table({{", view.name); + let view_name_pascalcase = view.accessor_name.deref().to_case(Case::Pascal); + writeln!(out, "{}: __table({{", view.accessor_name); out.indent(1); write_table_opts(module, out, type_ref, &view.name, iter::empty(), iter::empty(), false); out.dedent(1); @@ -231,9 +229,8 @@ impl Lang for TypeScript { // Skip system-defined reducers continue; } - let reducer_name = &reducer.name; - let args_type = reducer_args_type_name(&reducer.name); - writeln!(out, "__reducerSchema(\"{}\", {}),", reducer_name, args_type); + let args_type = reducer_args_type_name(&reducer.accessor_name); + writeln!(out, "__reducerSchema(\"{}\", {}),", reducer.name, args_type); } out.dedent(1); writeln!(out, ");"); @@ -246,11 +243,11 @@ impl Lang for TypeScript { writeln!(out, "const proceduresSchema = __procedures("); out.indent(1); for procedure in iter_procedures(module, options.visibility) { - let procedure_name = &procedure.name; - let args_type = procedure_args_type_name(&procedure.name); + let args_type = procedure_args_type_name(&procedure.accessor_name); writeln!( out, - "__procedureSchema(\"{procedure_name}\", {args_type}.params, {args_type}.returnType),", + "__procedureSchema(\"{}\", {args_type}.params, {args_type}.returnType),", + procedure.name, ); } out.dedent(1); @@ -405,16 +402,15 @@ fn generate_reducers_file(module: &ModuleDef, options: &CodegenOptions) -> Outpu writeln!(out); writeln!(out, "// Import all reducer arg schemas"); for reducer in iter_reducers(module, options.visibility) { - let reducer_name = &reducer.name; - let reducer_module_name = reducer_module_name(reducer_name); - let args_type = reducer_args_type_name(&reducer.name); + let reducer_module_name = reducer_module_name(&reducer.accessor_name); + let args_type = reducer_args_type_name(&reducer.accessor_name); writeln!(out, "import {args_type} from \"../{reducer_module_name}\";"); } writeln!(out); for reducer in iter_reducers(module, options.visibility) { - let reducer_name_pascalcase = reducer.name.deref().to_case(Case::Pascal); - let args_type = reducer_args_type_name(&reducer.name); + let reducer_name_pascalcase = reducer.accessor_name.deref().to_case(Case::Pascal); + let args_type = reducer_args_type_name(&reducer.accessor_name); writeln!( out, "export type {reducer_name_pascalcase}Params = __Infer;" @@ -439,16 +435,15 @@ fn generate_procedures_file(module: &ModuleDef, options: &CodegenOptions) -> Out writeln!(out); writeln!(out, "// Import all procedure arg schemas"); for procedure in iter_procedures(module, options.visibility) { - let procedure_name = &procedure.name; - let procedure_module_name = procedure_module_name(procedure_name); - let args_type = procedure_args_type_name(&procedure.name); + let procedure_module_name = procedure_module_name(&procedure.accessor_name); + let args_type = procedure_args_type_name(&procedure.accessor_name); writeln!(out, "import * as {args_type} from \"../{procedure_module_name}\";"); } writeln!(out); for procedure in iter_procedures(module, options.visibility) { - let procedure_name_pascalcase = procedure.name.deref().to_case(Case::Pascal); - let args_type = procedure_args_type_name(&procedure.name); + let procedure_name_pascalcase = procedure.accessor_name.deref().to_case(Case::Pascal); + let args_type = procedure_args_type_name(&procedure.accessor_name); writeln!( out, "export type {procedure_name_pascalcase}Args = __Infer;" @@ -475,7 +470,7 @@ fn generate_types_file(module: &ModuleDef) -> OutputFile { let reducer_type_names = module .reducers() - .map(|reducer| reducer.name.deref().to_case(Case::Pascal)) + .map(|reducer| reducer.accessor_name.deref().to_case(Case::Pascal)) .collect::>(); for ty in iter_types(module) { @@ -861,7 +856,15 @@ fn define_body_for_sum( write!(out, ": __TypeBuilder<__AlgebraicTypeType, __AlgebraicTypeType>"); } writeln!(out, " = __t.enum(\"{name}\", {{"); - out.with_indent(|out| write_object_type_builder_fields(module, out, variants, None, false, false).unwrap()); + // Convert variant names to PascalCase + let pascal_variants: Vec<(Identifier, AlgebraicTypeUse)> = variants + .iter() + .map(|(ident, ty)| { + let pascal = ident.deref().to_case(Case::Pascal); + (Identifier::for_test(pascal), ty.clone()) + }) + .collect(); + out.with_indent(|out| write_object_type_builder_fields(module, out, &pascal_variants, None, false, false).unwrap()); writeln!(out, "}});"); writeln!(out, "export type {name} = __Infer;"); out.newline(); diff --git a/crates/codegen/src/unrealcpp.rs b/crates/codegen/src/unrealcpp.rs index 8d15bdf647f..c4b9fd81efb 100644 --- a/crates/codegen/src/unrealcpp.rs +++ b/crates/codegen/src/unrealcpp.rs @@ -865,8 +865,8 @@ impl Lang for UnrealCpp<'_> { writeln!(client_h); writeln!(client_h, "/** Forward declaration for tables */"); - for (table_name, _) in iter_table_names_and_types(module, options.visibility) { - writeln!(client_h, "class U{}Table;", table_name.deref().to_case(Case::Pascal)); + for (_, accessor_name, _) in iter_table_names_and_types(module, options.visibility) { + writeln!(client_h, "class U{}Table;", accessor_name.deref().to_case(Case::Pascal)); } writeln!(client_h, "/***/"); writeln!(client_h); @@ -972,10 +972,10 @@ impl Lang for UnrealCpp<'_> { // Build table includes let table_includes: Vec = iter_table_names_and_types(module, options.visibility) - .map(|(table_name, _)| { + .map(|(_, accessor_name, _)| { format!( "ModuleBindings/Tables/{}Table.g.h", - table_name.deref().to_case(Case::Pascal) //type_ref_name(module, product_type_ref) + accessor_name.deref().to_case(Case::Pascal) //type_ref_name(module, product_type_ref) ) }) .collect(); @@ -2385,13 +2385,13 @@ fn generate_remote_tables_class( writeln!(output); // Generate table handle properties - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (_, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!(output, " UPROPERTY(BlueprintReadOnly, Category=\"SpacetimeDB\")"); writeln!( output, " U{}Table* {};", - table_name.deref().to_case(Case::Pascal), - table_name.deref().to_case(Case::Pascal) + accessor_name.deref().to_case(Case::Pascal), + accessor_name.deref().to_case(Case::Pascal) ); writeln!(output); } @@ -3066,16 +3066,16 @@ fn generate_client_implementation( writeln!(output, "\tProcedures->Conn = this;"); writeln!(output); - for (table_name, product_type_ref) in iter_table_names_and_types(module, visibility) { + for (name, accessor_name, product_type_ref) in iter_table_names_and_types(module, visibility) { let struct_name = type_ref_name(module, product_type_ref); - let table_name = table_name.deref(); + let accessor = accessor_name.deref(); writeln!( output, "\tRegisterTable(TEXT(\"{}\"), Db->{});", struct_name, - table_name.to_case(Case::Pascal), - table_name, - table_name.to_case(Case::Pascal) + accessor.to_case(Case::Pascal), + name.deref(), + accessor.to_case(Case::Pascal) ); } writeln!(output, "}}"); @@ -3122,22 +3122,22 @@ fn generate_client_implementation( writeln!(output, "{{"); writeln!(output); writeln!(output, "\t/** Creating tables */"); - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (_, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!( output, "\t{} = NewObject(this);", - table_name.deref().to_case(Case::Pascal), - table_name.deref().to_case(Case::Pascal) + accessor_name.deref().to_case(Case::Pascal), + accessor_name.deref().to_case(Case::Pascal) ); } writeln!(output, "\t/**/"); writeln!(output); writeln!(output, "\t/** Initialization */"); - for (table_name, _) in iter_table_names_and_types(module, visibility) { + for (_, accessor_name, _) in iter_table_names_and_types(module, visibility) { writeln!( output, "\t{}->PostInitialize();", - table_name.deref().to_case(Case::Pascal) + accessor_name.deref().to_case(Case::Pascal) ); } writeln!(output, "\t/**/"); @@ -4036,7 +4036,7 @@ fn collect_wrapper_types( } // Collect from all tables - for (_, product_type_ref) in iter_table_names_and_types(module, visibility) { + for (_, _, product_type_ref) in iter_table_names_and_types(module, visibility) { let product_type = module.typespace_for_generate()[product_type_ref].as_product().unwrap(); for (_, field_ty) in &product_type.elements { collect_from_type(module, field_ty, &mut optional_types, &mut result_types); diff --git a/crates/codegen/src/util.rs b/crates/codegen/src/util.rs index f4b7dfe5f7f..c6c866e2d8c 100644 --- a/crates/codegen/src/util.rs +++ b/crates/codegen/src/util.rs @@ -168,20 +168,27 @@ pub(super) fn iter_views(module: &ModuleDef) -> impl Iterator { /// Iterate over the names of all the tables and views defined by the module, in alphabetical order. /// +/// Returns `(name, accessor_name, product_type_ref)` for each table/view. +/// Use `name` for protocol/wire communication; use `accessor_name` for generated identifiers. +/// /// Sorting is necessary to have deterministic reproducible codegen. pub(super) fn iter_table_names_and_types( module: &ModuleDef, visibility: CodegenVisibility, -) -> impl Iterator { +) -> impl Iterator { module .tables() .filter(move |table| match visibility { CodegenVisibility::IncludePrivate => true, CodegenVisibility::OnlyPublic => table.table_access == TableAccess::Public, }) - .map(|def| (&def.name, def.product_type_ref)) - .chain(module.views().map(|def| (&def.name, def.product_type_ref))) - .sorted_by_key(|(name, _)| *name) + .map(|def| (&def.name, &def.accessor_name, def.product_type_ref)) + .chain( + module + .views() + .map(|def| (&def.name, &def.accessor_name, def.product_type_ref)), + ) + .sorted_by_key(|(_, accessor_name, _)| *accessor_name) } pub(super) fn iter_unique_cols<'a>( diff --git a/crates/codegen/tests/snapshots/codegen__codegen_csharp.snap b/crates/codegen/tests/snapshots/codegen__codegen_csharp.snap index b497dd1ad31..ca3a472b158 100644 --- a/crates/codegen/tests/snapshots/codegen__codegen_csharp.snap +++ b/crates/codegen/tests/snapshots/codegen__codegen_csharp.snap @@ -1,6 +1,5 @@ --- source: crates/codegen/tests/codegen.rs -assertion_line: 37 expression: outfiles --- "Procedures/GetMySchemaViaHttp.g.cs" = ''' @@ -972,11 +971,11 @@ namespace SpacetimeDB { [DataMember(Name = "arg")] public TestA Arg; - [DataMember(Name = "arg2")] + [DataMember(Name = "arg_2")] public TestB Arg2; - [DataMember(Name = "arg3")] + [DataMember(Name = "arg_3")] public NamespaceTestC Arg3; - [DataMember(Name = "arg4")] + [DataMember(Name = "arg_4")] public NamespaceTestF Arg4; public Test( @@ -1720,38 +1719,38 @@ namespace SpacetimeDB { protected override string RemoteTableName => "logged_out_player"; - public sealed class LoggedOutPlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdentityUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity; - public LoggedOutPlayerIdentityIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } + public IdentityUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } } - public readonly LoggedOutPlayerIdentityIdxBtreeUniqueIndex LoggedOutPlayerIdentityIdxBtree; + public readonly IdentityUniqueIndex Identity; - public sealed class LoggedOutPlayerNameIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class NameUniqueIndex : UniqueIndexBase { protected override string GetKey(Player row) => row.Name; - public LoggedOutPlayerNameIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } + public NameUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } } - public readonly LoggedOutPlayerNameIdxBtreeUniqueIndex LoggedOutPlayerNameIdxBtree; + public readonly NameUniqueIndex Name; - public sealed class LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class PlayerIdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(Player row) => row.PlayerId; - public LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } + public PlayerIdUniqueIndex(LoggedOutPlayerHandle table) : base(table) { } } - public readonly LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex LoggedOutPlayerPlayerIdIdxBtree; + public readonly PlayerIdUniqueIndex PlayerId; internal LoggedOutPlayerHandle(DbConnection conn) : base(conn) { - LoggedOutPlayerIdentityIdxBtree = new(this); - LoggedOutPlayerNameIdxBtree = new(this); - LoggedOutPlayerPlayerIdIdxBtree = new(this); + Identity = new(this); + Name = new(this); + PlayerId = new(this); } protected override object GetPrimaryKey(Player row) => row.Identity; @@ -1860,28 +1859,28 @@ namespace SpacetimeDB { protected override string RemoteTableName => "person"; - public sealed class PersonAgeIdxBtreeIndex : BTreeIndexBase + public sealed class AgeIndex : BTreeIndexBase { protected override byte GetKey(Person row) => row.Age; - public PersonAgeIdxBtreeIndex(PersonHandle table) : base(table) { } + public AgeIndex(PersonHandle table) : base(table) { } } - public readonly PersonAgeIdxBtreeIndex PersonAgeIdxBtree; + public readonly AgeIndex Age; - public sealed class PersonIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override uint GetKey(Person row) => row.Id; - public PersonIdIdxBtreeUniqueIndex(PersonHandle table) : base(table) { } + public IdUniqueIndex(PersonHandle table) : base(table) { } } - public readonly PersonIdIdxBtreeUniqueIndex PersonIdIdxBtree; + public readonly IdUniqueIndex Id; internal PersonHandle(DbConnection conn) : base(conn) { - PersonAgeIdxBtree = new(this); - PersonIdIdxBtree = new(this); + Age = new(this); + Id = new(this); } protected override object GetPrimaryKey(Person row) => row.Id; @@ -1937,38 +1936,38 @@ namespace SpacetimeDB { protected override string RemoteTableName => "player"; - public sealed class PlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdentityUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity; - public PlayerIdentityIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public IdentityUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerIdentityIdxBtreeUniqueIndex PlayerIdentityIdxBtree; + public readonly IdentityUniqueIndex Identity; - public sealed class PlayerNameIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class NameUniqueIndex : UniqueIndexBase { protected override string GetKey(Player row) => row.Name; - public PlayerNameIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public NameUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerNameIdxBtreeUniqueIndex PlayerNameIdxBtree; + public readonly NameUniqueIndex Name; - public sealed class PlayerPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class PlayerIdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(Player row) => row.PlayerId; - public PlayerPlayerIdIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public PlayerIdUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerPlayerIdIdxBtreeUniqueIndex PlayerPlayerIdIdxBtree; + public readonly PlayerIdUniqueIndex PlayerId; internal PlayerHandle(DbConnection conn) : base(conn) { - PlayerIdentityIdxBtree = new(this); - PlayerNameIdxBtree = new(this); - PlayerPlayerIdIdxBtree = new(this); + Identity = new(this); + Name = new(this); + PlayerId = new(this); } protected override object GetPrimaryKey(Player row) => row.Identity; diff --git a/crates/codegen/tests/snapshots/codegen__codegen_typescript.snap b/crates/codegen/tests/snapshots/codegen__codegen_typescript.snap index bbe0cff1f37..674b38694c8 100644 --- a/crates/codegen/tests/snapshots/codegen__codegen_typescript.snap +++ b/crates/codegen/tests/snapshots/codegen__codegen_typescript.snap @@ -190,13 +190,13 @@ const tablesSchema = __schema({ logged_out_player: __table({ name: 'logged_out_player', indexes: [ - { name: 'logged_out_player_identity_idx_btree', algorithm: 'btree', columns: [ + { name: 'identity', algorithm: 'btree', columns: [ 'identity', ] }, - { name: 'logged_out_player_name_idx_btree', algorithm: 'btree', columns: [ + { name: 'name', algorithm: 'btree', columns: [ 'name', ] }, - { name: 'logged_out_player_player_id_idx_btree', algorithm: 'btree', columns: [ + { name: 'player_id', algorithm: 'btree', columns: [ 'playerId', ] }, ], @@ -209,10 +209,10 @@ const tablesSchema = __schema({ person: __table({ name: 'person', indexes: [ - { name: 'person_age_idx_btree', algorithm: 'btree', columns: [ + { name: 'age', algorithm: 'btree', columns: [ 'age', ] }, - { name: 'person_id_idx_btree', algorithm: 'btree', columns: [ + { name: 'id', algorithm: 'btree', columns: [ 'id', ] }, ], @@ -223,13 +223,13 @@ const tablesSchema = __schema({ player: __table({ name: 'player', indexes: [ - { name: 'player_identity_idx_btree', algorithm: 'btree', columns: [ + { name: 'identity', algorithm: 'btree', columns: [ 'identity', ] }, - { name: 'player_name_idx_btree', algorithm: 'btree', columns: [ + { name: 'name', algorithm: 'btree', columns: [ 'name', ] }, - { name: 'player_player_id_idx_btree', algorithm: 'btree', columns: [ + { name: 'player_id', algorithm: 'btree', columns: [ 'playerId', ] }, ], diff --git a/crates/lib/src/db/raw_def/v10.rs b/crates/lib/src/db/raw_def/v10.rs index 9ffbddac310..2d9c018b400 100644 --- a/crates/lib/src/db/raw_def/v10.rs +++ b/crates/lib/src/db/raw_def/v10.rs @@ -176,9 +176,20 @@ impl ExplicitNames { })); } + pub fn insert_index(&mut self, source_name: impl Into, canonical_name: impl Into) { + self.insert(ExplicitNameEntry::Index(NameMapping { + source_name: source_name.into(), + canonical_name: canonical_name.into(), + })); + } + pub fn merge(&mut self, other: ExplicitNames) { self.entries.extend(other.entries); } + + pub fn into_entries(self) -> Vec { + self.entries + } } pub type RawRowLevelSecurityDefV10 = crate::db::raw_def::v9::RawRowLevelSecurityDefV9; @@ -388,11 +399,12 @@ pub struct RawSequenceDefV10 { #[sats(crate = crate)] #[cfg_attr(feature = "test", derive(PartialEq, Eq, PartialOrd, Ord))] pub struct RawIndexDefV10 { - /// In the future, the user may FOR SOME REASON want to override this. - /// Even though there is ABSOLUTELY NO REASON TO. + /// Must be supplied as `{table_name}_{column_names}_idx_{algorithm}`. + /// Where `{table_name}` is the name of the table containing in `RawTableDefV10`. pub source_name: Option, - // not to be used in v10 + /// `accessor_name` is the name of the index accessor function that is used inside the module + /// code. pub accessor_name: Option, /// The algorithm parameters for the index. @@ -593,6 +605,13 @@ impl RawModuleDefV10 { }) .unwrap_or_default() } + + pub fn explicit_names(&self) -> Option<&ExplicitNames> { + self.sections.iter().find_map(|s| match s { + RawModuleDefV10Section::ExplicitNames(names) => Some(names), + _ => None, + }) + } } /// A builder for a [`RawModuleDefV10`]. @@ -1171,19 +1190,28 @@ impl RawTableDefBuilderV10<'_> { } /// Generates a [RawIndexDefV10] using the supplied `columns`. - pub fn with_index(mut self, algorithm: RawIndexAlgorithm, source_name: impl Into) -> Self { + pub fn with_index( + mut self, + algorithm: RawIndexAlgorithm, + source_name: impl Into, + accessor_name: impl Into, + ) -> Self { self.table.indexes.push(RawIndexDefV10 { source_name: Some(source_name.into()), - accessor_name: None, + accessor_name: Some(accessor_name.into()), algorithm, }); self } - /// Generates a [RawIndexDefV10] using the supplied `columns` but with no `accessor_name`. - pub fn with_index_no_accessor_name(mut self, algorithm: RawIndexAlgorithm) -> Self { + /// Generates a [RawIndexDefV10] using the supplied `columns`. + pub fn with_index_no_accessor_name( + mut self, + algorithm: RawIndexAlgorithm, + source_name: impl Into, + ) -> Self { self.table.indexes.push(RawIndexDefV10 { - source_name: None, + source_name: Some(source_name.into()), accessor_name: None, algorithm, }); diff --git a/crates/lib/src/db/raw_def/v9.rs b/crates/lib/src/db/raw_def/v9.rs index 02abdeded9d..7d5a03905fa 100644 --- a/crates/lib/src/db/raw_def/v9.rs +++ b/crates/lib/src/db/raw_def/v9.rs @@ -23,7 +23,6 @@ use spacetimedb_sats::Typespace; use crate::db::auth::StAccess; use crate::db::auth::StTableType; use crate::db::raw_def::v10::RawConstraintDefV10; -use crate::db::raw_def::v10::RawIndexDefV10; use crate::db::raw_def::v10::RawScopedTypeNameV10; use crate::db::raw_def::v10::RawSequenceDefV10; use crate::db::raw_def::v10::RawTypeDefV10; @@ -1071,16 +1070,6 @@ impl From for RawScopedTypeNameV9 { } } -impl From for RawIndexDefV9 { - fn from(raw: RawIndexDefV10) -> Self { - RawIndexDefV9 { - accessor_name: raw.source_name, - algorithm: raw.algorithm, - name: None, - } - } -} - impl From for RawConstraintDefV9 { fn from(raw: RawConstraintDefV10) -> Self { RawConstraintDefV9 { diff --git a/crates/schema/Cargo.toml b/crates/schema/Cargo.toml index f76a12ad7e9..313e8dad38d 100644 --- a/crates/schema/Cargo.toml +++ b/crates/schema/Cargo.toml @@ -33,6 +33,7 @@ enum-as-inner.workspace = true enum-map.workspace = true insta.workspace = true termcolor.workspace = true +convert_case.workspace = true [dev-dependencies] spacetimedb-lib = { path = "../lib", features = ["test"] } diff --git a/crates/schema/src/auto_migrate.rs b/crates/schema/src/auto_migrate.rs index cd326995b92..ab4dfc14fb4 100644 --- a/crates/schema/src/auto_migrate.rs +++ b/crates/schema/src/auto_migrate.rs @@ -2362,7 +2362,7 @@ mod tests { }); let new = create_v10_module_def(|builder| { builder - .build_table_with_new_type("Events", ProductType::from([("id", AlgebraicType::U64)]), true) + .build_table_with_new_type("events", ProductType::from([("id", AlgebraicType::U64)]), true) .with_event(true) .finish(); }); @@ -2370,14 +2370,14 @@ mod tests { let result = ponder_auto_migrate(&old, &new); expect_error_matching!( result, - AutoMigrateError::ChangeTableEventFlag { table } => &table[..] == "Events" + AutoMigrateError::ChangeTableEventFlag { table } => &table[..] == "events" ); // event → non-event (reverse direction) let result = ponder_auto_migrate(&new, &old); expect_error_matching!( result, - AutoMigrateError::ChangeTableEventFlag { table } => &table[..] == "Events" + AutoMigrateError::ChangeTableEventFlag { table } => &table[..] == "events" ); } diff --git a/crates/schema/src/def.rs b/crates/schema/src/def.rs index 1c834f9dae3..2162a9c9abb 100644 --- a/crates/schema/src/def.rs +++ b/crates/schema/src/def.rs @@ -32,9 +32,9 @@ use spacetimedb_data_structures::error_stream::{CollectAllErrors, CombineErrors, use spacetimedb_data_structures::map::{Equivalent, HashMap}; use spacetimedb_lib::db::raw_def; use spacetimedb_lib::db::raw_def::v10::{ - RawConstraintDefV10, RawIndexDefV10, RawLifeCycleReducerDefV10, RawModuleDefV10, RawModuleDefV10Section, - RawProcedureDefV10, RawReducerDefV10, RawRowLevelSecurityDefV10, RawScheduleDefV10, RawScopedTypeNameV10, - RawSequenceDefV10, RawTableDefV10, RawTypeDefV10, RawViewDefV10, + ExplicitNames, RawConstraintDefV10, RawIndexDefV10, RawLifeCycleReducerDefV10, RawModuleDefV10, + RawModuleDefV10Section, RawProcedureDefV10, RawReducerDefV10, RawRowLevelSecurityDefV10, RawScheduleDefV10, + RawScopedTypeNameV10, RawSequenceDefV10, RawTableDefV10, RawTypeDefV10, RawViewDefV10, }; use spacetimedb_lib::db::raw_def::v9::{ Lifecycle, RawColumnDefaultValueV9, RawConstraintDataV9, RawConstraintDefV9, RawIndexAlgorithm, RawIndexDefV9, @@ -496,6 +496,7 @@ impl From for RawModuleDefV10 { } = val; let mut sections = Vec::new(); + let mut explicit_names = ExplicitNames::default(); sections.push(RawModuleDefV10Section::Typespace(typespace)); @@ -518,10 +519,16 @@ impl From for RawModuleDefV10 { } // Collect schedules from tables (V10 stores them in a separate section). + // Also collect ExplicitNames for tables: accessor_name → source_name, name → canonical_name. let mut schedules = Vec::new(); let raw_tables: Vec = tables .into_values() .map(|td| { + // Always emit name as ExplicitNames canonical_name. + explicit_names.insert_table( + RawIdentifier::from(td.accessor_name.clone()), + RawIdentifier::from(td.name.clone()), + ); if let Some(sched) = td.schedule.clone() { schedules.push(RawScheduleDefV10 { source_name: Some(sched.name.into()), @@ -537,17 +544,47 @@ impl From for RawModuleDefV10 { sections.push(RawModuleDefV10Section::Tables(raw_tables)); } - let raw_reducers: Vec = reducers.into_values().map(Into::into).collect(); + // Collect ExplicitNames for reducers: accessor_name → source_name, name → canonical_name. + let raw_reducers: Vec = reducers + .into_values() + .map(|rd| { + explicit_names.insert_function( + RawIdentifier::from(rd.accessor_name.clone()), + RawIdentifier::from(rd.name.clone()), + ); + rd.into() + }) + .collect(); if !raw_reducers.is_empty() { sections.push(RawModuleDefV10Section::Reducers(raw_reducers)); } - let raw_procedures: Vec = procedures.into_values().map(Into::into).collect(); + // Collect ExplicitNames for procedures: accessor_name → source_name, name → canonical_name. + let raw_procedures: Vec = procedures + .into_values() + .map(|pd| { + explicit_names.insert_function( + RawIdentifier::from(pd.accessor_name.clone()), + RawIdentifier::from(pd.name.clone()), + ); + pd.into() + }) + .collect(); if !raw_procedures.is_empty() { sections.push(RawModuleDefV10Section::Procedures(raw_procedures)); } - let raw_views: Vec = views.into_values().map(Into::into).collect(); + // Collect ExplicitNames for views: accessor_name → source_name, name → canonical_name. + let raw_views: Vec = views + .into_values() + .map(|vd| { + explicit_names.insert_function( + RawIdentifier::from(vd.accessor_name.clone()), + RawIdentifier::from(vd.name.clone()), + ); + vd.into() + }) + .collect(); if !raw_views.is_empty() { sections.push(RawModuleDefV10Section::Views(raw_views)); } @@ -565,6 +602,9 @@ impl From for RawModuleDefV10 { sections.push(RawModuleDefV10Section::RowLevelSecurity(raw_rls)); } + // Always emit ExplicitNames so canonical names survive the round-trip. + sections.push(RawModuleDefV10Section::ExplicitNames(explicit_names)); + RawModuleDefV10 { sections } } } @@ -869,8 +909,8 @@ impl From for RawIndexDefV9 { impl From for RawIndexDefV10 { fn from(val: IndexDef) -> Self { RawIndexDefV10 { - source_name: Some(val.name), - accessor_name: None, + source_name: Some(val.source_name), + accessor_name: val.accessor_name.map(Into::into), algorithm: val.algorithm.into(), } } @@ -1533,7 +1573,7 @@ impl From for RawViewDefV9 { impl From for RawViewDefV10 { fn from(val: ViewDef) -> Self { let ViewDef { - name, + accessor_name, is_anonymous, is_public, params, @@ -1542,7 +1582,7 @@ impl From for RawViewDefV10 { .. } = val; RawViewDefV10 { - source_name: name.into(), + source_name: accessor_name.into(), index: fn_ptr.into(), is_public, is_anonymous, @@ -1647,7 +1687,7 @@ impl From for RawReducerDefV9 { impl From for RawReducerDefV10 { fn from(val: ReducerDef) -> Self { RawReducerDefV10 { - source_name: val.name.into(), + source_name: val.accessor_name.into(), params: val.params, visibility: val.visibility.into(), ok_return_type: val.ok_return_type, @@ -1707,7 +1747,7 @@ impl From for RawProcedureDefV9 { impl From for RawProcedureDefV10 { fn from(val: ProcedureDef) -> Self { RawProcedureDefV10 { - source_name: val.name.into(), + source_name: val.accessor_name.into(), params: val.params, return_type: val.return_type, visibility: val.visibility.into(), diff --git a/crates/schema/src/def/validate/v10.rs b/crates/schema/src/def/validate/v10.rs index b6f6dc6bba5..6e5402e491e 100644 --- a/crates/schema/src/def/validate/v10.rs +++ b/crates/schema/src/def/validate/v10.rs @@ -1,22 +1,72 @@ +use spacetimedb_data_structures::map::HashMap; use spacetimedb_lib::bsatn::Deserializer; use spacetimedb_lib::db::raw_def::v10::*; use spacetimedb_lib::de::DeserializeSeed as _; use spacetimedb_sats::{Typespace, WithTypespace}; use crate::def::validate::v9::{ - check_function_names_are_unique, check_scheduled_functions_exist, generate_schedule_name, identifier, - CoreValidator, TableValidator, ViewValidator, + check_function_names_are_unique, check_scheduled_functions_exist, generate_schedule_name, + generate_unique_constraint_name, identifier, CoreValidator, TableValidator, ViewValidator, }; use crate::def::*; use crate::error::ValidationError; use crate::type_for_generate::ProductTypeDef; use crate::{def::validate::Result, error::TypeLocation}; +// Utitility struct to look up canonical names for tables, functions, and indexes based on the +// explicit names provided in the `RawModuleDefV10`. +#[derive(Default)] +pub struct ExplicitNamesLookup { + pub tables: HashMap, + pub functions: HashMap, + pub indexes: HashMap, +} + +impl ExplicitNamesLookup { + fn new(ex: ExplicitNames) -> Self { + let mut tables = HashMap::default(); + let mut functions = HashMap::default(); + let mut indexes = HashMap::default(); + + for entry in ex.into_entries() { + match entry { + ExplicitNameEntry::Table(m) => { + tables.insert(m.source_name, m.canonical_name); + } + ExplicitNameEntry::Function(m) => { + functions.insert(m.source_name, m.canonical_name); + } + ExplicitNameEntry::Index(m) => { + indexes.insert(m.source_name, m.canonical_name); + } + _ => {} + } + } + + ExplicitNamesLookup { + tables, + functions, + indexes, + } + } +} + /// Validate a `RawModuleDefV9` and convert it into a `ModuleDef`, /// or return a stream of errors if the definition is invalid. pub fn validate(def: RawModuleDefV10) -> Result { - let typespace = def.typespace().cloned().unwrap_or_else(|| Typespace::EMPTY.clone()); + let mut typespace = def.typespace().cloned().unwrap_or_else(|| Typespace::EMPTY.clone()); let known_type_definitions = def.types().into_iter().flatten().map(|def| def.ty); + let case_policy = def.case_conversion_policy(); + let explicit_names = def + .explicit_names() + .cloned() + .map(ExplicitNamesLookup::new) + .unwrap_or_default(); + + // Original `typespace` needs to be preserved to be assign `accesor_name`s to columns. + let typespace_with_accessor_names = typespace.clone(); + // Apply case conversion to `typespace`. + CoreValidator::typespace_case_conversion(case_policy, &mut typespace); let mut validator = ModuleValidatorV10 { core: CoreValidator { @@ -24,7 +74,12 @@ pub fn validate(def: RawModuleDefV10) -> Result { stored_in_table_def: Default::default(), type_namespace: Default::default(), lifecycle_reducers: Default::default(), - typespace_for_generate: TypespaceForGenerate::builder(&typespace, known_type_definitions), + typespace_for_generate: TypespaceForGenerate::builder( + &typespace_with_accessor_names, + known_type_definitions, + ), + case_policy, + explicit_names, }, }; @@ -69,7 +124,7 @@ pub fn validate(def: RawModuleDefV10) -> Result { .flatten() .map(|view| { validator - .validate_view_def(view) + .validate_view_def(view, &typespace_with_accessor_names) .map(|view_def| (view_def.name.clone(), view_def)) }) .collect_all_errors(); @@ -81,7 +136,7 @@ pub fn validate(def: RawModuleDefV10) -> Result { .flatten() .map(|table| { validator - .validate_table_def(table) + .validate_table_def(table, &typespace_with_accessor_names) .map(|table_def| (table_def.name.clone(), table_def)) }) .collect_all_errors(); @@ -124,7 +179,11 @@ pub fn validate(def: RawModuleDefV10) -> Result { .into_iter() .flatten() .map(|lifecycle_def| { - let function_name = ReducerName::new(identifier(lifecycle_def.function_name.clone())?); + let function_name = ReducerName::new( + validator + .core + .resolve_function_ident(lifecycle_def.function_name.clone())?, + ); let (pos, _) = reducers_vec .iter() @@ -254,7 +313,7 @@ struct ModuleValidatorV10<'a> { } impl<'a> ModuleValidatorV10<'a> { - fn validate_table_def(&mut self, table: RawTableDefV10) -> Result { + fn validate_table_def(&mut self, table: RawTableDefV10, typespace_with_accessor: &Typespace) -> Result { let RawTableDefV10 { source_name: raw_table_name, product_type_ref, @@ -281,18 +340,32 @@ impl<'a> ModuleValidatorV10<'a> { })?; let mut table_validator = - TableValidator::new(raw_table_name.clone(), product_type_ref, product_type, &mut self.core); + TableValidator::new(raw_table_name.clone(), product_type_ref, product_type, &mut self.core)?; + + let table_ident = table_validator.table_ident.clone(); // Validate columns first let mut columns: Vec = (0..product_type.elements.len()) - .map(|id| table_validator.validate_column_def(id.into())) + .map(|id| { + let product_type_for_column: &ProductType = typespace_with_accessor + .get(product_type_ref) + .and_then(AlgebraicType::as_product) + .ok_or_else(|| { + ValidationErrors::from(ValidationError::InvalidProductTypeRef { + table: raw_table_name.clone(), + ref_: product_type_ref, + }) + })?; + + table_validator.validate_column_def(id.into(), product_type_for_column) + }) .collect_all_errors()?; let indexes = indexes .into_iter() .map(|index| { table_validator - .validate_index_def(index.into(), RawModuleDefVersion::V10) + .validate_index_def_v10(index) .map(|index| (index.name.clone(), index)) }) .collect_all_errors::>(); @@ -301,7 +374,9 @@ impl<'a> ModuleValidatorV10<'a> { .into_iter() .map(|constraint| { table_validator - .validate_constraint_def(constraint.into()) + .validate_constraint_def(constraint.into(), |_source_name, cols| { + generate_unique_constraint_name(&table_ident, product_type, cols) + }) .map(|constraint| (constraint.name.clone(), constraint)) }) .collect_all_errors() @@ -338,16 +413,24 @@ impl<'a> ModuleValidatorV10<'a> { }) .collect_all_errors(); - let name = table_validator - .add_to_global_namespace(raw_table_name.clone()) - .and_then(|name| { - let name = identifier(name)?; - if table_type != TableType::System && name.starts_with("st_") { - Err(ValidationError::TableNameReserved { table: name }.into()) - } else { - Ok(name) + // `raw_table_name` should also go in global namespace as it will be used as alias + let raw_table_name = table_validator.add_to_global_namespace(raw_table_name.clone())?; + + let name = { + let name = table_validator + .module_validator + .resolve_table_ident(raw_table_name.clone())?; + if table_type != TableType::System && name.starts_with("st_") { + Err(ValidationError::TableNameReserved { table: name }.into()) + } else { + let mut name = name.as_raw().clone(); + if name != raw_table_name { + name = table_validator.add_to_global_namespace(name)?; } - }); + + Ok(name) + } + }; // Validate default values inline and attach them to columns let validated_defaults: Result> = default_values @@ -395,7 +478,7 @@ impl<'a> ModuleValidatorV10<'a> { .combine_errors()?; Ok(TableDef { - name: name.clone(), + name: identifier(name)?, product_type_ref, primary_key, columns, @@ -406,7 +489,7 @@ impl<'a> ModuleValidatorV10<'a> { table_type, table_access, is_event, - accessor_name: name, + accessor_name: identifier(raw_table_name)?, }) } @@ -418,6 +501,7 @@ impl<'a> ModuleValidatorV10<'a> { ok_return_type, err_return_type, } = reducer_def; + let accessor_name = identifier(source_name.clone()).map(ReducerName::new); let params_for_generate = self.core @@ -427,7 +511,7 @@ impl<'a> ModuleValidatorV10<'a> { arg_name, }); - let name_result = identifier(source_name.clone()); + let name_result = self.core.resolve_function_ident(source_name.clone()); let return_res: Result<_> = (ok_return_type.is_unit() && err_return_type.is_string()) .then_some((ok_return_type.clone(), err_return_type.clone())) @@ -440,14 +524,14 @@ impl<'a> ModuleValidatorV10<'a> { .into() }); - let (name_result, params_for_generate, return_res) = - (name_result, params_for_generate, return_res).combine_errors()?; + let (name_result, accessor_name, params_for_generate, return_res) = + (name_result, accessor_name, params_for_generate, return_res).combine_errors()?; let (ok_return_type, err_return_type) = return_res; let reducer_name = ReducerName::new(name_result.clone()); Ok(ReducerDef { name: reducer_name.clone(), - accessor_name: reducer_name, + accessor_name, params: params.clone(), params_for_generate: ProductTypeDef { elements: params_for_generate, @@ -465,15 +549,15 @@ impl<'a> ModuleValidatorV10<'a> { &mut self, schedule: RawScheduleDefV10, tables: &HashMap, - ) -> Result<(ScheduleDef, RawIdentifier)> { + ) -> Result<(ScheduleDef, Identifier)> { let RawScheduleDefV10 { - source_name, + source_name: _, table_name, schedule_at_col, function_name, } = schedule; - let table_ident = identifier(table_name.clone())?; + let table_ident = self.core.resolve_table_ident(table_name.clone())?; // Look up the table to validate the schedule let table = tables.get(&table_ident).ok_or_else(|| ValidationError::TableNotFound { @@ -490,17 +574,17 @@ impl<'a> ModuleValidatorV10<'a> { ref_: table.product_type_ref, })?; - let source_name = source_name.unwrap_or_else(|| generate_schedule_name(&table_name)); + let source_name = generate_schedule_name(&table_ident); self.core .validate_schedule_def( table_name.clone(), - identifier(source_name)?, + source_name, function_name, product_type, schedule_at_col, table.primary_key, ) - .map(|schedule_def| (schedule_def, table_name)) + .map(|schedule_def| (schedule_def, table_ident)) } fn validate_lifecycle_reducer( @@ -540,14 +624,20 @@ impl<'a> ModuleValidatorV10<'a> { &return_type, ); - let name_result = identifier(source_name); + let accessor_name = identifier(source_name.clone()); + let name_result = self.core.resolve_function_ident(source_name); - let (name_result, params_for_generate, return_type_for_generate) = - (name_result, params_for_generate, return_type_for_generate).combine_errors()?; + let (name_result, accessor_name, params_for_generate, return_type_for_generate) = ( + name_result, + accessor_name, + params_for_generate, + return_type_for_generate, + ) + .combine_errors()?; Ok(ProcedureDef { name: name_result.clone(), - accessor_name: name_result, + accessor_name, params, params_for_generate: ProductTypeDef { elements: params_for_generate, @@ -559,20 +649,19 @@ impl<'a> ModuleValidatorV10<'a> { }) } - fn validate_view_def(&mut self, view_def: RawViewDefV10) -> Result { + fn validate_view_def(&mut self, view_def: RawViewDefV10, typespace_with_accessor: &Typespace) -> Result { let RawViewDefV10 { - source_name, + source_name: accessor_name, is_public, is_anonymous, params, return_type, index, } = view_def; - let name = source_name; let invalid_return_type = || { ValidationErrors::from(ValidationError::InvalidViewReturnType { - view: name.clone(), + view: accessor_name.clone(), ty: return_type.clone().into(), }) }; @@ -596,7 +685,7 @@ impl<'a> ModuleValidatorV10<'a> { .and_then(AlgebraicType::as_product) .ok_or_else(|| { ValidationErrors::from(ValidationError::InvalidProductTypeRef { - table: name.clone(), + table: accessor_name.clone(), ref_: product_type_ref, }) })?; @@ -604,32 +693,45 @@ impl<'a> ModuleValidatorV10<'a> { let params_for_generate = self.core .params_for_generate(¶ms, |position, arg_name| TypeLocation::ViewArg { - view_name: name.clone(), + view_name: accessor_name.clone(), position, arg_name, })?; let return_type_for_generate = self.core.validate_for_type_use( || TypeLocation::ViewReturn { - view_name: name.clone(), + view_name: accessor_name.clone(), }, &return_type, ); + let name = self.core.resolve_function_ident(accessor_name.clone())?; + let mut view_validator = ViewValidator::new( - name.clone(), + accessor_name.clone(), product_type_ref, product_type, ¶ms, ¶ms_for_generate, &mut self.core, - ); + )?; - let name_result = view_validator.add_to_global_namespace(name).and_then(identifier); + let _ = view_validator.add_to_global_namespace(name.as_raw().clone())?; let n = product_type.elements.len(); let return_columns = (0..n) - .map(|id| view_validator.validate_view_column_def(id.into())) + .map(|id| { + let product_type = typespace_with_accessor + .get(product_type_ref) + .and_then(AlgebraicType::as_product) + .ok_or_else(|| { + ValidationErrors::from(ValidationError::InvalidProductTypeRef { + table: accessor_name.clone(), + ref_: product_type_ref, + }) + })?; + view_validator.validate_view_column_def(id.into(), product_type) + }) .collect_all_errors(); let n = params.elements.len(); @@ -637,11 +739,12 @@ impl<'a> ModuleValidatorV10<'a> { .map(|id| view_validator.validate_param_column_def(id.into())) .collect_all_errors(); - let (name_result, return_type_for_generate, return_columns, param_columns) = - (name_result, return_type_for_generate, return_columns, param_columns).combine_errors()?; + let (return_type_for_generate, return_columns, param_columns) = + (return_type_for_generate, return_columns, param_columns).combine_errors()?; Ok(ViewDef { - name: name_result.clone(), + name, + accessor_name: identifier(accessor_name)?, is_anonymous, is_public, params, @@ -655,7 +758,6 @@ impl<'a> ModuleValidatorV10<'a> { product_type_ref, return_columns, param_columns, - accessor_name: name_result, }) } } @@ -684,13 +786,13 @@ fn attach_lifecycles_to_reducers( fn attach_schedules_to_tables( tables: &mut HashMap, - schedules: Vec<(ScheduleDef, RawIdentifier)>, + schedules: Vec<(ScheduleDef, Identifier)>, ) -> Result<()> { for schedule in schedules { let (schedule, table_name) = schedule; let table = tables.values_mut().find(|t| *t.name == *table_name).ok_or_else(|| { ValidationError::MissingScheduleTable { - table_name: table_name.clone(), + table_name: table_name.as_raw().clone(), schedule_name: schedule.name.clone(), } })?; @@ -716,15 +818,16 @@ mod tests { }; use crate::def::{validate::Result, ModuleDef}; use crate::def::{ - BTreeAlgorithm, ConstraintData, ConstraintDef, DirectAlgorithm, FunctionKind, FunctionVisibility, - IndexAlgorithm, IndexDef, SequenceDef, UniqueConstraintData, + BTreeAlgorithm, ConstraintData, DirectAlgorithm, FunctionKind, FunctionVisibility, IndexAlgorithm, IndexDef, + UniqueConstraintData, }; use crate::error::*; + use crate::identifier::Identifier; use crate::type_for_generate::ClientCodegenError; use itertools::Itertools; use spacetimedb_data_structures::expect_error_matching; - use spacetimedb_lib::db::raw_def::v10::RawModuleDefV10Builder; + use spacetimedb_lib::db::raw_def::v10::{CaseConversionPolicy, RawModuleDefV10Builder}; use spacetimedb_lib::db::raw_def::v9::{btree, direct, hash}; use spacetimedb_lib::db::raw_def::*; use spacetimedb_lib::ScheduleAt; @@ -734,12 +837,12 @@ mod tests { /// This test attempts to exercise every successful path in the validation code. #[test] - fn valid_definition() { + fn test_valid_definition_with_default_policy() { let mut builder = RawModuleDefV10Builder::new(); let product_type = AlgebraicType::product([("a", AlgebraicType::U64), ("b", AlgebraicType::String)]); let product_type_ref = builder.add_algebraic_type( - ["scope1".into(), "scope2".into()], + ["Scope1".into(), "Scope2".into()], "ReferencedProduct", product_type.clone(), false, @@ -757,16 +860,16 @@ mod tests { "Apples", ProductType::from([ ("id", AlgebraicType::U64), - ("name", AlgebraicType::String), - ("count", AlgebraicType::U16), + ("Apple_name", AlgebraicType::String), + ("countFresh", AlgebraicType::U16), ("type", sum_type_ref.into()), ]), true, ) - .with_index(btree([1, 2]), "apples_id") - .with_index(direct(2), "Apples_count_direct") + .with_index_no_accessor_name(btree([1, 2]), "apples_id") + .with_index_no_accessor_name(direct(2), "Apples_count_direct") .with_unique_constraint(2) - .with_index(btree(3), "Apples_type_btree") + .with_index_no_accessor_name(btree(3), "Apples_type_btree") .with_unique_constraint(3) .with_default_column_value(2, AlgebraicValue::U16(37)) .with_default_column_value(3, red_delicious.clone()) @@ -790,8 +893,8 @@ mod tests { .with_unique_constraint(ColId(0)) .with_primary_key(0) .with_access(TableAccess::Private) - .with_index(btree(0), "bananas_count") - .with_index(btree([0, 1, 2]), "bananas_count_id_name") + .with_index_no_accessor_name(btree(0), "bananas_count") + .with_index_no_accessor_name(btree([0, 1, 2]), "bananas_count_id_name") .finish(); let deliveries_product_type = builder @@ -805,7 +908,7 @@ mod tests { true, ) .with_auto_inc_primary_key(2) - .with_index(btree(2), "scheduled_id_index") + .with_index_no_accessor_name(btree(2), "scheduled_id_index") .with_type(TableType::System) .finish(); @@ -821,9 +924,11 @@ mod tests { let def: ModuleDef = builder.finish().try_into().unwrap(); - let apples = expect_identifier("Apples"); - let bananas = expect_identifier("Bananas"); - let deliveries = expect_identifier("Deliveries"); + let casing_policy = CaseConversionPolicy::default(); + assert_eq!(casing_policy, CaseConversionPolicy::SnakeCase); + let apples = Identifier::for_test("apples"); + let bananas = Identifier::for_test("bananas"); + let deliveries = Identifier::for_test("deliveries"); assert_eq!(def.tables.len(), 3); @@ -837,21 +942,25 @@ mod tests { assert_eq!(apples_def.columns[0].name, expect_identifier("id")); assert_eq!(apples_def.columns[0].ty, AlgebraicType::U64); assert_eq!(apples_def.columns[0].default_value, None); - assert_eq!(apples_def.columns[1].name, expect_identifier("name")); + assert_eq!(apples_def.columns[1].name, expect_identifier("apple_name")); assert_eq!(apples_def.columns[1].ty, AlgebraicType::String); assert_eq!(apples_def.columns[1].default_value, None); - assert_eq!(apples_def.columns[2].name, expect_identifier("count")); + assert_eq!(apples_def.columns[2].name, expect_identifier("count_fresh")); assert_eq!(apples_def.columns[2].ty, AlgebraicType::U16); assert_eq!(apples_def.columns[2].default_value, Some(AlgebraicValue::U16(37))); assert_eq!(apples_def.columns[3].name, expect_identifier("type")); assert_eq!(apples_def.columns[3].ty, sum_type_ref.into()); assert_eq!(apples_def.columns[3].default_value, Some(red_delicious)); - assert_eq!(expect_resolve(&def.typespace, &apples_def.columns[3].ty), sum_type); + let expected_sum_type = AlgebraicType::simple_enum(["gala", "grannySmith", "redDelicious"].into_iter()); + assert_eq!( + expect_resolve(&def.typespace, &apples_def.columns[3].ty), + expected_sum_type + ); assert_eq!(apples_def.primary_key, None); assert_eq!(apples_def.constraints.len(), 2); - let apples_unique_constraint = "Apples_type_key"; + let apples_unique_constraint = "apples_type_key"; assert_eq!( apples_def.constraints[apples_unique_constraint].data, ConstraintData::Unique(UniqueConstraintData { @@ -872,22 +981,28 @@ mod tests { .collect::>(), [ &IndexDef { - name: "Apples_count_idx_direct".into(), - accessor_name: Some(expect_identifier("Apples_count_idx_direct")), - algorithm: DirectAlgorithm { column: 2.into() }.into(), - source_name: "Apples_count_idx_direct".into(), + name: "apples_apple_name_count_fresh_idx_btree".into(), + source_name: "apples_id".into(), + accessor_name: None, + algorithm: BTreeAlgorithm { + columns: [ColId(1), ColId(2)].into(), + } + .into(), }, &IndexDef { - name: "Apples_name_count_idx_btree".into(), - accessor_name: Some(expect_identifier("Apples_name_count_idx_btree")), - algorithm: BTreeAlgorithm { columns: [1, 2].into() }.into(), - source_name: "Apples_name_count_idx_btree".into(), + name: "apples_count_fresh_idx_direct".into(), + accessor_name: None, + source_name: "Apples_count_direct".into(), + algorithm: DirectAlgorithm { column: ColId(2) }.into() }, &IndexDef { - name: "Apples_type_idx_btree".into(), - accessor_name: Some(expect_identifier("Apples_type_idx_btree")), - algorithm: BTreeAlgorithm { columns: 3.into() }.into(), - source_name: "Apples_type_idx_btree".into(), + name: "apples_type_idx_btree".into(), + source_name: "Apples_type_btree".into(), + accessor_name: None, + algorithm: BTreeAlgorithm { + columns: [ColId(3)].into() + } + .into() } ] ); @@ -947,13 +1062,13 @@ mod tests { assert_eq!(delivery_def.primary_key, Some(ColId(2))); assert_eq!(def.typespace.get(product_type_ref), Some(&product_type)); - assert_eq!(def.typespace.get(sum_type_ref), Some(&sum_type)); + assert_eq!(def.typespace.get(sum_type_ref), Some(&expected_sum_type)); check_product_type(&def, apples_def); check_product_type(&def, bananas_def); check_product_type(&def, delivery_def); - let product_type_name = expect_type_name("scope1::scope2::ReferencedProduct"); + let product_type_name = expect_type_name("Scope1::Scope2::ReferencedProduct"); let sum_type_name = expect_type_name("ReferencedSum"); let apples_type_name = expect_type_name("Apples"); let bananas_type_name = expect_type_name("Bananas"); @@ -1078,15 +1193,15 @@ mod tests { .build_table_with_new_type( "Bananas", ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + true, ) - .with_index(btree([0, 55]), "bananas_a_b") + .with_index_no_accessor_name(btree([0, 55]), "Bananas_a_b") .finish(); let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::ColumnNotFound { table, def, column } => { &table[..] == "Bananas" && - &def[..] == "Bananas_b_col_55_idx_btree" && + &def[..] == "bananas_b_col_55_idx_btree" && column == &55.into() }); } @@ -1098,7 +1213,7 @@ mod tests { .build_table_with_new_type( "Bananas", ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + true, ) .with_unique_constraint(ColId(55)) .finish(); @@ -1106,7 +1221,7 @@ mod tests { expect_error_matching!(result, ValidationError::ColumnNotFound { table, def, column } => { &table[..] == "Bananas" && - &def[..] == "Bananas_col_55_key" && + &def[..] == "bananas_col_55_key" && column == &55.into() }); } @@ -1119,7 +1234,7 @@ mod tests { .build_table_with_new_type( "Bananas", ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + true, ) .with_column_sequence(55) .finish(); @@ -1127,7 +1242,7 @@ mod tests { expect_error_matching!(result, ValidationError::ColumnNotFound { table, def, column } => { &table[..] == "Bananas" && - &def[..] == "Bananas_col_55_seq" && + &def[..] == "bananas_col_55_seq" && column == &55.into() }); @@ -1137,14 +1252,14 @@ mod tests { .build_table_with_new_type( "Bananas", ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::String)]), - false, + true, ) .with_column_sequence(1) .finish(); let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::InvalidSequenceColumnType { sequence, column, column_type } => { - &sequence[..] == "Bananas_a_seq" && + &sequence[..] == "bananas_a_seq" && column == &RawColumnName::new("Bananas", "a") && column_type.0 == AlgebraicType::String }); @@ -1157,14 +1272,14 @@ mod tests { .build_table_with_new_type( "Bananas", ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + true, ) - .with_index(btree([0, 0]), "bananas_b_b") + .with_index_no_accessor_name(btree([0, 0]), "bananas_b_b") .finish(); let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::DuplicateColumns{ def, columns } => { - &def[..] == "Bananas_b_b_idx_btree" && columns == &ColList::from_iter([0, 0]) + &def[..] == "bananas_b_b_idx_btree" && columns == &ColList::from_iter([0, 0]) }); } @@ -1174,18 +1289,18 @@ mod tests { builder .build_table_with_new_type( "Bananas", - ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + ProductType::from([("a", AlgebraicType::U16), ("b", AlgebraicType::U64)]), + true, ) .with_unique_constraint(ColList::from_iter([1, 1])) + .with_unique_constraint(ColList::from_iter([1, 1])) .finish(); let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::DuplicateColumns{ def, columns } => { - &def[..] == "Bananas_a_a_key" && columns == &ColList::from_iter([1, 1]) + &def[..] == "bananas_b_b_key" && columns == &ColList::from_iter([1, 1]) }); } - #[test] fn recursive_ref() { let recursive_type = AlgebraicType::product([("a", AlgebraicTypeRef(0).into())]); @@ -1241,7 +1356,7 @@ mod tests { ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), true, ) - .with_index(hash(0), "bananas_b") + .with_index_no_accessor_name(hash(0), "bananas_b") .finish(); let def: ModuleDef = builder.finish().try_into().unwrap(); let indexes = def.indexes().collect::>(); @@ -1255,8 +1370,8 @@ mod tests { builder .build_table_with_new_type( "Bananas", - ProductType::from([("b", AlgebraicType::U16), ("a", AlgebraicType::U64)]), - false, + ProductType::from([("a", AlgebraicType::U16), ("b", AlgebraicType::U64)]), + true, ) .with_unique_constraint(1) .finish(); @@ -1265,7 +1380,7 @@ mod tests { expect_error_matching!( result, ValidationError::UniqueConstraintWithoutIndex { constraint, columns } => { - &**constraint == "Bananas_a_key" && *columns == ColSet::from(1) + &**constraint == "bananas_b_key" && *columns == ColSet::from(1) } ); } @@ -1279,12 +1394,12 @@ mod tests { ProductType::from([("b", AlgebraicType::I32), ("a", AlgebraicType::U64)]), false, ) - .with_index(direct(0), "bananas_b") + .with_index_no_accessor_name(direct(0), "bananas_b") .finish(); let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::DirectIndexOnBadType { index, .. } => { - &index[..] == "Bananas_b_idx_direct" + &index[..] == "bananas_b_idx_direct" }); } @@ -1363,7 +1478,7 @@ mod tests { let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::DuplicateTypeName { name } => { - name == &expect_type_name("scope1::scope2::Duplicate") + name == &expect_type_name("Scope1::Scope2::Duplicate") }); } @@ -1394,7 +1509,7 @@ mod tests { true, ) .with_auto_inc_primary_key(2) - .with_index(btree(2), "scheduled_id_index") + .with_index_no_accessor_name(btree(2), "scheduled_id_index") .with_type(TableType::System) .finish(); @@ -1402,7 +1517,7 @@ mod tests { let result: Result = builder.finish().try_into(); expect_error_matching!(result, ValidationError::MissingScheduledFunction { schedule, function } => { - &schedule[..] == "Deliveries_sched" && + &schedule[..] == "deliveries_sched" && function == &expect_identifier("check_deliveries") }); } @@ -1422,7 +1537,7 @@ mod tests { true, ) .with_auto_inc_primary_key(2) - .with_index(direct(2), "scheduled_id_idx") + .with_index_no_accessor_name(direct(2), "scheduled_id_idx") .with_type(TableType::System) .finish(); @@ -1438,47 +1553,6 @@ mod tests { }); } - #[test] - fn wacky_names() { - let mut builder = RawModuleDefV10Builder::new(); - - let schedule_at_type = builder.add_type::(); - - let deliveries_product_type = builder - .build_table_with_new_type( - "Deliveries", - ProductType::from([ - ("id", AlgebraicType::U64), - ("scheduled_at", schedule_at_type.clone()), - ("scheduled_id", AlgebraicType::U64), - ]), - true, - ) - .with_auto_inc_primary_key(2) - .with_index(direct(2), "scheduled_id_index") - .with_index(btree([0, 2]), "nice_index_name") - .with_type(TableType::System) - .finish(); - - builder.add_schedule("Deliveries", 1, "check_deliveries"); - builder.add_reducer( - "check_deliveries", - ProductType::from([("a", deliveries_product_type.into())]), - ); - - // Our builder methods ignore the possibility of setting names at the moment. - // But, it could be done in the future for some reason. - // Check if it works. - let mut raw_def = builder.finish(); - let tables = raw_def.tables_mut_for_tests(); - tables[0].constraints[0].source_name = Some("wacky.constraint()".into()); - tables[0].sequences[0].source_name = Some("wacky.sequence()".into()); - - let def: ModuleDef = raw_def.try_into().unwrap(); - assert!(def.lookup::(&"wacky.constraint()".into()).is_some()); - assert!(def.lookup::(&"wacky.sequence()".into()).is_some()); - } - #[test] fn duplicate_reducer_names() { let mut builder = RawModuleDefV10Builder::new(); @@ -1520,4 +1594,472 @@ mod tests { &name[..] == "foo" }); } + + fn make_case_conversion_builder() -> (RawModuleDefV10Builder, AlgebraicTypeRef) { + let mut builder = RawModuleDefV10Builder::new(); + + // Sum type: PascalCase variants → camelCase after conversion. + let color_sum = AlgebraicType::simple_enum(["RedApple", "GreenApple", "YellowApple"].into_iter()); + let color_ref = builder.add_algebraic_type([], "FruitColor", color_sum, true); + + // Product type with scope: scope segments stay unchanged, unscoped name → PascalCase. + builder.add_algebraic_type( + ["myLib".into(), "utils".into()], + "metaInfo", + AlgebraicType::product([("kind", AlgebraicType::U8)]), + false, + ); + + // Table 1: "FruitBasket" + // [0] BasketId PascalCase → "basket_id" + // [1] fruitName camelCase → "fruit_name" + // [2] ItemCount PascalCase → "item_count" + // [3] color_label snake_case → "color_label" + builder + .build_table_with_new_type( + "FruitBasket", + ProductType::from([ + ("BasketId", AlgebraicType::U64), + ("fruitName", AlgebraicType::String), + ("ItemCount", AlgebraicType::U32), + ("color_label", color_ref.into()), + ]), + true, + ) + .with_index(btree([0, 1]), "RawBasketLookup", "fruitNameIndex") + .with_index(direct(2), "RawCountDirect", "ItemCount") + .with_unique_constraint(ColId(2)) + .with_column_sequence(0) + .finish(); + + // Table 2: "deliveryRecord" + // [0] recordId camelCase → "record_id" + // [1] ScheduledAt PascalCase → "scheduled_at" + // [2] SeqId PascalCase → "seq_id" + let schedule_at_type = builder.add_type::(); + + let builder_type_ref = builder + .build_table_with_new_type( + "deliveryRecord", + ProductType::from([ + ("recordId", AlgebraicType::U64), + ("ScheduledAt", schedule_at_type), + ("SeqId", AlgebraicType::U64), + ]), + true, + ) + .with_auto_inc_primary_key(2) + .with_index(btree(2), "SeqIdIndex", "SeqId") + .with_type(TableType::System) + .finish(); + + builder.add_reducer("doDelivery", ProductType::from([("a", builder_type_ref.into())])); + builder.add_reducer("ProcessItem", ProductType::from([("b", AlgebraicType::U32)])); + builder.add_schedule("deliveryRecord", 1, "doDelivery"); + + (builder, color_ref) + } + + /// Exhaustive test for case-conversion under the default [`CaseConversionPolicy::SnakeCase`]. + /// + /// Rules under verification: + /// + /// | Entity | Source style | Canonical style | Notes | + /// |-----------------|------------------|---------------------------|--------------------------------| + /// | Table name | any | snake_case | raw name preserved as accessor | + /// | Column name | any | snake_case | raw name preserved as accessor | + /// | Reducer name | any | snake_case | — | + /// | Type name | any (unscoped) | PascalCase | scope segments unchanged | + /// | Enum variant | any | camelCase | — | + /// | Index name | autogenerated | `{tbl}_{cols}_idx_{algo}` | uses canonical table+col names | + /// | Index accessor | raw source_name | **unchanged** | no conversion applied | + /// | Constraint name | autogenerated | `{tbl}_{cols}_key` | uses canonical table+col names | + /// | Sequence name | autogenerated | `{tbl}_{col}_seq` | uses canonical table+col names | + /// | Schedule name | autogenerated | `{tbl}_sched` | uses canonical table name | + #[test] + fn test_case_conversion_snake_case_policy() { + use crate::def::*; + use crate::identifier::Identifier; + use itertools::Itertools; + use spacetimedb_lib::db::raw_def::v10::CaseConversionPolicy; + use spacetimedb_sats::AlgebraicType; + + let id = |s: &str| Identifier::for_test(s); + + let (builder, color_ref) = make_case_conversion_builder(); + let def: ModuleDef = builder.finish().try_into().unwrap(); + + // Sanity: policy is SnakeCase by default. + assert_eq!(CaseConversionPolicy::default(), CaseConversionPolicy::SnakeCase); + + // ═══════════════════════════════════════════════════════════════════════════ + // TABLE NAMES + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(def.tables.len(), 2); + + // "FruitBasket" → canonical "fruit_basket" + let fruit_basket = id("fruit_basket"); + assert!(def.tables.contains_key(&fruit_basket), "table 'fruit_basket' not found"); + let fb = &def.tables[&fruit_basket]; + assert_eq!(fb.name, fruit_basket, "table canonical name"); + assert_eq!( + &*fb.accessor_name, "FruitBasket", + "table accessor_name must preserve raw source" + ); + + // "deliveryRecord" → canonical "delivery_record" + let delivery_record = id("delivery_record"); + assert!( + def.tables.contains_key(&delivery_record), + "table 'delivery_record' not found" + ); + let dr = &def.tables[&delivery_record]; + assert_eq!(dr.name, delivery_record, "table canonical name"); + assert_eq!( + &*dr.accessor_name, "deliveryRecord", + "table accessor_name must preserve raw source" + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // COLUMN NAMES — FruitBasket + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(fb.columns.len(), 4); + + // [0] "BasketId" (PascalCase) → "basket_id" + assert_eq!(fb.columns[0].name, id("basket_id"), "col 0 canonical"); + assert_eq!(&*fb.columns[0].accessor_name, "BasketId", "col 0 accessor"); + assert_eq!(fb.columns[0].ty, AlgebraicType::U64); + + // [1] "fruitName" (camelCase) → "fruit_name" + assert_eq!(fb.columns[1].name, id("fruit_name"), "col 1 canonical"); + assert_eq!(&*fb.columns[1].accessor_name, "fruitName", "col 1 accessor"); + assert_eq!(fb.columns[1].ty, AlgebraicType::String); + + // [2] "ItemCount" (PascalCase) → "item_count" + assert_eq!(fb.columns[2].name, id("item_count"), "col 2 canonical"); + assert_eq!(&*fb.columns[2].accessor_name, "ItemCount", "col 2 accessor"); + assert_eq!(fb.columns[2].ty, AlgebraicType::U32); + + // [3] "color_label" (already snake) → "color_label" + assert_eq!(fb.columns[3].name, id("color_label"), "col 3 canonical"); + assert_eq!(&*fb.columns[3].accessor_name, "color_label", "col 3 accessor"); + + // ═══════════════════════════════════════════════════════════════════════════ + // COLUMN NAMES — deliveryRecord + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(dr.columns.len(), 3); + + // [0] "recordId" (camelCase) → "record_id" + assert_eq!(dr.columns[0].name, id("record_id"), "dr col 0 canonical"); + assert_eq!(&*dr.columns[0].accessor_name, "recordId", "dr col 0 accessor"); + + // [1] "ScheduledAt" (PascalCase) → "scheduled_at" + assert_eq!(dr.columns[1].name, id("scheduled_at"), "dr col 1 canonical"); + assert_eq!(&*dr.columns[1].accessor_name, "ScheduledAt", "dr col 1 accessor"); + + // [2] "SeqId" (PascalCase) → "seq_id" + assert_eq!(dr.columns[2].name, id("seq_id"), "dr col 2 canonical"); + assert_eq!(&*dr.columns[2].accessor_name, "SeqId", "dr col 2 accessor"); + + // ═══════════════════════════════════════════════════════════════════════════ + // REDUCER NAMES + // ═══════════════════════════════════════════════════════════════════════════ + + // "doDelivery" (camelCase) → "do_delivery" + let do_delivery = id("do_delivery"); + assert!( + def.reducers.contains_key(&do_delivery), + "reducer 'do_delivery' not found" + ); + assert_eq!(def.reducers[&do_delivery].name.as_identifier(), &do_delivery); + + // "ProcessItem" (PascalCase) → "process_item" + let process_item = id("process_item"); + assert!( + def.reducers.contains_key(&process_item), + "reducer 'process_item' not found" + ); + assert_eq!(def.reducers[&process_item].name.as_identifier(), &process_item); + + // ═══════════════════════════════════════════════════════════════════════════ + // TYPE NAMES — PascalCase; scoped names keep their scope segments unchanged + // ═══════════════════════════════════════════════════════════════════════════ + + // "FruitColor" (already Pascal) → "FruitColor" + assert!( + def.types.contains_key(&expect_type_name("FruitColor")), + "type 'FruitColor' not found" + ); + + // "metaInfo" (lower-camel unscoped) → "MetaInfo"; scope "myLib","utils" → unchanged + assert!( + def.types.contains_key(&expect_type_name("MyLib::Utils::MetaInfo")), + "type 'myLib::utils::MetaInfo' not found" + ); + + // Anonymous table types keep the raw source name as-is. + assert!(def.types.contains_key(&expect_type_name("FruitBasket"))); + assert!( + def.types.contains_key(&expect_type_name("deliveryRecord")) + || def.types.contains_key(&expect_type_name("DeliveryRecord")), + "anonymous type for deliveryRecord not found" + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // ENUM VARIANT NAMES — camelCase + // ═══════════════════════════════════════════════════════════════════════════ + + // "RedApple" → "redApple", "GreenApple" → "greenApple", "YellowApple" → "yellowApple" + let expected_color_sum = AlgebraicType::simple_enum(["redApple", "greenApple", "yellowApple"].into_iter()); + assert_eq!( + def.typespace.get(color_ref), + Some(&expected_color_sum), + "enum variants should be camelCase" + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // INDEX NAMES — autogenerated from canonical table + canonical column names + // ═══════════════════════════════════════════════════════════════════════════ + // + // "FruitBasket" → "fruit_basket"; cols [0]="basket_id" [1]="fruit_name" [2]="item_count" + // btree([0,1]) → "fruit_basket_basket_id_fruit_name_idx_btree" + // direct(2) → "fruit_basket_item_count_idx_direct" + // + // accessor_name = raw source_name passed to with_index(), never converted. + + assert_eq!(fb.indexes.len(), 2); + + let fb_indexes = fb.indexes.values().sorted_by_key(|i| &i.name).collect::>(); + + // btree([0,1]) sorts first alphabetically + assert_eq!( + fb_indexes[0].name, + "fruit_basket_basket_id_fruit_name_idx_btree".into(), + "btree index name uses canonical table and col names" + ); + assert_eq!( + fb_indexes[0].accessor_name, + Some(id("fruitNameIndex")), + "btree index accessor_name is the raw source_name, never converted" + ); + assert_eq!( + fb_indexes[0].source_name, + "RawBasketLookup".into(), + "sourcename == autogenerated name in V10" + ); + + // direct(2) sorts second + assert_eq!( + fb_indexes[1].name, + "fruit_basket_item_count_idx_direct".into(), + "direct index name uses canonical table and col names" + ); + assert_eq!( + fb_indexes[1].accessor_name, + Some(id("ItemCount")), + "direct index accessor_name is the raw source_name, never converted" + ); + assert_eq!(fb_indexes[1].source_name, "RawCountDirect".into(),); + // ═══════════════════════════════════════════════════════════════════════════ + // CONSTRAINT NAMES — autogenerated from canonical table + canonical col name + // ═══════════════════════════════════════════════════════════════════════════ + // + // unique on FruitBasket col [2] "ItemCount" → "item_count" + // → "fruit_basket_item_count_key" + + assert_eq!(fb.constraints.len(), 1); + let (constraint_key, constraint) = fb.constraints.iter().next().unwrap(); + assert_eq!( + &**constraint_key, "fruit_basket_item_count_key", + "constraint name uses canonical table and col names" + ); + assert_eq!( + constraint.data, + ConstraintData::Unique(UniqueConstraintData { + columns: ColId(2).into() + }), + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // SEQUENCE NAMES — autogenerated from canonical table + canonical col name + // ═══════════════════════════════════════════════════════════════════════════ + // + // sequence on FruitBasket col [0] "BasketId" → "basket_id" + // → "fruit_basket_basket_id_seq" + + assert_eq!(fb.sequences.len(), 1); + let (seq_key, _seq) = fb.sequences.iter().next().unwrap(); + assert_eq!( + &**seq_key, "fruit_basket_basket_id_seq", + "sequence name uses canonical table and col names" + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // SCHEDULE NAMES — autogenerated from canonical table name + // ═══════════════════════════════════════════════════════════════════════════ + // + // "deliveryRecord" → "delivery_record" → "delivery_record_sched" + + let schedule = dr.schedule.as_ref().expect("deliveryRecord should have a schedule"); + assert_eq!( + &*schedule.name, "delivery_record_sched", + "schedule name uses canonical table name" + ); + assert_eq!( + schedule.function_name, do_delivery, + "schedule function_name is the canonical reducer name" + ); + assert_eq!(schedule.at_column, 1.into()); + assert_eq!(schedule.function_kind, FunctionKind::Reducer); + } + + /// Tests that explicit name overrides bypass case-conversion policy, + /// using the same schema as [`test_case_conversion_snake_case_policy`]. + /// + /// Three overrides are applied on top of that schema: + /// + /// | Source name | Kind | Explicit canonical | + /// |---------------------|----------|--------------------| + /// | `"FruitBasket"` | table | `"FB"` | + /// | `"doDelivery"` | function | `"Deliver"` | + /// | `"RawBasketLookup"` | index | `"fb_lookuP"` | + /// + /// Everything else is left to the default `SnakeCase` policy, + /// proving overrides are scoped only to what was explicitly mapped. + #[test] + fn test_explicit_name_overrides() { + use crate::def::*; + use spacetimedb_lib::db::raw_def::v10::ExplicitNames; + + let id = |s: &str| Identifier::for_test(s); + + let (mut builder, _color_ref) = make_case_conversion_builder(); + + let mut explicit = ExplicitNames::default(); + explicit.insert_table("FruitBasket", "FB"); // bypasses → "fruit_basket" + explicit.insert_function("doDelivery", "Deliver"); // bypasses → "do_delivery" + explicit.insert_index("RawBasketLookup", "fb_lookuP"); // bypasses autogenerated name + builder.add_explicit_names(explicit); + + let def: ModuleDef = builder.finish().try_into().unwrap(); + + // ═══════════════════════════════════════════════════════════════════════════ + // TABLE — explicit "FB" replaces policy-derived "fruit_basket" + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(def.tables.len(), 2); + + let fb_ident = id("FB"); + assert!(def.tables.contains_key(&fb_ident), "table 'FB' not found"); + assert!( + !def.tables.contains_key(&id("fruit_basket")), + "'fruit_basket' must not exist when overridden" + ); + + let fb = &def.tables[&fb_ident]; + assert_eq!(fb.name, fb_ident, "canonical name is the explicit value"); + assert_eq!(&*fb.accessor_name, "FruitBasket", "accessor_name preserves raw source"); + + // Non-overridden table still follows SnakeCase. + let delivery_record = id("delivery_record"); + assert!(def.tables.contains_key(&delivery_record)); + let dr = &def.tables[&delivery_record]; + assert_eq!(&*dr.accessor_name, "deliveryRecord"); + + // ═══════════════════════════════════════════════════════════════════════════ + // COLUMNS — no explicit override; SnakeCase still applies + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(fb.columns[0].name, id("basket_id"), "col 0: SnakeCase unchanged"); + assert_eq!(fb.columns[1].name, id("fruit_name"), "col 1: SnakeCase unchanged"); + assert_eq!(fb.columns[2].name, id("item_count"), "col 2: SnakeCase unchanged"); + assert_eq!(fb.columns[3].name, id("color_label"), "col 3: SnakeCase unchanged"); + + // ═══════════════════════════════════════════════════════════════════════════ + // INDEXES — one explicitly overridden, one not + // ═══════════════════════════════════════════════════════════════════════════ + + assert_eq!(fb.indexes.len(), 2); + + // "RawBasketLookup" → explicit "fb_lookuP" + let idx_explicit = fb + .indexes + .values() + .find(|i| i.accessor_name == Some(id("fruitNameIndex"))) + .expect("index with accessor 'RawBasketLookup' not found"); + assert_eq!( + idx_explicit.name, + "fb_lookuP".into(), + "explicit index name used verbatim" + ); + assert_eq!( + idx_explicit.accessor_name, + Some(id("fruitNameIndex")), + "accessor_name preserves raw source" + ); + // + // Non-overridden index on deliveryRecord still uses policy-derived table name. + let dr_index = dr.indexes.values().next().unwrap(); + assert_eq!(dr_index.name, "delivery_record_seq_id_idx_btree".into()); + + // ═══════════════════════════════════════════════════════════════════════════ + // AUTOGENERATED NAMES — all derived from explicit canonical table name "FB" + // ═══════════════════════════════════════════════════════════════════════════ + + // constraint: col [2] "ItemCount" → "item_count" under table "FB" + // → "FB_item_count_key" (not "fruit_basket_item_count_key") + assert_eq!(fb.constraints.len(), 1); + let (constraint_key, constraint) = fb.constraints.iter().next().unwrap(); + assert_eq!( + &**constraint_key, "FB_item_count_key", + "constraint autogenerated from explicit canonical table name" + ); + assert_eq!( + constraint.data, + ConstraintData::Unique(UniqueConstraintData { + columns: ColId(2).into() + }), + ); + + // sequence: col [0] "BasketId" → "basket_id" under table "FB" + // → "FB_basket_id_seq" (not "fruit_basket_basket_id_seq") + assert_eq!(fb.sequences.len(), 1); + let (seq_key, _) = fb.sequences.iter().next().unwrap(); + assert_eq!( + &**seq_key, "FB_basket_id_seq", + "sequence autogenerated from explicit canonical table name" + ); + + // ═══════════════════════════════════════════════════════════════════════════ + // REDUCER — explicit "Deliver" replaces policy-derived "do_delivery" + // ═══════════════════════════════════════════════════════════════════════════ + + let deliver_ident = id("Deliver"); + assert!(def.reducers.contains_key(&deliver_ident), "reducer 'Deliver' not found"); + assert!( + !def.reducers.contains_key(&id("do_delivery")), + "'do_delivery' must not exist when overridden" + ); + assert_eq!(def.reducers[&deliver_ident].name.as_identifier(), &deliver_ident); + + // Non-overridden reducer still follows SnakeCase. + assert!(def.reducers.contains_key(&id("process_item"))); + assert!(!def.reducers.contains_key(&id("ProcessItem"))); + + // ═══════════════════════════════════════════════════════════════════════════ + // SCHEDULE — function_name resolves to the explicit canonical reducer name + // ═══════════════════════════════════════════════════════════════════════════ + + let schedule = dr.schedule.as_ref().expect("deliveryRecord should have a schedule"); + assert_eq!(&*schedule.name, "delivery_record_sched"); + assert_eq!( + schedule.function_name, deliver_ident, + "schedule function_name uses the explicit canonical reducer name" + ); + assert_eq!(schedule.at_column, 1.into()); + assert_eq!(schedule.function_kind, FunctionKind::Reducer); + } } diff --git a/crates/schema/src/def/validate/v9.rs b/crates/schema/src/def/validate/v9.rs index f65f1e3c92d..9883517ea93 100644 --- a/crates/schema/src/def/validate/v9.rs +++ b/crates/schema/src/def/validate/v9.rs @@ -1,11 +1,16 @@ +use crate::def::validate::v10::ExplicitNamesLookup; use crate::def::*; use crate::error::{RawColumnName, ValidationError}; use crate::type_for_generate::{ClientCodegenError, ProductTypeDef, TypespaceForGenerateBuilder}; use crate::{def::validate::Result, error::TypeLocation}; +use convert_case::{Case, Casing}; +use lean_string::LeanString; use spacetimedb_data_structures::error_stream::{CollectAllErrors, CombineErrors}; -use spacetimedb_data_structures::map::HashSet; +use spacetimedb_data_structures::map::{HashMap, HashSet}; use spacetimedb_lib::db::default_element_ordering::{product_type_has_default_ordering, sum_type_has_default_ordering}; -use spacetimedb_lib::db::raw_def::v10::{reducer_default_err_return_type, reducer_default_ok_return_type}; +use spacetimedb_lib::db::raw_def::v10::{ + reducer_default_err_return_type, reducer_default_ok_return_type, CaseConversionPolicy, +}; use spacetimedb_lib::db::raw_def::v9::RawViewDefV9; use spacetimedb_lib::ProductType; use spacetimedb_primitives::col_list; @@ -32,6 +37,8 @@ pub fn validate(def: RawModuleDefV9) -> Result { type_namespace: Default::default(), lifecycle_reducers: Default::default(), typespace_for_generate: TypespaceForGenerate::builder(&typespace, known_type_definitions), + case_policy: CaseConversionPolicy::None, + explicit_names: ExplicitNamesLookup::default(), }, }; @@ -195,23 +202,20 @@ impl ModuleValidatorV9<'_> { }) })?; - let mut table_in_progress = TableValidator { - raw_name: raw_table_name.clone(), - product_type_ref, - product_type, - module_validator: &mut self.core, - has_sequence: Default::default(), - }; + let mut table_in_progress = + TableValidator::new(raw_table_name.clone(), product_type_ref, product_type, &mut self.core)?; + + let table_ident = table_in_progress.table_ident.clone(); let columns = (0..product_type.elements.len()) - .map(|id| table_in_progress.validate_column_def(id.into())) + .map(|id| table_in_progress.validate_column_def(id.into(), product_type)) .collect_all_errors(); let indexes = indexes .into_iter() .map(|index| { table_in_progress - .validate_index_def(index, RawModuleDefVersion::V9OrEarlier) + .validate_index_def_v9(index) .map(|index| (index.name.clone(), index)) }) .collect_all_errors::>(); @@ -222,7 +226,9 @@ impl ModuleValidatorV9<'_> { .into_iter() .map(|constraint| { table_in_progress - .validate_constraint_def(constraint) + .validate_constraint_def(constraint, |name, cols| { + name.unwrap_or_else(|| generate_unique_constraint_name(&table_ident, product_type, cols)) + }) .map(|constraint| (constraint.name.clone(), constraint)) }) .collect_all_errors() @@ -484,7 +490,7 @@ impl ModuleValidatorV9<'_> { ¶ms, ¶ms_for_generate, &mut self.core, - ); + )?; // Views have the same interface as tables and therefore must be registered in the global namespace. // @@ -497,7 +503,7 @@ impl ModuleValidatorV9<'_> { let n = product_type.elements.len(); let return_columns = (0..n) - .map(|id| view_in_progress.validate_view_column_def(id.into())) + .map(|id| view_in_progress.validate_view_column_def(id.into(), product_type)) .collect_all_errors(); let n = params.elements.len(); @@ -532,7 +538,7 @@ impl ModuleValidatorV9<'_> { tables: &HashMap, cdv: &RawColumnDefaultValueV9, ) -> Result { - let table_name = identifier(cdv.table.clone())?; + let table_name = self.core.resolve_identifier_with_case(cdv.table.clone())?; // Extract the table. We cannot make progress otherwise. let table = tables.get(&table_name).ok_or_else(|| ValidationError::TableNotFound { @@ -588,9 +594,124 @@ pub(crate) struct CoreValidator<'a> { /// Reducers that play special lifecycle roles. pub(crate) lifecycle_reducers: EnumMap>, + + pub(crate) case_policy: CaseConversionPolicy, + + pub(crate) explicit_names: ExplicitNamesLookup, +} + +pub(crate) fn identifier(raw: RawIdentifier) -> Result { + Identifier::new(RawIdentifier::new(LeanString::from_utf8(raw.as_bytes()).unwrap())) + .map_err(|error| ValidationError::IdentifierError { error }.into()) } impl CoreValidator<'_> { + fn resolve_identifier( + &self, + source: RawIdentifier, + lookup: &HashMap, + ) -> Result { + if let Some(canonical_name) = lookup.get(&source) { + Identifier::new(canonical_name.clone()).map_err(|error| ValidationError::IdentifierError { error }.into()) + } else { + self.resolve_identifier_with_case(source) + } + } + + pub(crate) fn resolve_table_ident(&self, source: RawIdentifier) -> Result { + self.resolve_identifier(source, &self.explicit_names.tables) + } + + pub(crate) fn resolve_function_ident(&self, source: RawIdentifier) -> Result { + self.resolve_identifier(source, &self.explicit_names.functions) + } + + pub(crate) fn resolve_index_ident(&self, source: RawIdentifier) -> Result { + self.resolve_identifier(source, &self.explicit_names.indexes) + } + + /// Apply case conversion to an identifier. + pub(crate) fn resolve_identifier_with_case(&self, raw: RawIdentifier) -> Result { + let ident = convert(raw, self.case_policy); + + Identifier::new(ident.into()).map_err(|error| ValidationError::IdentifierError { error }.into()) + } + + /// Convert a raw identifier to a canonical type name. + /// + /// IMPORTANT: For all policies except `None`, type names are converted to PascalCase, + /// unless explicitly specified by the user. + pub(crate) fn resolve_type_with_case(&self, raw: RawIdentifier) -> Result { + let mut ident = raw.to_string(); + if !matches!(self.case_policy, CaseConversionPolicy::None) { + ident = ident.to_case(Case::Pascal); + } + + Identifier::new(ident.into()).map_err(|error| ValidationError::IdentifierError { error }.into()) + } + + // Recursive function to change typenames in the typespace according to the case conversion + // policy. + pub(crate) fn typespace_case_conversion(case_policy: CaseConversionPolicy, typespace: &mut Typespace) { + let case_policy_for_enum_variants = if matches!(case_policy, CaseConversionPolicy::SnakeCase) { + CaseConversionPolicy::CamelCase + } else { + case_policy + }; + + for ty in &mut typespace.types { + Self::convert_algebraic_type(ty, case_policy, case_policy_for_enum_variants); + } + } + + // Recursively convert names in an AlgebraicType + fn convert_algebraic_type( + ty: &mut AlgebraicType, + case_policy: CaseConversionPolicy, + case_policy_for_enum_variants: CaseConversionPolicy, + ) { + if ty.is_special() { + return; + } + match ty { + AlgebraicType::Product(product) => { + for element in &mut product.elements.iter_mut() { + // Convert the element name if it exists + if let Some(name) = element.name() { + let new_name = convert(name.clone(), case_policy); + element.name = Some(new_name.into()); + } + // Recursively convert the element's type + Self::convert_algebraic_type( + &mut element.algebraic_type, + case_policy, + case_policy_for_enum_variants, + ); + } + } + AlgebraicType::Sum(sum) => { + for variant in &mut sum.variants.iter_mut() { + // Convert the variant name if it exists + if let Some(name) = variant.name() { + let new_name = convert(name.clone(), case_policy_for_enum_variants); + variant.name = Some(new_name.into()) + } + // Recursively convert the variant's type + Self::convert_algebraic_type( + &mut variant.algebraic_type, + case_policy, + case_policy_for_enum_variants, + ); + } + } + AlgebraicType::Array(array) => { + // Arrays contain a base type that might need conversion + Self::convert_algebraic_type(&mut array.elem_ty, case_policy, case_policy_for_enum_variants); + } + _ => {} + } + } + pub(crate) fn params_for_generate( &mut self, params: &ProductType, @@ -612,7 +733,7 @@ impl CoreValidator<'_> { } .into() }) - .and_then(identifier); + .and_then(|s| self.resolve_identifier_with_case(s)); let ty_use = self.validate_for_type_use(location, ¶m.algebraic_type); (param_name, ty_use).combine_errors() }) @@ -689,8 +810,13 @@ impl CoreValidator<'_> { name: unscoped_name, scope, } = name; - let unscoped_name = identifier(unscoped_name); - let scope = Vec::from(scope).into_iter().map(identifier).collect_all_errors(); + + let unscoped_name = self.resolve_type_with_case(unscoped_name); + let scope = Vec::from(scope) + .into_iter() + .map(|t| self.resolve_type_with_case(t)) + .collect(); + let name = (unscoped_name, scope) .combine_errors() .and_then(|(unscoped_name, scope)| { @@ -750,7 +876,7 @@ impl CoreValidator<'_> { pub(crate) fn validate_schedule_def( &mut self, table_name: RawIdentifier, - name: Identifier, + name: RawIdentifier, function_name: RawIdentifier, product_type: &ProductType, schedule_at_col: ColId, @@ -777,14 +903,14 @@ impl CoreValidator<'_> { } .into() }); - let table_name = identifier(table_name)?; - let name_res = self.add_to_global_namespace(name.clone().into(), table_name); - let function_name = identifier(function_name); + let table_name = self.resolve_table_ident(table_name)?; + let name_res = self.add_to_global_namespace(name.clone(), table_name); + let function_name = self.resolve_function_ident(function_name); let (_, (at_column, id_column), function_name) = (name_res, at_id, function_name).combine_errors()?; Ok(ScheduleDef { - name, + name: Identifier::new(name).map_err(|error| ValidationError::IdentifierError { error })?, at_column, id_column, function_name, @@ -816,18 +942,12 @@ impl<'a, 'b> ViewValidator<'a, 'b> { params: &'a ProductType, params_for_generate: &'a [(Identifier, AlgebraicTypeUse)], module_validator: &'a mut CoreValidator<'b>, - ) -> Self { - Self { - inner: TableValidator { - raw_name, - product_type_ref, - product_type, - module_validator, - has_sequence: Default::default(), - }, + ) -> Result { + Ok(Self { + inner: TableValidator::new(raw_name, product_type_ref, product_type, module_validator)?, params, params_for_generate, - } + }) } pub(crate) fn validate_param_column_def(&mut self, col_id: ColId) -> Result { @@ -842,7 +962,7 @@ impl<'a, 'b> ViewValidator<'a, 'b> { .get(col_id.idx()) .expect("enumerate is generating an out-of-range index..."); - let name: Result = identifier( + let name: Result = self.inner.module_validator.resolve_identifier_with_case( column .name() .cloned() @@ -855,7 +975,10 @@ impl<'a, 'b> ViewValidator<'a, 'b> { // // This is necessary because we require `ErrorStream` to be nonempty. // We need to put something in there if the view name is invalid. - let view_name = identifier(self.inner.raw_name.clone()); + let view_name = self + .inner + .module_validator + .resolve_identifier_with_case(self.inner.raw_name.clone()); let (name, view_name) = (name, view_name).combine_errors()?; @@ -868,8 +991,14 @@ impl<'a, 'b> ViewValidator<'a, 'b> { }) } - pub(crate) fn validate_view_column_def(&mut self, col_id: ColId) -> Result { - self.inner.validate_column_def(col_id).map(ViewColumnDef::from) + pub(crate) fn validate_view_column_def( + &mut self, + col_id: ColId, + product_type: &'a ProductType, + ) -> Result { + self.inner + .validate_column_def(col_id, product_type) + .map(ViewColumnDef::from) } pub(crate) fn add_to_global_namespace(&mut self, name: RawIdentifier) -> Result { @@ -879,11 +1008,12 @@ impl<'a, 'b> ViewValidator<'a, 'b> { /// A partially validated table. pub(crate) struct TableValidator<'a, 'b> { - module_validator: &'a mut CoreValidator<'b>, + pub(crate) module_validator: &'a mut CoreValidator<'b>, raw_name: RawIdentifier, product_type_ref: AlgebraicTypeRef, product_type: &'a ProductType, has_sequence: HashSet, + pub(crate) table_ident: Identifier, } impl<'a, 'b> TableValidator<'a, 'b> { @@ -892,36 +1022,33 @@ impl<'a, 'b> TableValidator<'a, 'b> { product_type_ref: AlgebraicTypeRef, product_type: &'a ProductType, module_validator: &'a mut CoreValidator<'b>, - ) -> Self { - Self { + ) -> Result { + let table_ident = module_validator.resolve_table_ident(raw_name.clone())?; + Ok(Self { raw_name, product_type_ref, product_type, module_validator, has_sequence: Default::default(), - } + table_ident, + }) } /// Validate a column. /// /// Note that this accepts a `ProductTypeElement` rather than a `ColumnDef`, /// because all information about columns is stored in the `Typespace` in ABI version 9. - pub(crate) fn validate_column_def(&mut self, col_id: ColId) -> Result { - let column = &self - .product_type + pub(crate) fn validate_column_def(&mut self, col_id: ColId, product_type: &'a ProductType) -> Result { + let column = product_type .elements .get(col_id.idx()) .expect("enumerate is generating an out-of-range index..."); - let name: Result = column - .name() - .cloned() - .ok_or_else(|| { - ValidationError::UnnamedColumn { - column: self.raw_column_name(col_id), - } - .into() - }) - .and_then(identifier); + let accessor_name = column.name().cloned().ok_or_else(|| { + ValidationError::UnnamedColumn { + column: self.raw_column_name(col_id), + } + .into() + }); let ty_for_generate = self.module_validator.validate_for_type_use( || TypeLocation::InTypespace { @@ -930,24 +1057,16 @@ impl<'a, 'b> TableValidator<'a, 'b> { &column.algebraic_type, ); - // This error will be created multiple times if the table name is invalid, - // but we sort and deduplicate the error stream afterwards, - // so it isn't a huge deal. - // - // This is necessary because we require `ErrorStream` to be - // nonempty. We need to put something in there if the table name is invalid. - let table_name = identifier(self.raw_name.clone()); - - let (name, ty_for_generate, table_name) = (name, ty_for_generate, table_name).combine_errors()?; + let (accessor_name, ty_for_generate) = (accessor_name, ty_for_generate).combine_errors()?; Ok(ColumnDef { - name: name.clone(), + accessor_name: identifier(accessor_name.clone())?, + name: self.module_validator.resolve_identifier_with_case(accessor_name)?, ty: column.algebraic_type.clone(), ty_for_generate, col_id, - table_name, + table_name: self.table_ident.clone(), default_value: None, // filled in later - accessor_name: name.clone(), }) } @@ -993,7 +1112,7 @@ impl<'a, 'b> TableValidator<'a, 'b> { name, } = sequence; - let name = name.unwrap_or_else(|| generate_sequence_name(&self.raw_name, self.product_type, column)); + let name = name.unwrap_or_else(|| generate_sequence_name(&self.table_ident, self.product_type, column)); // The column for the sequence exists and is an appropriate type. let column = self.validate_col_id(&name, column).and_then(|col_id| { @@ -1052,28 +1171,84 @@ impl<'a, 'b> TableValidator<'a, 'b> { }) } - /// Validate an index definition. - pub(crate) fn validate_index_def( - &mut self, - index: RawIndexDefV9, - raw_def_version: RawModuleDefVersion, - ) -> Result { + /// Validates an index definition for V9 and earlier versions + pub(crate) fn validate_index_def_v9(&mut self, index: RawIndexDefV9) -> Result { let RawIndexDefV9 { name, algorithm: algorithm_raw, accessor_name, } = index; - let name = name.unwrap_or_else(|| generate_index_name(&self.raw_name, self.product_type, &algorithm_raw)); + let name = name.unwrap_or_else(|| generate_index_name(&self.table_ident, self.product_type, &algorithm_raw)); + + let name = self.add_to_global_namespace(name)?; + + let algorithm = self.validate_algorithm(&name, algorithm_raw)?; + + // In V9, accessor_name is used for codegen + let codegen_name = accessor_name + .map(|s| self.module_validator.resolve_identifier_with_case(s)) + .transpose()?; + + Ok(IndexDef { + name: name.clone(), + accessor_name: codegen_name, + source_name: name, + algorithm, + }) + } + + /// Validates an index definition for V10 and later versions + pub(crate) fn validate_index_def_v10(&mut self, index: RawIndexDefV10) -> Result { + let RawIndexDefV10 { + source_name, + algorithm: algorithm_raw, + accessor_name, + } = index; + + //source_name will be used as alias, hence we need to add it to the global namespace as + //well. + let source_name = source_name.expect("source_name should be provided in V10, accessor_names inside module"); + let source_name = self.add_to_global_namespace(source_name.clone())?; + + let name = if self.module_validator.explicit_names.indexes.get(&source_name).is_some() { + self.module_validator.resolve_index_ident(source_name.clone())? + } else { + identifier(generate_index_name( + &self.table_ident, + self.product_type, + &algorithm_raw, + ))? + }; + + let name = if *name.as_raw() != source_name { + self.add_to_global_namespace(name.as_raw().clone())? + } else { + name.as_raw().clone() + }; + + let algorithm = self.validate_algorithm(&name, algorithm_raw.clone())?; - let algorithm: Result = match algorithm_raw.clone() { + Ok(IndexDef { + name: name.clone(), + accessor_name: accessor_name.map(identifier).transpose()?, + source_name, + algorithm, + }) + } + + /// Common validation logic for index algorithms + fn validate_algorithm(&mut self, name: &RawIdentifier, algorithm_raw: RawIndexAlgorithm) -> Result { + match algorithm_raw { RawIndexAlgorithm::BTree { columns } => self - .validate_col_ids(&name, columns) + .validate_col_ids(name, columns) .map(|columns| BTreeAlgorithm { columns }.into()), + RawIndexAlgorithm::Hash { columns } => self - .validate_col_ids(&name, columns) + .validate_col_ids(name, columns) .map(|columns| HashAlgorithm { columns }.into()), - RawIndexAlgorithm::Direct { column } => self.validate_col_id(&name, column).and_then(|column| { + + RawIndexAlgorithm::Direct { column } => self.validate_col_id(name, column).and_then(|column| { let field = &self.product_type.elements[column.idx()]; let ty = &field.algebraic_type; let is_bad_type = match ty { @@ -1095,40 +1270,27 @@ impl<'a, 'b> TableValidator<'a, 'b> { } .into()); } + Ok(DirectAlgorithm { column }.into()) }), - algo => unreachable!("unknown algorithm {algo:?}"), - }; - - let codegen_name = match raw_def_version { - // In V9, `name` field is used for database internals but `accessor_name` supplied by module is used for client codegen. - RawModuleDefVersion::V9OrEarlier => accessor_name.map(identifier).transpose(), - - // In V10, `name` is used both for internal purpose and client codefen. - RawModuleDefVersion::V10 => { - identifier(generate_index_name(&self.raw_name, self.product_type, &algorithm_raw)).map(Some) - } - }; - - let name = self.add_to_global_namespace(name); - let (name, accessor_name, algorithm) = (name, codegen_name, algorithm).combine_errors()?; - - Ok(IndexDef { - name: name.clone(), - algorithm, - accessor_name, - source_name: name, - }) + algo => unreachable!("unknown algorithm {algo:?}"), + } } /// Validate a unique constraint definition. - pub(crate) fn validate_constraint_def(&mut self, constraint: RawConstraintDefV9) -> Result { + pub(crate) fn validate_constraint_def( + &mut self, + constraint: RawConstraintDefV9, + make_name: F, + ) -> Result + where + F: FnOnce(Option, &ColList) -> RawIdentifier, + { let RawConstraintDefV9 { name, data } = constraint; if let RawConstraintDataV9::Unique(RawUniqueConstraintDataV9 { columns }) = data { - let name = - name.unwrap_or_else(|| generate_unique_constraint_name(&self.raw_name, self.product_type, &columns)); + let name = make_name(name, &columns); let columns: Result = self.validate_col_ids(&name, columns); let name = self.add_to_global_namespace(name); @@ -1157,7 +1319,7 @@ impl<'a, 'b> TableValidator<'a, 'b> { name, } = schedule; - let name = identifier(name.unwrap_or_else(|| generate_schedule_name(&self.raw_name.clone())))?; + let name = name.unwrap_or_else(|| generate_schedule_name(&self.table_ident.clone())); self.module_validator.validate_schedule_def( self.raw_name.clone(), @@ -1175,10 +1337,10 @@ impl<'a, 'b> TableValidator<'a, 'b> { /// /// This is not used for all `Def` types. pub(crate) fn add_to_global_namespace(&mut self, name: RawIdentifier) -> Result { - let table_name = identifier(self.raw_name.clone())?; // This may report the table_name as invalid multiple times, but this will be removed // when we sort and deduplicate the error stream. - self.module_validator.add_to_global_namespace(name, table_name) + self.module_validator + .add_to_global_namespace(name, self.table_ident.clone()) } /// Validate a `ColId` for this table, returning it unmodified if valid. @@ -1259,7 +1421,13 @@ fn concat_column_names(table_type: &ProductType, selected: &ColList) -> String { } /// All indexes have this name format. -pub fn generate_index_name(table_name: &str, table_type: &ProductType, algorithm: &RawIndexAlgorithm) -> RawIdentifier { +/// +/// Generated name should not go through case conversion. +pub fn generate_index_name( + table_name: &Identifier, + table_type: &ProductType, + algorithm: &RawIndexAlgorithm, +) -> RawIdentifier { let (label, columns) = match algorithm { RawIndexAlgorithm::BTree { columns } => ("btree", columns), RawIndexAlgorithm::Direct { column } => ("direct", &col_list![*column]), @@ -1271,19 +1439,25 @@ pub fn generate_index_name(table_name: &str, table_type: &ProductType, algorithm } /// All sequences have this name format. -pub fn generate_sequence_name(table_name: &str, table_type: &ProductType, column: ColId) -> RawIdentifier { +/// +/// Generated name should not go through case conversion. +pub fn generate_sequence_name(table_name: &Identifier, table_type: &ProductType, column: ColId) -> RawIdentifier { let column_name = column_name(table_type, column); RawIdentifier::new(format!("{table_name}_{column_name}_seq")) } /// All schedules have this name format. -pub fn generate_schedule_name(table_name: &str) -> RawIdentifier { +/// +/// Generated name should not go through case conversion. +pub fn generate_schedule_name(table_name: &Identifier) -> RawIdentifier { RawIdentifier::new(format!("{table_name}_sched")) } /// All unique constraints have this name format. +/// +/// Generated name should not go through case conversion. pub fn generate_unique_constraint_name( - table_name: &str, + table_name: &Identifier, product_type: &ProductType, columns: &ColList, ) -> RawIdentifier { @@ -1293,8 +1467,18 @@ pub fn generate_unique_constraint_name( /// Helper to create an `Identifier` from a `RawIdentifier` with the appropriate error type. /// TODO: memoize this. -pub(crate) fn identifier(name: RawIdentifier) -> Result { - Identifier::new(name).map_err(|error| ValidationError::IdentifierError { error }.into()) +//pub(crate) fn identifier(name: RawIdentifier) -> Result { +// Identifier::new(name).map_err(|error| ValidationError::IdentifierError { error }.into()) +//} +pub fn convert(identifier: RawIdentifier, policy: CaseConversionPolicy) -> String { + let identifier = identifier.to_string(); + + match policy { + CaseConversionPolicy::SnakeCase => identifier.to_case(Case::Snake), + CaseConversionPolicy::CamelCase => identifier.to_case(Case::Camel), + CaseConversionPolicy::PascalCase => identifier.to_case(Case::Pascal), + CaseConversionPolicy::None | _ => identifier, + } } /// Check that every [`ScheduleDef`]'s `function_name` refers to a real reducer or procedure @@ -1420,7 +1604,7 @@ fn process_column_default_value( // Validate the default value let validated_value = validator.validate_column_default_value(tables, cdv)?; - let table_name = identifier(cdv.table.clone())?; + let table_name = validator.core.resolve_identifier_with_case(cdv.table.clone())?; let table = tables .get_mut(&table_name) .ok_or_else(|| ValidationError::TableNotFound { diff --git a/crates/schema/src/identifier.rs b/crates/schema/src/identifier.rs index 64ea8a46fec..06a396ec012 100644 --- a/crates/schema/src/identifier.rs +++ b/crates/schema/src/identifier.rs @@ -81,7 +81,6 @@ impl Identifier { Ok(Identifier { id: name }) } - #[cfg(any(test, feature = "test"))] pub fn for_test(name: impl AsRef) -> Self { Identifier::new(RawIdentifier::new(name.as_ref())).unwrap() } diff --git a/crates/schema/src/reducer_name.rs b/crates/schema/src/reducer_name.rs index 1ec596019a0..94158f9d4e3 100644 --- a/crates/schema/src/reducer_name.rs +++ b/crates/schema/src/reducer_name.rs @@ -12,7 +12,6 @@ impl ReducerName { Self(id) } - #[cfg(any(test, feature = "test"))] pub fn for_test(name: &str) -> Self { Self(Identifier::for_test(name)) } diff --git a/crates/smoketests/modules/sql-format/src/lib.rs b/crates/smoketests/modules/sql-format/src/lib.rs index b00d643394e..4a18c859190 100644 --- a/crates/smoketests/modules/sql-format/src/lib.rs +++ b/crates/smoketests/modules/sql-format/src/lib.rs @@ -127,19 +127,18 @@ pub fn test(ctx: &ReducerContext) { pub struct AccessorRow { #[primary_key] id: u32, - #[sats(name = "canonical_value")] - accessor_value: u32, + accessor_value1: u32, } #[spacetimedb::reducer(init)] pub fn init(ctx: &ReducerContext) { ctx.db.accessor_table().insert(AccessorRow { id: 1, - accessor_value: 7, + accessor_value1: 7, }); } #[spacetimedb::view(accessor = accessor_filtered, name = "canonical_filtered", public)] fn accessor_filtered(ctx: &ViewContext) -> impl Query { - ctx.from.accessor_table().r#where(|r| r.accessor_value.eq(7)) + ctx.from.accessor_table().r#where(|r| r.accessor_value1.eq(7)) } diff --git a/crates/smoketests/tests/add_remove_index.rs b/crates/smoketests/tests/add_remove_index.rs index 7df922dbd67..9b6eaa53478 100644 --- a/crates/smoketests/tests/add_remove_index.rs +++ b/crates/smoketests/tests/add_remove_index.rs @@ -1,6 +1,6 @@ use spacetimedb_smoketests::Smoketest; -const JOIN_QUERY: &str = "select t1.* from t1 join t2 on t1.id = t2.id where t2.id = 1001"; +const JOIN_QUERY: &str = "select t_1.* from t_1 join t_2 on t_1.id = t_2.id where t_2.id = 1001"; /// First publish without the indices, /// then add the indices, and publish, diff --git a/crates/smoketests/tests/auto_inc.rs b/crates/smoketests/tests/auto_inc.rs index 101694372ac..96d25385d18 100644 --- a/crates/smoketests/tests/auto_inc.rs +++ b/crates/smoketests/tests/auto_inc.rs @@ -1,36 +1,81 @@ use spacetimedb_smoketests::Smoketest; -const INT_TYPES: &[&str] = &["u8", "u16", "u32", "u64", "u128", "i8", "i16", "i32", "i64", "i128"]; +struct IntTy { + ty: &'static str, + name: &'static str, +} + +const INT_TYPES: &[IntTy] = &[ + IntTy { ty: "u8", name: "u_8" }, + IntTy { + ty: "u16", + name: "u_16", + }, + IntTy { + ty: "u32", + name: "u_32", + }, + IntTy { + ty: "u64", + name: "u_64", + }, + IntTy { + ty: "u128", + name: "u_128", + }, + IntTy { ty: "i8", name: "i_8" }, + IntTy { + ty: "i16", + name: "i_16", + }, + IntTy { + ty: "i32", + name: "i_32", + }, + IntTy { + ty: "i64", + name: "i_64", + }, + IntTy { + ty: "i128", + name: "i_128", + }, +]; #[test] fn test_autoinc_basic() { let test = Smoketest::builder().precompiled_module("autoinc-basic").build(); - for int_ty in INT_TYPES { - test.call(&format!("add_{int_ty}"), &[r#""Robert""#, "1"]).unwrap(); - test.call(&format!("add_{int_ty}"), &[r#""Julie""#, "2"]).unwrap(); - test.call(&format!("add_{int_ty}"), &[r#""Samantha""#, "3"]).unwrap(); - test.call(&format!("say_hello_{int_ty}"), &[]).unwrap(); + for int in INT_TYPES { + test.call(&format!("add_{}", int.name), &[r#""Robert""#, "1"]).unwrap(); + test.call(&format!("add_{}", int.name), &[r#""Julie""#, "2"]).unwrap(); + test.call(&format!("add_{}", int.name), &[r#""Samantha""#, "3"]) + .unwrap(); + test.call(&format!("say_hello_{}", int.name), &[]).unwrap(); let logs = test.logs(4).unwrap(); assert!( logs.iter().any(|msg| msg.contains("Hello, 3:Samantha!")), - "[{int_ty}] Expected 'Hello, 3:Samantha!' in logs, got: {:?}", + "[{}] Expected 'Hello, 3:Samantha!' in logs, got: {:?}", + int.ty, logs ); assert!( logs.iter().any(|msg| msg.contains("Hello, 2:Julie!")), - "[{int_ty}] Expected 'Hello, 2:Julie!' in logs, got: {:?}", + "[{}] Expected 'Hello, 2:Julie!' in logs, got: {:?}", + int.ty, logs ); assert!( logs.iter().any(|msg| msg.contains("Hello, 1:Robert!")), - "[{int_ty}] Expected 'Hello, 1:Robert!' in logs, got: {:?}", + "[{}] Expected 'Hello, 1:Robert!' in logs, got: {:?}", + int.ty, logs ); assert!( logs.iter().any(|msg| msg.contains("Hello, World!")), - "[{int_ty}] Expected 'Hello, World!' in logs, got: {:?}", + "[{}] Expected 'Hello, World!' in logs, got: {:?}", + int.ty, logs ); } @@ -40,36 +85,37 @@ fn test_autoinc_basic() { fn test_autoinc_unique() { let test = Smoketest::builder().precompiled_module("autoinc-unique").build(); - for int_ty in INT_TYPES { - // Insert Robert with explicit id 2 - test.call(&format!("update_{int_ty}"), &[r#""Robert""#, "2"]).unwrap(); - - // Auto-inc should assign id 1 to Success - test.call(&format!("add_new_{int_ty}"), &[r#""Success""#]).unwrap(); + for int in INT_TYPES { + test.call(&format!("update_{}", int.name), &[r#""Robert""#, "2"]) + .unwrap(); + test.call(&format!("add_new_{}", int.name), &[r#""Success""#]).unwrap(); - // Auto-inc tries to assign id 2, but Robert already has it - should fail - let result = test.call(&format!("add_new_{int_ty}"), &[r#""Failure""#]); + let result = test.call(&format!("add_new_{}", int.name), &[r#""Failure""#]); assert!( result.is_err(), - "[{int_ty}] Expected add_new to fail due to unique constraint violation" + "[{}] Expected add_new to fail due to unique constraint violation", + int.ty ); - test.call(&format!("say_hello_{int_ty}"), &[]).unwrap(); + test.call(&format!("say_hello_{}", int.name), &[]).unwrap(); let logs = test.logs(4).unwrap(); assert!( logs.iter().any(|msg| msg.contains("Hello, 2:Robert!")), - "[{int_ty}] Expected 'Hello, 2:Robert!' in logs, got: {:?}", + "[{}] Expected 'Hello, 2:Robert!' in logs, got: {:?}", + int.ty, logs ); assert!( logs.iter().any(|msg| msg.contains("Hello, 1:Success!")), - "[{int_ty}] Expected 'Hello, 1:Success!' in logs, got: {:?}", + "[{}] Expected 'Hello, 1:Success!' in logs, got: {:?}", + int.ty, logs ); assert!( logs.iter().any(|msg| msg.contains("Hello, World!")), - "[{int_ty}] Expected 'Hello, World!' in logs, got: {:?}", + "[{}] Expected 'Hello, World!' in logs, got: {:?}", + int.ty, logs ); } diff --git a/crates/smoketests/tests/pg_wire.rs b/crates/smoketests/tests/pg_wire.rs index 5300d7d1bb1..376adbcc4be 100644 --- a/crates/smoketests/tests/pg_wire.rs +++ b/crates/smoketests/tests/pg_wire.rs @@ -1,7 +1,6 @@ #![allow(clippy::disallowed_macros)] use spacetimedb_smoketests::{require_local_server, require_psql, Smoketest}; -/// Test SQL output formatting via psql #[test] fn test_sql_format() { require_psql!(); @@ -21,7 +20,7 @@ fn test_sql_format() { test.assert_psql( "quickstart", "SELECT * FROM t_ints", - r#"i8 | i16 | i32 | i64 | i128 | i256 + r#"i_8 | i_16 | i_32 | i_64 | i_128 | i_256 -----+-------+--------+----------+---------------+--------------- -25 | -3224 | -23443 | -2344353 | -234434897853 | -234434897853 (1 row)"#, @@ -31,15 +30,15 @@ fn test_sql_format() { "quickstart", "SELECT * FROM t_ints_tuple", r#"tuple ---------------------------------------------------------------------------------------------------------- - {"i8": -25, "i16": -3224, "i32": -23443, "i64": -2344353, "i128": -234434897853, "i256": -234434897853} +--------------------------------------------------------------------------------------------------------------- + {"i_8": -25, "i_16": -3224, "i_32": -23443, "i_64": -2344353, "i_128": -234434897853, "i_256": -234434897853} (1 row)"#, ); test.assert_psql( "quickstart", "SELECT * FROM t_uints", - r#"u8 | u16 | u32 | u64 | u128 | u256 + r#"u_8 | u_16 | u_32 | u_64 | u_128 | u_256 -----+------+-------+----------+---------------+--------------- 105 | 1050 | 83892 | 48937498 | 4378528978889 | 4378528978889 (1 row)"#, @@ -49,8 +48,8 @@ fn test_sql_format() { "quickstart", "SELECT * FROM t_uints_tuple", r#"tuple -------------------------------------------------------------------------------------------------------- - {"u8": 105, "u16": 1050, "u32": 83892, "u64": 48937498, "u128": 4378528978889, "u256": 4378528978889} +------------------------------------------------------------------------------------------------------------- + {"u_8": 105, "u_16": 1050, "u_32": 83892, "u_64": 48937498, "u_128": 4378528978889, "u_256": 4378528978889} (1 row)"#, ); @@ -59,8 +58,8 @@ fn test_sql_format() { "SELECT * FROM t_simple_enum", r#"id | action ----+---------- - 1 | Inactive - 2 | Active + 1 | inactive + 2 | active (2 rows)"#, ); @@ -69,7 +68,7 @@ fn test_sql_format() { "SELECT * FROM t_enum", r#"id | color ----+--------------- - 1 | {"Gray": 128} + 1 | {"gray": 128} (1 row)"#, ); } diff --git a/crates/smoketests/tests/sql.rs b/crates/smoketests/tests/sql.rs index 9d07452bee5..03b1bf45b05 100644 --- a/crates/smoketests/tests/sql.rs +++ b/crates/smoketests/tests/sql.rs @@ -9,7 +9,7 @@ fn test_sql_format() { test.assert_sql( "SELECT * FROM t_ints", - r#" i8 | i16 | i32 | i64 | i128 | i256 + r#" i_8 | i_16 | i_32 | i_64 | i_128 | i_256 -----+-------+--------+----------+---------------+--------------- -25 | -3224 | -23443 | -2344353 | -234434897853 | -234434897853"#, ); @@ -17,13 +17,13 @@ fn test_sql_format() { test.assert_sql( "SELECT * FROM t_ints_tuple", r#" tuple ---------------------------------------------------------------------------------------------------- - (i8 = -25, i16 = -3224, i32 = -23443, i64 = -2344353, i128 = -234434897853, i256 = -234434897853)"#, +--------------------------------------------------------------------------------------------------------- + (i_8 = -25, i_16 = -3224, i_32 = -23443, i_64 = -2344353, i_128 = -234434897853, i_256 = -234434897853)"#, ); test.assert_sql( "SELECT * FROM t_uints", - r#" u8 | u16 | u32 | u64 | u128 | u256 + r#" u_8 | u_16 | u_32 | u_64 | u_128 | u_256 -----+------+-------+----------+---------------+--------------- 105 | 1050 | 83892 | 48937498 | 4378528978889 | 4378528978889"#, ); @@ -31,13 +31,13 @@ fn test_sql_format() { test.assert_sql( "SELECT * FROM t_uints_tuple", r#" tuple -------------------------------------------------------------------------------------------------- - (u8 = 105, u16 = 1050, u32 = 83892, u64 = 48937498, u128 = 4378528978889, u256 = 4378528978889)"#, +------------------------------------------------------------------------------------------------------- + (u_8 = 105, u_16 = 1050, u_32 = 83892, u_64 = 48937498, u_128 = 4378528978889, u_256 = 4378528978889)"#, ); test.assert_sql( "SELECT * FROM t_others", - r#" bool | f32 | f64 | str | bytes | identity | connection_id | timestamp | duration | uuid + r#" bool | f_32 | f_64 | str | bytes | identity | connection_id | timestamp | duration | uuid ------+-----------+--------------------+-----------------------+------------------+--------------------------------------------------------------------+------------------------------------+---------------------------+-----------+---------------------------------------- true | 594806.56 | -3454353.345389043 | "This is spacetimedb" | 0x01020304050607 | 0x0000000000000000000000000000000000000000000000000000000000000001 | 0x00000000000000000000000000000000 | 1970-01-01T00:00:00+00:00 | +0.000000 | "00000000-0000-0000-0000-000000000000""#, ); @@ -45,90 +45,90 @@ fn test_sql_format() { test.assert_sql( "SELECT * FROM t_others_tuple", r#" tuple ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - (bool = true, f32 = 594806.56, f64 = -3454353.345389043, str = "This is spacetimedb", bytes = 0x01020304050607, identity = 0x0000000000000000000000000000000000000000000000000000000000000001, connection_id = 0x00000000000000000000000000000000, timestamp = 1970-01-01T00:00:00+00:00, duration = +0.000000, uuid = "00000000-0000-0000-0000-000000000000")"#, +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + (bool = true, f_32 = 594806.56, f_64 = -3454353.345389043, str = "This is spacetimedb", bytes = 0x01020304050607, identity = 0x0000000000000000000000000000000000000000000000000000000000000001, connection_id = 0x00000000000000000000000000000000, timestamp = 1970-01-01T00:00:00+00:00, duration = +0.000000, uuid = "00000000-0000-0000-0000-000000000000")"#, ); test.assert_sql( "SELECT * FROM t_enums", r#" bool_opt | bool_result | action ---------------+--------------+--------------- - (some = true) | (ok = false) | (Active = ())"#, + (some = true) | (ok = false) | (active = ())"#, ); test.assert_sql( "SELECT * FROM t_enums_tuple", r#" tuple -------------------------------------------------------------------------------- - (bool_opt = (some = true), bool_result = (ok = false), action = (Active = ()))"#, + (bool_opt = (some = true), bool_result = (ok = false), action = (active = ()))"#, ); } -// #[test] -fn _test_sql_resolves_accessor_and_canonical_names_for_table() { +#[test] +fn test_sql_resolves_accessor_and_canonical_names_for_table() { let test = Smoketest::builder().precompiled_module("sql-format").build(); test.assert_sql( "SELECT * FROM accessor_table", - r#" id | accessor_value -----+---------------- + r#" id | accessor_value_1 +----+------------------ 1 | 7"#, ); test.assert_sql( "SELECT * FROM canonical_table", - r#" id | accessor_value -----+---------------- + r#" id | accessor_value_1 +----+------------------ 1 | 7"#, ); } -// #[test] -fn _test_sql_resolves_accessor_and_canonical_names_for_view() { +#[test] +fn test_sql_resolves_accessor_and_canonical_names_for_view() { let test = Smoketest::builder().precompiled_module("sql-format").build(); test.assert_sql( "SELECT * FROM accessor_filtered", - r#" id | accessor_value -----+---------------- + r#" id | accessor_value_1 +----+------------------ 1 | 7"#, ); test.assert_sql( "SELECT * FROM canonical_filtered", - r#" id | accessor_value -----+---------------- + r#" id | accessor_value_1 +----+------------------ 1 | 7"#, ); } -// #[test] -fn _test_sql_resolves_accessor_and_canonical_names_for_column() { +#[test] +fn test_sql_resolves_accessor_and_canonical_names_for_column() { let test = Smoketest::builder().precompiled_module("sql-format").build(); test.assert_sql( - "SELECT accessor_value FROM accessor_table", - r#" accessor_value ----------------- + "SELECT accessor_value_1 FROM accessor_table", + r#" accessor_value_1 +------------------ 7"#, ); test.assert_sql( - "SELECT canonical_value FROM accessor_table", - r#" canonical_value ----------------- + "SELECT accessor_value1 FROM accessor_table", + r#" accessor_value1 +----------------- 7"#, ); } -// #[test] -fn _test_query_builder_resolves_accessor_and_canonical_names() { +#[test] +fn test_query_builder_resolves_accessor_and_canonical_names() { let test = Smoketest::builder().precompiled_module("sql-format").build(); test.assert_sql( "SELECT * FROM accessor_filtered", - r#" id | accessor_value -----+---------------- + r#" id | accessor_value_1 +----+------------------ 1 | 7"#, ); } diff --git a/crates/standalone/src/subcommands/extract_schema.rs b/crates/standalone/src/subcommands/extract_schema.rs index c9b35369957..efc77960195 100644 --- a/crates/standalone/src/subcommands/extract_schema.rs +++ b/crates/standalone/src/subcommands/extract_schema.rs @@ -4,7 +4,7 @@ use anyhow::Context; use clap::{ArgMatches, CommandFactory, FromArgMatches}; use spacetimedb::host::extract_schema; use spacetimedb::messages::control_db; -use spacetimedb_lib::{sats, RawModuleDef}; +use spacetimedb_lib::{db::raw_def::v10::RawModuleDefV10, sats, RawModuleDef}; /// Extracts the module schema from a local module file. /// WARNING: This command is UNSTABLE and subject to breaking changes. @@ -67,7 +67,7 @@ pub async fn exec(args: &ArgMatches) -> anyhow::Result<()> { let module_def = extract_schema(program_bytes.into(), host_type.into()).await?; - let raw_def = RawModuleDef::V10(module_def.into()); + let raw_def = RawModuleDef::V10(RawModuleDefV10::from(module_def)); serde_json::to_writer(std::io::stdout().lock(), &sats::serde::SerdeWrapper(raw_def))?; diff --git a/crates/testing/tests/standalone_integration_test.rs b/crates/testing/tests/standalone_integration_test.rs index 97081c3e965..27aff909972 100644 --- a/crates/testing/tests/standalone_integration_test.rs +++ b/crates/testing/tests/standalone_integration_test.rs @@ -284,7 +284,7 @@ fn test_call_query_macro() { { "CallReducer": { "reducer": "test", "args": - "[ { \"x\": 0, \"y\": 2, \"z\": \"Macro\" }, { \"foo\": \"Foo\" }, { \"Foo\": {} }, { \"Baz\": \"buzz\" } ]", + "[ { \"x\": 0, \"y\": 2, \"z\": \"Macro\" }, { \"foo\": \"Foo\" }, { \"foo\": {} }, { \"baz\": \"buzz\" } ]", "request_id": 0, "flags": 0 } }"# diff --git a/demo/Blackholio/client-unity/Assets/PlayModeTests/PlayModeExampleTest.cs b/demo/Blackholio/client-unity/Assets/PlayModeTests/PlayModeExampleTest.cs index a558f06c523..ea1216acfb1 100644 --- a/demo/Blackholio/client-unity/Assets/PlayModeTests/PlayModeExampleTest.cs +++ b/demo/Blackholio/client-unity/Assets/PlayModeTests/PlayModeExampleTest.cs @@ -71,7 +71,7 @@ public IEnumerator CreatePlayerAndTestDecay() while (!playerCreated) yield return null; Debug.Assert(GameManager.LocalIdentity != default, "GameManager.localIdentity != default"); - var player = GameManager.Conn.Db.Player.PlayerIdentityIdxBtree.Find(GameManager.LocalIdentity); + var player = GameManager.Conn.Db.Player.Identity.Find(GameManager.LocalIdentity); Debug.Assert(player != null, nameof(player) + " != null"); var circle = GameManager.Conn.Db.Circle.Iter().FirstOrDefault(a => a.PlayerId == player.PlayerId); @@ -87,13 +87,13 @@ public IEnumerator CreatePlayerAndTestDecay() while (foodEaten < 50) { Debug.Assert(circle != null, nameof(circle) + " != null"); - var ourEntity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId); + var ourEntity = GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId); var toChosenFood = new UnityEngine.Vector2(1000, 0); int chosenFoodId = 0; foreach (var food in GameManager.Conn.Db.Food.Iter()) { var thisFoodId = food.EntityId; - var foodEntity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(thisFoodId); + var foodEntity = GameManager.Conn.Db.Entity.EntityId.Find(thisFoodId); Debug.Assert(foodEntity != null, nameof(foodEntity) + " != null"); Debug.Assert(ourEntity != null, nameof(ourEntity) + " != null"); var foodEntityPosition = foodEntity.Position; @@ -109,10 +109,10 @@ public IEnumerator CreatePlayerAndTestDecay() } } - if (GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(chosenFoodId) != null) + if (GameManager.Conn.Db.Entity.EntityId.Find(chosenFoodId) != null) { - var ourNewEntity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId); - var foodEntity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(chosenFoodId); + var ourNewEntity = GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId); + var foodEntity = GameManager.Conn.Db.Entity.EntityId.Find(chosenFoodId); Debug.Assert(foodEntity != null, nameof(foodEntity) + " != null"); Debug.Assert(ourNewEntity != null, nameof(ourNewEntity) + " != null"); var toThisFood = (Vector2)foodEntity.Position - (Vector2)ourNewEntity.Position; @@ -130,9 +130,9 @@ public IEnumerator CreatePlayerAndTestDecay() PlayerController.Local.SetTestInput(UnityEngine.Vector2.zero); Debug.Assert(circle != null, nameof(circle) + " != null"); - var massStart = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId)!.Mass; + var massStart = GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId)!.Mass; yield return new WaitForSeconds(10); - var massEnd = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId)!.Mass; + var massEnd = GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId)!.Mass; Debug.Assert(massEnd < massStart, "Mass should have decayed"); } @@ -260,7 +260,7 @@ public IEnumerator ReconnectionViaReloadingScene() while (!playerCreated) yield return null; Debug.Assert(GameManager.LocalIdentity != default, "GameManager.localIdentity != default"); - var player = GameManager.Conn.Db.Player.PlayerIdentityIdxBtree.Find(GameManager.LocalIdentity); + var player = GameManager.Conn.Db.Player.Identity.Find(GameManager.LocalIdentity); Debug.Assert(player != null, nameof(player) + " != null"); var circle = GameManager.Conn.Db.Circle.Iter().FirstOrDefault(a => a.PlayerId == player.PlayerId); @@ -273,7 +273,7 @@ public IEnumerator ReconnectionViaReloadingScene() SceneManager.LoadScene("Scenes/Main"); while (!connected || !subscribed) yield return null; - var newPlayer = GameManager.Conn.Db.Player.PlayerIdentityIdxBtree.Find(GameManager.LocalIdentity); + var newPlayer = GameManager.Conn.Db.Player.Identity.Find(GameManager.LocalIdentity); Debug.Assert(player.PlayerId == newPlayer.PlayerId, "PlayerIds should match!"); var newCircle = GameManager.Conn.Db.Circle.Iter().FirstOrDefault(a => a.PlayerId == newPlayer.PlayerId); Debug.Assert(circle.EntityId == newCircle.EntityId, "Circle EntityIds should match!"); diff --git a/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs b/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs index 302cd44d639..cc960cb3a8b 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/EntityController.cs @@ -23,7 +23,7 @@ protected virtual void Spawn(int entityId) { EntityId = entityId; - var entity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(entityId); + var entity = GameManager.Conn.Db.Entity.EntityId.Find(entityId); LerpStartPosition = LerpTargetPosition = transform.position = (Vector2)entity.Position; transform.localScale = Vector3.one; TargetScale = MassToScale(entity.Mass); diff --git a/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs b/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs index 90eef78b76a..76f32372602 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/GameManager.cs @@ -109,11 +109,11 @@ private void HandleSubscriptionApplied(SubscriptionEventContext ctx) // Once we have the initial subscription sync'd to the client cache // Get the world size from the config table and set up the arena - var worldSize = Conn.Db.Config.ConfigIdIdxBtree.Find(0).WorldSize; + var worldSize = Conn.Db.Config.Id.Find(0).WorldSize; SetupArena(worldSize); // Check to see if we already have a player, if we don't we'll need to create one - var player = ctx.Db.Player.PlayerIdentityIdxBtree.Find(LocalIdentity); + var player = ctx.Db.Player.Identity.Find(LocalIdentity); if (string.IsNullOrEmpty(player.Name)) { // The player has to choose a username @@ -131,7 +131,7 @@ private void HandleSubscriptionApplied(SubscriptionEventContext ctx) else { // We already have a player - if (ctx.Db.Circle.CirclePlayerIdIdxBtree.Filter(player.PlayerId).Any()) + if (ctx.Db.Circle.PlayerId.Filter(player.PlayerId).Any()) { // We already have at least one circle, we should just be able to start // playing immediately. @@ -236,7 +236,7 @@ private static PlayerController GetOrCreatePlayer(int playerId) { if (!Players.TryGetValue(playerId, out var playerController)) { - var player = Conn.Db.Player.PlayerPlayerIdIdxBtree.Find(playerId); + var player = Conn.Db.Player.PlayerId.Find(playerId); playerController = PrefabManager.SpawnPlayer(player); Players.Add(playerId, playerController); } diff --git a/demo/Blackholio/client-unity/Assets/Scripts/PlayerController.cs b/demo/Blackholio/client-unity/Assets/Scripts/PlayerController.cs index 23b1403308d..be37719fefb 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/PlayerController.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/PlayerController.cs @@ -16,7 +16,7 @@ public class PlayerController : MonoBehaviour private Vector2? LockInputPosition; private List OwnedCircles = new List(); - public string Username => GameManager.Conn.Db.Player.PlayerIdentityIdxBtree.Find(PlayerIdentity).Name; + public string Username => GameManager.Conn.Db.Player.Identity.Find(PlayerIdentity).Name; public int NumberOfOwnedCircles => OwnedCircles.Count; public bool IsLocalPlayer => this == Local; @@ -59,7 +59,7 @@ public void OnCircleDeleted(CircleController deletedCircle) public int TotalMass() { return (int)OwnedCircles - .Select(circle => GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId)) + .Select(circle => GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId)) .Sum(e => e?.Mass ?? 0); //If this entity is being deleted on the same frame that we're moving, we can have a null entity here. } @@ -74,7 +74,7 @@ public int TotalMass() float totalMass = 0; foreach (var circle in OwnedCircles) { - var entity = GameManager.Conn.Db.Entity.EntityEntityIdIdxBtree.Find(circle.EntityId); + var entity = GameManager.Conn.Db.Entity.EntityId.Find(circle.EntityId); var position = circle.transform.position; totalPos += (Vector2)position * entity.Mass; totalMass += entity.Mass; diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs index 90582de9c72..423b77b5cf4 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit 6a6b5a6616f0578aa641bc0689691f953b13feb8). #nullable enable diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs index adec597e502..8ae958b6c7a 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Circle.g.cs @@ -17,28 +17,28 @@ public sealed class CircleHandle : RemoteTableHandle { protected override string RemoteTableName => "circle"; - public sealed class CircleEntityIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class EntityIdUniqueIndex : UniqueIndexBase { protected override int GetKey(Circle row) => row.EntityId; - public CircleEntityIdIdxBtreeUniqueIndex(CircleHandle table) : base(table) { } + public EntityIdUniqueIndex(CircleHandle table) : base(table) { } } - public readonly CircleEntityIdIdxBtreeUniqueIndex CircleEntityIdIdxBtree; + public readonly EntityIdUniqueIndex EntityId; - public sealed class CirclePlayerIdIdxBtreeIndex : BTreeIndexBase + public sealed class PlayerIdIndex : BTreeIndexBase { protected override int GetKey(Circle row) => row.PlayerId; - public CirclePlayerIdIdxBtreeIndex(CircleHandle table) : base(table) { } + public PlayerIdIndex(CircleHandle table) : base(table) { } } - public readonly CirclePlayerIdIdxBtreeIndex CirclePlayerIdIdxBtree; + public readonly PlayerIdIndex PlayerId; internal CircleHandle(DbConnection conn) : base(conn) { - CircleEntityIdIdxBtree = new(this); - CirclePlayerIdIdxBtree = new(this); + EntityId = new(this); + PlayerId = new(this); } protected override object GetPrimaryKey(Circle row) => row.EntityId; diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs index d832af49343..d6340962dee 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Config.g.cs @@ -17,18 +17,18 @@ public sealed class ConfigHandle : RemoteTableHandle { protected override string RemoteTableName => "config"; - public sealed class ConfigIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override int GetKey(Config row) => row.Id; - public ConfigIdIdxBtreeUniqueIndex(ConfigHandle table) : base(table) { } + public IdUniqueIndex(ConfigHandle table) : base(table) { } } - public readonly ConfigIdIdxBtreeUniqueIndex ConfigIdIdxBtree; + public readonly IdUniqueIndex Id; internal ConfigHandle(DbConnection conn) : base(conn) { - ConfigIdIdxBtree = new(this); + Id = new(this); } protected override object GetPrimaryKey(Config row) => row.Id; diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs index 43e0b9215d7..e15bec6af06 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Entity.g.cs @@ -17,18 +17,18 @@ public sealed class EntityHandle : RemoteTableHandle { protected override string RemoteTableName => "entity"; - public sealed class EntityEntityIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class EntityIdUniqueIndex : UniqueIndexBase { protected override int GetKey(Entity row) => row.EntityId; - public EntityEntityIdIdxBtreeUniqueIndex(EntityHandle table) : base(table) { } + public EntityIdUniqueIndex(EntityHandle table) : base(table) { } } - public readonly EntityEntityIdIdxBtreeUniqueIndex EntityEntityIdIdxBtree; + public readonly EntityIdUniqueIndex EntityId; internal EntityHandle(DbConnection conn) : base(conn) { - EntityEntityIdIdxBtree = new(this); + EntityId = new(this); } protected override object GetPrimaryKey(Entity row) => row.EntityId; diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs index 1a1883b1c2f..7b62f84d523 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Food.g.cs @@ -17,18 +17,18 @@ public sealed class FoodHandle : RemoteTableHandle { protected override string RemoteTableName => "food"; - public sealed class FoodEntityIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class EntityIdUniqueIndex : UniqueIndexBase { protected override int GetKey(Food row) => row.EntityId; - public FoodEntityIdIdxBtreeUniqueIndex(FoodHandle table) : base(table) { } + public EntityIdUniqueIndex(FoodHandle table) : base(table) { } } - public readonly FoodEntityIdIdxBtreeUniqueIndex FoodEntityIdIdxBtree; + public readonly EntityIdUniqueIndex EntityId; internal FoodHandle(DbConnection conn) : base(conn) { - FoodEntityIdIdxBtree = new(this); + EntityId = new(this); } protected override object GetPrimaryKey(Food row) => row.EntityId; diff --git a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs index 0c3082d45f1..9250cf376e0 100644 --- a/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs +++ b/demo/Blackholio/client-unity/Assets/Scripts/autogen/Tables/Player.g.cs @@ -17,28 +17,28 @@ public sealed class PlayerHandle : RemoteTableHandle { protected override string RemoteTableName => "player"; - public sealed class PlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdentityUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity; - public PlayerIdentityIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public IdentityUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerIdentityIdxBtreeUniqueIndex PlayerIdentityIdxBtree; + public readonly IdentityUniqueIndex Identity; - public sealed class PlayerPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class PlayerIdUniqueIndex : UniqueIndexBase { protected override int GetKey(Player row) => row.PlayerId; - public PlayerPlayerIdIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public PlayerIdUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerPlayerIdIdxBtreeUniqueIndex PlayerPlayerIdIdxBtree; + public readonly PlayerIdUniqueIndex PlayerId; internal PlayerHandle(DbConnection conn) : base(conn) { - PlayerIdentityIdxBtree = new(this); - PlayerPlayerIdIdxBtree = new(this); + Identity = new(this); + PlayerId = new(this); } protected override object GetPrimaryKey(Player row) => row.Identity; diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/SpacetimeDBClient.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/SpacetimeDBClient.g.cpp index 471fac9e789..8071a62f7fa 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/SpacetimeDBClient.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/SpacetimeDBClient.g.cpp @@ -6,6 +6,7 @@ #include "BSATN/UEBSATNHelpers.h" #include "ModuleBindings/Tables/CircleTable.g.h" #include "ModuleBindings/Tables/ConfigTable.g.h" +#include "ModuleBindings/Tables/ConsumeEntityEventTable.g.h" #include "ModuleBindings/Tables/EntityTable.g.h" #include "ModuleBindings/Tables/FoodTable.g.h" #include "ModuleBindings/Tables/PlayerTable.g.h" @@ -63,6 +64,7 @@ UDbConnection::UDbConnection(const FObjectInitializer& ObjectInitializer) : Supe RegisterTable(TEXT("circle"), Db->Circle); RegisterTable(TEXT("config"), Db->Config); + RegisterTable(TEXT("consume_entity_event"), Db->ConsumeEntityEvent); RegisterTable(TEXT("entity"), Db->Entity); RegisterTable(TEXT("food"), Db->Food); RegisterTable(TEXT("player"), Db->Player); @@ -103,6 +105,7 @@ void URemoteTables::Initialize() /** Creating tables */ Circle = NewObject(this); Config = NewObject(this); + ConsumeEntityEvent = NewObject(this); Entity = NewObject(this); Food = NewObject(this); Player = NewObject(this); @@ -111,6 +114,7 @@ void URemoteTables::Initialize() /** Initialization */ Circle->PostInitialize(); Config->PostInitialize(); + ConsumeEntityEvent->PostInitialize(); Entity->PostInitialize(); Food->PostInitialize(); Player->PostInitialize(); diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/CircleTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/CircleTable.g.cpp index 0cf80413ea4..975329c06d0 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/CircleTable.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/CircleTable.g.cpp @@ -13,24 +13,6 @@ void UCircleTable::PostInitialize() Data = MakeShared>(); TSharedPtr> CircleTable = Data->GetOrAdd(TableName); - CircleTable->AddUniqueConstraint("entity_id", [](const FCircleType& Row) -> const int32& { - return Row.EntityId; }); - - CircleEntityIdIdxBtree = NewObject(this); - CircleEntityIdIdxBtree->SetCache(CircleTable); - - // Register a new multi-key B-Tree index named "circle_player_id_idx_btree" on the CircleTable. - CircleTable->AddMultiKeyBTreeIndex>( - TEXT("circle_player_id_idx_btree"), - [](const FCircleType& Row) - { - // This tuple is stored in the B-Tree index for fast composite key lookups. - return MakeTuple(Row.PlayerId); - } - ); - - CirclePlayerIdIdxBtree = NewObject(this); - CirclePlayerIdIdxBtree->SetCache(CircleTable); /***/ } diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConfigTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConfigTable.g.cpp index 0af137cead7..6f7a6d774ca 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConfigTable.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConfigTable.g.cpp @@ -13,11 +13,6 @@ void UConfigTable::PostInitialize() Data = MakeShared>(); TSharedPtr> ConfigTable = Data->GetOrAdd(TableName); - ConfigTable->AddUniqueConstraint("id", [](const FConfigType& Row) -> const int32& { - return Row.Id; }); - - ConfigIdIdxBtree = NewObject(this); - ConfigIdIdxBtree->SetCache(ConfigTable); /***/ } diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConsumeEntityEventTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConsumeEntityEventTable.g.cpp new file mode 100644 index 00000000000..2ab6e4ef260 --- /dev/null +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/ConsumeEntityEventTable.g.cpp @@ -0,0 +1,35 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +#include "ModuleBindings/Tables/ConsumeEntityEventTable.g.h" +#include "DBCache/UniqueIndex.h" +#include "DBCache/BTreeUniqueIndex.h" +#include "DBCache/ClientCache.h" +#include "DBCache/TableCache.h" + +void UConsumeEntityEventTable::PostInitialize() +{ + /** Client cache init and setting up indexes*/ + Data = MakeShared>(); + + TSharedPtr> ConsumeEntityEventTable = Data->GetOrAdd(TableName); + + /***/ +} + +FTableAppliedDiff UConsumeEntityEventTable::Update(TArray> InsertsRef, TArray> DeletesRef) +{ + FTableAppliedDiff Diff = BaseUpdate(InsertsRef, DeletesRef, Data, TableName); + + return Diff; +} + +int32 UConsumeEntityEventTable::Count() const +{ + return GetRowCountFromTable(Data, TableName); +} + +TArray UConsumeEntityEventTable::Iter() const +{ + return GetAllRowsFromTable(Data, TableName); +} diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/EntityTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/EntityTable.g.cpp index e5e172e803e..15f46a924ff 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/EntityTable.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/EntityTable.g.cpp @@ -13,11 +13,6 @@ void UEntityTable::PostInitialize() Data = MakeShared>(); TSharedPtr> EntityTable = Data->GetOrAdd(TableName); - EntityTable->AddUniqueConstraint("entity_id", [](const FEntityType& Row) -> const int32& { - return Row.EntityId; }); - - EntityEntityIdIdxBtree = NewObject(this); - EntityEntityIdIdxBtree->SetCache(EntityTable); /***/ } diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/FoodTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/FoodTable.g.cpp index 8164480f1a1..12191581ea2 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/FoodTable.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/FoodTable.g.cpp @@ -13,11 +13,6 @@ void UFoodTable::PostInitialize() Data = MakeShared>(); TSharedPtr> FoodTable = Data->GetOrAdd(TableName); - FoodTable->AddUniqueConstraint("entity_id", [](const FFoodType& Row) -> const int32& { - return Row.EntityId; }); - - FoodEntityIdIdxBtree = NewObject(this); - FoodEntityIdIdxBtree->SetCache(FoodTable); /***/ } diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/PlayerTable.g.cpp b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/PlayerTable.g.cpp index 9e6c1791fdf..9c2a69f9bda 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/PlayerTable.g.cpp +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Private/ModuleBindings/Tables/PlayerTable.g.cpp @@ -13,16 +13,6 @@ void UPlayerTable::PostInitialize() Data = MakeShared>(); TSharedPtr> PlayerTable = Data->GetOrAdd(TableName); - PlayerTable->AddUniqueConstraint("identity", [](const FPlayerType& Row) -> const FSpacetimeDBIdentity& { - return Row.Identity; }); - PlayerTable->AddUniqueConstraint("player_id", [](const FPlayerType& Row) -> const int32& { - return Row.PlayerId; }); - - PlayerIdentityIdxBtree = NewObject(this); - PlayerIdentityIdxBtree->SetCache(PlayerTable); - - PlayerPlayerIdIdxBtree = NewObject(this); - PlayerPlayerIdIdxBtree->SetCache(PlayerTable); /***/ } diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/SpacetimeDBClient.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/SpacetimeDBClient.g.h index 0ba004f7427..decf7040e1a 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/SpacetimeDBClient.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/SpacetimeDBClient.g.h @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit 6a6b5a6616f0578aa641bc0689691f953b13feb8). #pragma once #include "CoreMinimal.h" @@ -33,6 +33,7 @@ class USubscriptionHandle; /** Forward declaration for tables */ class UCircleTable; class UConfigTable; +class UConsumeEntityEventTable; class UEntityTable; class UFoodTable; class UPlayerTable; @@ -715,6 +716,9 @@ class CLIENT_UNREAL_API URemoteTables : public UObject UPROPERTY(BlueprintReadOnly, Category="SpacetimeDB") UConfigTable* Config; + UPROPERTY(BlueprintReadOnly, Category="SpacetimeDB") + UConsumeEntityEventTable* ConsumeEntityEvent; + UPROPERTY(BlueprintReadOnly, Category="SpacetimeDB") UEntityTable* Entity; diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/CircleTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/CircleTable.g.h index 29c9ab33cf4..8f8b8cbea06 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/CircleTable.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/CircleTable.g.h @@ -12,89 +12,12 @@ #include "DBCache/TableCache.h" #include "CircleTable.g.generated.h" -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UCircleCircleEntityIdIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> CircleEntityIdIdxBtreeIndexHelper; - -public: - UCircleCircleEntityIdIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : CircleEntityIdIdxBtreeIndexHelper("entity_id") { - } - - /** - * Finds a Circle by their unique entityid. - * @param Key The entityid to search for. - * @return The found FCircleType, or a default-constructed FCircleType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|CircleIndex") - FCircleType Find(int32 Key) - { - // Simply delegate the call to the internal helper - return CircleEntityIdIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InCircleCache) - { - CircleEntityIdIdxBtreeIndexHelper.Cache = InCircleCache; - } -}; -/***/ - -UCLASS(Blueprintable) -class UCircleCirclePlayerIdIdxBtreeIndex : public UObject -{ - GENERATED_BODY() - -public: - TArray Filter(const int32& PlayerId) const - { - TArray OutResults; - - LocalCache->FindByMultiKeyBTreeIndex>( - OutResults, - TEXT("circle_player_id_idx_btree"), - MakeTuple(PlayerId) - ); - - return OutResults; - } - - void SetCache(TSharedPtr> InCache) - { - LocalCache = InCache; - } - -private: - UFUNCTION(BlueprintCallable) - void FilterPlayerId(TArray& OutResults, const int32& PlayerId) - { - OutResults = Filter(PlayerId); - } - - TSharedPtr> LocalCache; -}; - UCLASS(BlueprintType) class CLIENT_UNREAL_API UCircleTable : public URemoteTable { GENERATED_BODY() public: - UPROPERTY(BlueprintReadOnly) - UCircleCircleEntityIdIdxBtreeUniqueIndex* CircleEntityIdIdxBtree; - - UPROPERTY(BlueprintReadOnly) - UCircleCirclePlayerIdIdxBtreeIndex* CirclePlayerIdIdxBtree; - void PostInitialize(); /** Update function for circle table*/ diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConfigTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConfigTable.g.h index 9afc94984f9..93a6903f6a4 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConfigTable.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConfigTable.g.h @@ -12,52 +12,12 @@ #include "DBCache/TableCache.h" #include "ConfigTable.g.generated.h" -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UConfigConfigIdIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> ConfigIdIdxBtreeIndexHelper; - -public: - UConfigConfigIdIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : ConfigIdIdxBtreeIndexHelper("id") { - } - - /** - * Finds a Config by their unique id. - * @param Key The id to search for. - * @return The found FConfigType, or a default-constructed FConfigType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|ConfigIndex") - FConfigType Find(int32 Key) - { - // Simply delegate the call to the internal helper - return ConfigIdIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InConfigCache) - { - ConfigIdIdxBtreeIndexHelper.Cache = InConfigCache; - } -}; -/***/ - UCLASS(BlueprintType) class CLIENT_UNREAL_API UConfigTable : public URemoteTable { GENERATED_BODY() public: - UPROPERTY(BlueprintReadOnly) - UConfigConfigIdIdxBtreeUniqueIndex* ConfigIdIdxBtree; - void PostInitialize(); /** Update function for config table*/ diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConsumeEntityEventTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConsumeEntityEventTable.g.h new file mode 100644 index 00000000000..210bedcaca8 --- /dev/null +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/ConsumeEntityEventTable.g.h @@ -0,0 +1,64 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +#pragma once +#include "CoreMinimal.h" +#include "BSATN/UESpacetimeDB.h" +#include "Types/Builtins.h" +#include "ModuleBindings/Types/ConsumeEntityEventType.g.h" +#include "Tables/RemoteTable.h" +#include "DBCache/WithBsatn.h" +#include "DBCache/TableHandle.h" +#include "DBCache/TableCache.h" +#include "ConsumeEntityEventTable.g.generated.h" + +UCLASS(BlueprintType) +class CLIENT_UNREAL_API UConsumeEntityEventTable : public URemoteTable +{ + GENERATED_BODY() + +public: + void PostInitialize(); + + /** Update function for consume_entity_event table*/ + FTableAppliedDiff Update(TArray> InsertsRef, TArray> DeletesRef); + + /** Number of subscribed rows currently in the cache */ + UFUNCTION(BlueprintCallable, Category = "SpacetimeDB") + int32 Count() const; + + /** Return all subscribed rows in the cache */ + UFUNCTION(BlueprintCallable, Category = "SpacetimeDB") + TArray Iter() const; + + // Table Events + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams( + FOnConsumeEntityEventInsert, + const FEventContext&, Context, + const FConsumeEntityEventType&, NewRow); + + DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams( + FOnConsumeEntityEventUpdate, + const FEventContext&, Context, + const FConsumeEntityEventType&, OldRow, + const FConsumeEntityEventType&, NewRow); + + DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams( + FOnConsumeEntityEventDelete, + const FEventContext&, Context, + const FConsumeEntityEventType&, DeletedRow); + + UPROPERTY(BlueprintAssignable, Category = "SpacetimeDB Events") + FOnConsumeEntityEventInsert OnInsert; + + UPROPERTY(BlueprintAssignable, Category = "SpacetimeDB Events") + FOnConsumeEntityEventUpdate OnUpdate; + + UPROPERTY(BlueprintAssignable, Category = "SpacetimeDB Events") + FOnConsumeEntityEventDelete OnDelete; + +private: + const FString TableName = TEXT("consume_entity_event"); + + TSharedPtr> Data; +}; diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/EntityTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/EntityTable.g.h index d02ce24f05a..21c60473f17 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/EntityTable.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/EntityTable.g.h @@ -12,52 +12,12 @@ #include "DBCache/TableCache.h" #include "EntityTable.g.generated.h" -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UEntityEntityEntityIdIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> EntityEntityIdIdxBtreeIndexHelper; - -public: - UEntityEntityEntityIdIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : EntityEntityIdIdxBtreeIndexHelper("entity_id") { - } - - /** - * Finds a Entity by their unique entityid. - * @param Key The entityid to search for. - * @return The found FEntityType, or a default-constructed FEntityType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|EntityIndex") - FEntityType Find(int32 Key) - { - // Simply delegate the call to the internal helper - return EntityEntityIdIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InEntityCache) - { - EntityEntityIdIdxBtreeIndexHelper.Cache = InEntityCache; - } -}; -/***/ - UCLASS(BlueprintType) class CLIENT_UNREAL_API UEntityTable : public URemoteTable { GENERATED_BODY() public: - UPROPERTY(BlueprintReadOnly) - UEntityEntityEntityIdIdxBtreeUniqueIndex* EntityEntityIdIdxBtree; - void PostInitialize(); /** Update function for entity table*/ diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/FoodTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/FoodTable.g.h index 21750d6df02..87ebfb95e9b 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/FoodTable.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/FoodTable.g.h @@ -12,52 +12,12 @@ #include "DBCache/TableCache.h" #include "FoodTable.g.generated.h" -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UFoodFoodEntityIdIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> FoodEntityIdIdxBtreeIndexHelper; - -public: - UFoodFoodEntityIdIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : FoodEntityIdIdxBtreeIndexHelper("entity_id") { - } - - /** - * Finds a Food by their unique entityid. - * @param Key The entityid to search for. - * @return The found FFoodType, or a default-constructed FFoodType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|FoodIndex") - FFoodType Find(int32 Key) - { - // Simply delegate the call to the internal helper - return FoodEntityIdIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InFoodCache) - { - FoodEntityIdIdxBtreeIndexHelper.Cache = InFoodCache; - } -}; -/***/ - UCLASS(BlueprintType) class CLIENT_UNREAL_API UFoodTable : public URemoteTable { GENERATED_BODY() public: - UPROPERTY(BlueprintReadOnly) - UFoodFoodEntityIdIdxBtreeUniqueIndex* FoodEntityIdIdxBtree; - void PostInitialize(); /** Update function for food table*/ diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/PlayerTable.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/PlayerTable.g.h index feeb8d1e691..af4f729e441 100644 --- a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/PlayerTable.g.h +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Tables/PlayerTable.g.h @@ -12,92 +12,12 @@ #include "DBCache/TableCache.h" #include "PlayerTable.g.generated.h" -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UPlayerPlayerIdentityIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> PlayerIdentityIdxBtreeIndexHelper; - -public: - UPlayerPlayerIdentityIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : PlayerIdentityIdxBtreeIndexHelper("identity") { - } - - /** - * Finds a Player by their unique identity. - * @param Key The identity to search for. - * @return The found FPlayerType, or a default-constructed FPlayerType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|PlayerIndex") - FPlayerType Find(FSpacetimeDBIdentity Key) - { - // Simply delegate the call to the internal helper - return PlayerIdentityIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InPlayerCache) - { - PlayerIdentityIdxBtreeIndexHelper.Cache = InPlayerCache; - } -}; -/***/ - -UCLASS(Blueprintable) -class CLIENT_UNREAL_API UPlayerPlayerPlayerIdIdxBtreeUniqueIndex : public UObject -{ - GENERATED_BODY() - -private: - // Declare an instance of your templated helper. - // It's private because the UObject wrapper will expose its functionality. - FUniqueIndexHelper> PlayerPlayerIdIdxBtreeIndexHelper; - -public: - UPlayerPlayerPlayerIdIdxBtreeUniqueIndex() - // Initialize the helper with the specific unique index name - : PlayerPlayerIdIdxBtreeIndexHelper("player_id") { - } - - /** - * Finds a Player by their unique playerid. - * @param Key The playerid to search for. - * @return The found FPlayerType, or a default-constructed FPlayerType if not found. - */ - UFUNCTION(BlueprintCallable, Category = "SpacetimeDB|PlayerIndex") - FPlayerType Find(int32 Key) - { - // Simply delegate the call to the internal helper - return PlayerPlayerIdIdxBtreeIndexHelper.FindUniqueIndex(Key); - } - - // A public setter to provide the cache to the helper after construction - // This is a common pattern when the cache might be created or provided by another system. - void SetCache(TSharedPtr> InPlayerCache) - { - PlayerPlayerIdIdxBtreeIndexHelper.Cache = InPlayerCache; - } -}; -/***/ - UCLASS(BlueprintType) class CLIENT_UNREAL_API UPlayerTable : public URemoteTable { GENERATED_BODY() public: - UPROPERTY(BlueprintReadOnly) - UPlayerPlayerIdentityIdxBtreeUniqueIndex* PlayerIdentityIdxBtree; - - UPROPERTY(BlueprintReadOnly) - UPlayerPlayerPlayerIdIdxBtreeUniqueIndex* PlayerPlayerIdIdxBtree; - void PostInitialize(); /** Update function for player table*/ diff --git a/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Types/ConsumeEntityEventType.g.h b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Types/ConsumeEntityEventType.g.h new file mode 100644 index 00000000000..2934917f06d --- /dev/null +++ b/demo/Blackholio/client-unreal/Source/client_unreal/Public/ModuleBindings/Types/ConsumeEntityEventType.g.h @@ -0,0 +1,49 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +#pragma once +#include "CoreMinimal.h" +#include "BSATN/UESpacetimeDB.h" +#include "ConsumeEntityEventType.g.generated.h" + +USTRUCT(BlueprintType) +struct CLIENT_UNREAL_API FConsumeEntityEventType +{ + GENERATED_BODY() + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SpacetimeDB") + int32 ConsumedEntityId = 0; + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "SpacetimeDB") + int32 ConsumerEntityId = 0; + + FORCEINLINE bool operator==(const FConsumeEntityEventType& Other) const + { + return ConsumedEntityId == Other.ConsumedEntityId && ConsumerEntityId == Other.ConsumerEntityId; + } + + FORCEINLINE bool operator!=(const FConsumeEntityEventType& Other) const + { + return !(*this == Other); + } +}; + +/** + * Custom hash function for FConsumeEntityEventType. + * Combines the hashes of all fields that are compared in operator==. + * @param ConsumeEntityEventType The FConsumeEntityEventType instance to hash. + * @return The combined hash value. + */ +FORCEINLINE uint32 GetTypeHash(const FConsumeEntityEventType& ConsumeEntityEventType) +{ + uint32 Hash = GetTypeHash(ConsumeEntityEventType.ConsumedEntityId); + Hash = HashCombine(Hash, GetTypeHash(ConsumeEntityEventType.ConsumerEntityId)); + return Hash; +} + +namespace UE::SpacetimeDB +{ + UE_SPACETIMEDB_ENABLE_TARRAY(FConsumeEntityEventType); + + UE_SPACETIMEDB_STRUCT(FConsumeEntityEventType, ConsumedEntityId, ConsumerEntityId); +} diff --git a/docs/docs/00100-intro/00200-quickstarts/00300-nodejs.md b/docs/docs/00100-intro/00200-quickstarts/00300-nodejs.md index 963b8c10048..796264b3b4f 100644 --- a/docs/docs/00100-intro/00200-quickstarts/00300-nodejs.md +++ b/docs/docs/00100-intro/00200-quickstarts/00300-nodejs.md @@ -72,7 +72,7 @@ import { schema, table, t } from 'spacetimedb/server'; export const spacetimedb = schema( table( - { name: 'person', public: true }, + { public: true }, { name: t.string(), } diff --git a/docs/docs/00100-intro/00300-tutorials/00100-chat-app.md b/docs/docs/00100-intro/00300-tutorials/00100-chat-app.md index 8281ab4b1b4..349173faa3c 100644 --- a/docs/docs/00100-intro/00300-tutorials/00100-chat-app.md +++ b/docs/docs/00100-intro/00300-tutorials/00100-chat-app.md @@ -2031,7 +2031,7 @@ void Message_OnInsert(EventContext ctx, Message insertedValue) void PrintMessage(RemoteTables tables, Message message) { - var sender = tables.User.UserIdentityIdxBtree.Find(message.Sender); + var sender = tables.User.Identity.Find(message.Sender); var senderName = "unknown"; if (sender != null) { diff --git a/modules/benchmarks-ts/src/schema.ts b/modules/benchmarks-ts/src/schema.ts index 5f7fdf73b9e..6a3c9674b02 100644 --- a/modules/benchmarks-ts/src/schema.ts +++ b/modules/benchmarks-ts/src/schema.ts @@ -79,28 +79,26 @@ export const btree_each_column_u32_u64_u64_tRow = t.row({ y: t.u64().index('btree'), }); -const unique_0_u32_u64_str = table( - { name: 'unique_0_u32_u64_str' }, +const unique_0_u32_u64_str = table({}, unique_0_u32_u64_str_tRow ); -const no_index_u32_u64_str = table( - { name: 'no_index_u32_u64_str' }, +const no_index_u32_u64_str = table({}, no_index_u32_u64_str_tRow ); const btree_each_column_u32_u64_str = table( - { name: 'btree_each_column_u32_u64_str' }, + {}, btree_each_column_u32_u64_str_tRow ); const unique_0_u32_u64_u64 = table( - { name: 'unique_0_u32_u64_u64' }, + {}, unique_0_u32_u64_u64_tRow ); const no_index_u32_u64_u64 = table( - { name: 'no_index_u32_u64_u64' }, + { }, no_index_u32_u64_u64_tRow ); const btree_each_column_u32_u64_u64 = table( - { name: 'btree_each_column_u32_u64_u64' }, + {}, btree_each_column_u32_u64_u64_tRow ); diff --git a/modules/module-test-ts/src/index.ts b/modules/module-test-ts/src/index.ts index 465dd807ab4..775ccdf3836 100644 --- a/modules/module-test-ts/src/index.ts +++ b/modules/module-test-ts/src/index.ts @@ -22,7 +22,7 @@ type TestAlias = TestA; // ───────────────────────────────────────────────────────────────────────────── // Rust: #[derive(SpacetimeType)] pub struct TestB { foo: String } -const testB = t.object('TestB', { +const testB = t.object('testB', { foo: t.string(), }); type TestB = Infer; @@ -151,37 +151,36 @@ const spacetimedb = schema({ // person (public) with btree index on age person: table( { - name: 'person', public: true, - indexes: [{ name: 'age', algorithm: 'btree', columns: ['age'] }], + indexes: [{ accessor: "age", algorithm: 'btree', columns: ['age'] }], }, personRow ), // test_a with index foo on x - testA: table( + testATable: table( { - name: 'test_a', - indexes: [{ name: 'foo', algorithm: 'btree', columns: ['x'] }], + name: "test_a", + indexes: [{ accessor: "foo", algorithm: 'btree', columns: ['x'] }], }, testA ), // test_d (public) with default(Some(DEFAULT_TEST_C)) option field - testD: table({ name: 'test_d', public: true }, testDRow), + testD: table({ public: true }, testDRow), // test_e, default private, with primary key id auto_inc and btree index on name testE: table( { name: 'test_e', public: false, - indexes: [{ name: 'name', algorithm: 'btree', columns: ['name'] }], + indexes: [{ accessor:"name", algorithm: 'btree', columns: ['name'] }], }, testERow ), // test_f (public) with Foobar field - testF: table({ name: 'test_f', public: true }, testFRow), + testF: table({ public: true }, testFRow), // private_table (explicit private) privateTable: table( @@ -195,7 +194,7 @@ const spacetimedb = schema({ name: 'points', public: false, indexes: [ - { name: 'multi_column_index', algorithm: 'btree', columns: ['x', 'y'] }, + { accessor: 'multi_column_index', algorithm: 'btree', columns: ['x', 'y'] }, ], }, pointsRow @@ -208,7 +207,7 @@ const spacetimedb = schema({ repeatingTestArg: table( { name: 'repeating_test_arg', - scheduled: (): any => repeating_test, + scheduled: (): any => repeatingTest }, repeatingTestArg ), @@ -230,8 +229,8 @@ export default spacetimedb; // VIEWS // ───────────────────────────────────────────────────────────────────────────── -export const my_player = spacetimedb.view( - { name: 'my_player', public: true }, +export const myPlayer = spacetimedb.view( + { public: true }, playerLikeRow.optional(), // FIXME: this should not be necessary; change `OptionBuilder` to accept `null|undefined` for `none` ctx => ctx.db.player.identity.find(ctx.sender) ?? undefined @@ -251,7 +250,7 @@ export const init = spacetimedb.init(ctx => { }); // repeating_test -export const repeating_test = spacetimedb.reducer( +export const repeatingTest = spacetimedb.reducer( { arg: repeatingTestArg }, (ctx, { arg }) => { const delta = ctx.timestamp.since(arg.prev_time); // adjust if API differs @@ -276,7 +275,7 @@ export const say_hello = spacetimedb.reducer(ctx => { }); // list_over_age(age) -export const list_over_age = spacetimedb.reducer( +export const listOverAge = spacetimedb.reducer( { age: t.u8() }, (ctx, { age }) => { // Prefer an index-based scan if exposed by bindings; otherwise iterate. @@ -313,28 +312,28 @@ export const test = spacetimedb.reducer( // Insert test_a rows for (let i = 0; i < 1000; i++) { - ctx.db.testA.insert({ + ctx.db.testATable.insert({ x: (i >>> 0) + arg.x, y: (i >>> 0) + arg.y, z: 'Yo', }); } - const rowCountBefore = ctx.db.testA.count(); + const rowCountBefore = ctx.db.testATable.count(); console.info(`Row count before delete: ${rowCountBefore}`); // Delete rows by the indexed column `x` in [5,10) let numDeleted = 0; for (let x = 5; x < 10; x++) { // Prefer index deletion if available; fallback to filter+delete - for (const row of ctx.db.testA.iter()) { + for (const row of ctx.db.testATable.iter()) { if (row.x === x) { - if (ctx.db.testA.delete(row)) numDeleted++; + if (ctx.db.testATable.delete(row)) numDeleted++; } } } - const rowCountAfter = ctx.db.testA.count(); + const rowCountAfter = ctx.db.testATable.count(); if (Number(rowCountBefore) !== Number(rowCountAfter) + numDeleted) { console.error( `Started with ${rowCountBefore} rows, deleted ${numDeleted}, and wound up with ${rowCountAfter} rows... huh?` @@ -351,7 +350,7 @@ export const test = spacetimedb.reducer( console.info(`Row count after delete: ${rowCountAfter}`); - const otherRowCount = ctx.db.testA.count(); + const otherRowCount = ctx.db.testATable.count(); console.info(`Row count filtered by condition: ${otherRowCount}`); console.info('MultiColumn'); @@ -465,7 +464,7 @@ export const assert_caller_identity_is_module_identity = spacetimedb.reducer( // Hit SpacetimeDB's schema HTTP route and return its result as a string. // // This is a silly thing to do, but an effective test of the procedure HTTP API. -export const get_my_schema_via_http = spacetimedb.procedure(t.string(), ctx => { +export const getMySchemaViaHttp = spacetimedb.procedure(t.string(), ctx => { const module_identity = ctx.identity; try { const response = ctx.http.fetch( diff --git a/modules/sdk-test-cs/Lib.cs b/modules/sdk-test-cs/Lib.cs index 7fec0c0edef..ade952a1412 100644 --- a/modules/sdk-test-cs/Lib.cs +++ b/modules/sdk-test-cs/Lib.cs @@ -2175,7 +2175,7 @@ public static void insert_table_holds_table(ReducerContext ctx, OneU8 a, VecU8 b public static void no_op_succeeds(ReducerContext ctx) { } [SpacetimeDB.ClientVisibilityFilter] - public static readonly Filter ONE_U8_VISIBLE = new Filter.Sql("SELECT * FROM one_u8"); + public static readonly Filter ONE_U8_VISIBLE = new Filter.Sql("SELECT * FROM one_u_8"); [SpacetimeDB.Table(Accessor = "scheduled_table", Scheduled = nameof(send_scheduled_message), diff --git a/modules/sdk-test-ts/src/index.ts b/modules/sdk-test-ts/src/index.ts index cd560e876cc..257086782f0 100644 --- a/modules/sdk-test-ts/src/index.ts +++ b/modules/sdk-test-ts/src/index.ts @@ -1,7 +1,7 @@ // ───────────────────────────────────────────────────────────────────────────── // IMPORTS // ───────────────────────────────────────────────────────────────────────────── -import { toCamelCase, Uuid } from 'spacetimedb'; +import { Uuid } from 'spacetimedb'; import { type ModuleExport, type RowObj, @@ -107,8 +107,8 @@ type TableWithReducers = { type ExportsObj = Record; /** Somewhat mimics the `define_tables!` macro in sdk-test/src/lib.rs */ -function tbl( - name: Name, +function tbl( + accessor: Accessor, ops: { insert?: string; delete?: string; @@ -118,38 +118,38 @@ function tbl( delete_by?: [string, keyof Row]; }, row: Row -): TableWithReducers>> { - const t = table({ name, public: true }, row); +): TableWithReducers>> { + const t = table({ public: true }, row); return { table: t, reducers(spacetimedb) { const exports: ExportsObj = {}; if (ops.insert) { exports[ops.insert] = spacetimedb.reducer(row, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any).insert({ ...args }); + (ctx.db[accessor] as any).insert({ ...args }); }); } if (ops.delete) { exports[ops.delete] = spacetimedb.reducer(row, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any).delete({ ...args }); + (ctx.db[accessor] as any).delete({ ...args }); }); } if (ops.insert_or_panic) { exports[ops.insert_or_panic] = spacetimedb.reducer(row, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any).insert({ ...args }); + (ctx.db[accessor] as any).insert({ ...args }); }); } if (ops.update_by) { const [reducer, col] = ops.update_by; exports[reducer] = spacetimedb.reducer(row, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any)[col].update({ ...args }); + (ctx.db[accessor] as any)[col].update({ ...args }); }); } if (ops.update_non_pk_by) { const [reducer, col] = ops.update_non_pk_by; exports[reducer] = spacetimedb.reducer(row, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any)[col].delete(args[col as any]); - (ctx.db[toCamelCase(name)] as any).insert({ ...args }); + (ctx.db[accessor] as any)[col].delete(args[col as any]); + (ctx.db[accessor] as any).insert({ ...args }); }); } if (ops.delete_by) { @@ -157,7 +157,7 @@ function tbl( exports[reducer] = spacetimedb.reducer( { [col]: row[col] }, (ctx, args) => { - (ctx.db[toCamelCase(name)] as any)[col].delete(args[col as any]); + (ctx.db[accessor] as any)[col].delete(args[col as any]); } ); } @@ -168,78 +168,78 @@ function tbl( // Tables holding a single value. const singleValTables = { - one_u8: tbl('one_u8', { insert: 'insert_one_u8' }, { n: t.u8() }), - one_u16: tbl('one_u16', { insert: 'insert_one_u16' }, { n: t.u16() }), - one_u32: tbl('one_u32', { insert: 'insert_one_u32' }, { n: t.u32() }), - one_u64: tbl('one_u64', { insert: 'insert_one_u64' }, { n: t.u64() }), - one_u128: tbl('one_u128', { insert: 'insert_one_u128' }, { n: t.u128() }), - one_u256: tbl('one_u256', { insert: 'insert_one_u256' }, { n: t.u256() }), - - one_i8: tbl('one_i8', { insert: 'insert_one_i8' }, { n: t.i8() }), - one_i16: tbl('one_i16', { insert: 'insert_one_i16' }, { n: t.i16() }), - one_i32: tbl('one_i32', { insert: 'insert_one_i32' }, { n: t.i32() }), - one_i64: tbl('one_i64', { insert: 'insert_one_i64' }, { n: t.i64() }), - one_i128: tbl('one_i128', { insert: 'insert_one_i128' }, { n: t.i128() }), - one_i256: tbl('one_i256', { insert: 'insert_one_i256' }, { n: t.i256() }), - - one_bool: tbl('one_bool', { insert: 'insert_one_bool' }, { b: t.bool() }), - - one_f32: tbl('one_f32', { insert: 'insert_one_f32' }, { f: t.f32() }), - one_f64: tbl('one_f64', { insert: 'insert_one_f64' }, { f: t.f64() }), - - one_string: tbl( - 'one_string', + oneU8: tbl('oneU8', { insert: 'insert_one_u8' }, { n: t.u8() }), + oneU16: tbl('oneU16', { insert: 'insert_one_u16' }, { n: t.u16() }), + oneU32: tbl('oneU32', { insert: 'insert_one_u32' }, { n: t.u32() }), + oneU64: tbl('oneU64', { insert: 'insert_one_u64' }, { n: t.u64() }), + oneU128: tbl('oneU128', { insert: 'insert_one_u128' }, { n: t.u128() }), + oneU256: tbl('oneU256', { insert: 'insert_one_u256' }, { n: t.u256() }), + + oneI8: tbl('oneI8', { insert: 'insert_one_i8' }, { n: t.i8() }), + oneI16: tbl('oneI16', { insert: 'insert_one_i16' }, { n: t.i16() }), + oneI32: tbl('oneI32', { insert: 'insert_one_i32' }, { n: t.i32() }), + oneI64: tbl('oneI64', { insert: 'insert_one_i64' }, { n: t.i64() }), + oneI128: tbl('oneI128', { insert: 'insert_one_i128' }, { n: t.i128() }), + oneI256: tbl('oneI256', { insert: 'insert_one_i256' }, { n: t.i256() }), + + oneBool: tbl('oneBool', { insert: 'insert_one_bool' }, { b: t.bool() }), + + oneF32: tbl('oneF32', { insert: 'insert_one_f32' }, { f: t.f32() }), + oneF64: tbl('oneF64', { insert: 'insert_one_f64' }, { f: t.f64() }), + + oneString: tbl( + 'oneString', { insert: 'insert_one_string' }, { s: t.string() } ), - one_identity: tbl( - 'one_identity', + oneIdentity: tbl( + 'oneIdentity', { insert: 'insert_one_identity' }, { i: t.identity() } ), - one_connection_id: tbl( - 'one_connection_id', + oneConnectionId: tbl( + 'oneConnectionId', { insert: 'insert_one_connection_id' }, { a: t.connectionId() } ), - one_uuid: tbl('one_uuid', { insert: 'insert_one_uuid' }, { u: t.uuid() }), + oneUuid: tbl('oneUuid', { insert: 'insert_one_uuid' }, { u: t.uuid() }), - one_timestamp: tbl( - 'one_timestamp', + oneTimestamp: tbl( + 'oneTimestamp', { insert: 'insert_one_timestamp' }, { t: t.timestamp() } ), - one_simple_enum: tbl( - 'one_simple_enum', + oneSimpleEnum: tbl( + 'oneSimpleEnum', { insert: 'insert_one_simple_enum' }, { e: SimpleEnum } ), - one_enum_with_payload: tbl( - 'one_enum_with_payload', + oneEnumWithPayload: tbl( + 'oneEnumWithPayload', { insert: 'insert_one_enum_with_payload' }, { e: EnumWithPayload } ), - one_unit_struct: tbl( - 'one_unit_struct', + oneUnitStruct: tbl( + 'oneUnitStruct', { insert: 'insert_one_unit_struct' }, { s: UnitStruct } ), - one_byte_struct: tbl( - 'one_byte_struct', + oneByteStruct: tbl( + 'oneByteStruct', { insert: 'insert_one_byte_struct' }, { s: ByteStruct } ), - one_every_primitive_struct: tbl( - 'one_every_primitive_struct', + oneEveryPrimitiveStruct: tbl( + 'oneEveryPrimitiveStruct', { insert: 'insert_one_every_primitive_struct' }, { s: EveryPrimitiveStruct } ), - one_every_vec_struct: tbl( - 'one_every_vec_struct', + oneEveryVecStruct: tbl( + 'oneEveryVecStruct', { insert: 'insert_one_every_vec_struct' }, { s: EveryVecStruct } ), @@ -247,134 +247,134 @@ const singleValTables = { // Tables holding a Vec of various types. const vecTables = { - vec_u8: tbl('vec_u8', { insert: 'insert_vec_u8' }, { n: t.array(t.u8()) }), - vec_u16: tbl( - 'vec_u16', + vecU8: tbl('vecU8', { insert: 'insert_vec_u8' }, { n: t.array(t.u8()) }), + vecU16: tbl( + 'vecU16', { insert: 'insert_vec_u16' }, { n: t.array(t.u16()) } ), - vec_u32: tbl( - 'vec_u32', + vecU32: tbl( + 'vecU32', { insert: 'insert_vec_u32' }, { n: t.array(t.u32()) } ), - vec_u64: tbl( - 'vec_u64', + vecU64: tbl( + 'vecU64', { insert: 'insert_vec_u64' }, { n: t.array(t.u64()) } ), - vec_u128: tbl( - 'vec_u128', + vecU128: tbl( + 'vecU128', { insert: 'insert_vec_u128' }, { n: t.array(t.u128()) } ), - vec_u256: tbl( - 'vec_u256', + vecU256: tbl( + 'vecU256', { insert: 'insert_vec_u256' }, { n: t.array(t.u256()) } ), - vec_i8: tbl('vec_i8', { insert: 'insert_vec_i8' }, { n: t.array(t.i8()) }), - vec_i16: tbl( - 'vec_i16', + vecI8: tbl('vecI8', { insert: 'insert_vec_i8' }, { n: t.array(t.i8()) }), + vecI16: tbl( + 'vecI16', { insert: 'insert_vec_i16' }, { n: t.array(t.i16()) } ), - vec_i32: tbl( - 'vec_i32', + vecI32: tbl( + 'vecI32', { insert: 'insert_vec_i32' }, { n: t.array(t.i32()) } ), - vec_i64: tbl( - 'vec_i64', + vecI64: tbl( + 'vecI64', { insert: 'insert_vec_i64' }, { n: t.array(t.i64()) } ), - vec_i128: tbl( - 'vec_i128', + vecI128: tbl( + 'vecI128', { insert: 'insert_vec_i128' }, { n: t.array(t.i128()) } ), - vec_i256: tbl( - 'vec_i256', + vecI256: tbl( + 'vecI256', { insert: 'insert_vec_i256' }, { n: t.array(t.i256()) } ), - vec_bool: tbl( - 'vec_bool', + vecBool: tbl( + 'vecBool', { insert: 'insert_vec_bool' }, { b: t.array(t.bool()) } ), - vec_f32: tbl( - 'vec_f32', + vecF32: tbl( + 'vecF32', { insert: 'insert_vec_f32' }, { f: t.array(t.f32()) } ), - vec_f64: tbl( - 'vec_f64', + vecF64: tbl( + 'vecF64', { insert: 'insert_vec_f64' }, { f: t.array(t.f64()) } ), - vec_string: tbl( - 'vec_string', + vecString: tbl( + 'vecString', { insert: 'insert_vec_string' }, { s: t.array(t.string()) } ), - vec_identity: tbl( - 'vec_identity', + vecIdentity: tbl( + 'vecIdentity', { insert: 'insert_vec_identity' }, { i: t.array(t.identity()) } ), - vec_connection_id: tbl( - 'vec_connection_id', + vecConnectionId: tbl( + 'vecConnectionId', { insert: 'insert_vec_connection_id' }, { a: t.array(t.connectionId()) } ), - vec_timestamp: tbl( - 'vec_timestamp', + vecTimestamp: tbl( + 'vecTimestamp', { insert: 'insert_vec_timestamp' }, { t: t.array(t.timestamp()) } ), - vec_uuid: tbl( - 'vec_uuid', + vecUuid: tbl( + 'vecUuid', { insert: 'insert_vec_uuid' }, { u: t.array(t.uuid()) } ), - vec_simple_enum: tbl( - 'vec_simple_enum', + vecSimpleEnum: tbl( + 'vecSimpleEnum', { insert: 'insert_vec_simple_enum' }, { e: t.array(SimpleEnum) } ), - vec_enum_with_payload: tbl( - 'vec_enum_with_payload', + vecEnumWithPayload: tbl( + 'vecEnumWithPayload', { insert: 'insert_vec_enum_with_payload' }, { e: t.array(EnumWithPayload) } ), - vec_unit_struct: tbl( - 'vec_unit_struct', + vecUnitStruct: tbl( + 'vecUnitStruct', { insert: 'insert_vec_unit_struct' }, { s: t.array(UnitStruct) } ), - vec_byte_struct: tbl( - 'vec_byte_struct', + vecByteStruct: tbl( + 'vecByteStruct', { insert: 'insert_vec_byte_struct' }, { s: t.array(ByteStruct) } ), - vec_every_primitive_struct: tbl( - 'vec_every_primitive_struct', + vecEveryPrimitiveStruct: tbl( + 'vecEveryPrimitiveStruct', { insert: 'insert_vec_every_primitive_struct' }, { s: t.array(EveryPrimitiveStruct) } ), - vec_every_vec_struct: tbl( - 'vec_every_vec_struct', + vecEveryVecStruct: tbl( + 'vecEveryVecStruct', { insert: 'insert_vec_every_vec_struct' }, { s: t.array(EveryVecStruct) } ), @@ -382,38 +382,38 @@ const vecTables = { // Tables holding an Option of various types. const optionTables = { - option_i32: tbl( - 'option_i32', + optionI32: tbl( + 'optionI32', { insert: 'insert_option_i32' }, { n: t.option(t.i32()) } ), - option_string: tbl( - 'option_string', + optionString: tbl( + 'optionString', { insert: 'insert_option_string' }, { s: t.option(t.string()) } ), - option_identity: tbl( - 'option_identity', + optionIdentity: tbl( + 'optionIdentity', { insert: 'insert_option_identity' }, { i: t.option(t.identity()) } ), - option_uuid: tbl( - 'option_uuid', + optionUuid: tbl( + 'optionUuid', { insert: 'insert_option_uuid' }, { u: t.option(t.uuid()) } ), - option_simple_enum: tbl( - 'option_simple_enum', + optionSimpleEnum: tbl( + 'optionSimpleEnum', { insert: 'insert_option_simple_enum' }, { e: t.option(SimpleEnum) } ), - option_every_primitive_struct: tbl( - 'option_every_primitive_struct', + optionEveryPrimitiveStruct: tbl( + 'optionEveryPrimitiveStruct', { insert: 'insert_option_every_primitive_struct' }, { s: t.option(EveryPrimitiveStruct) } ), - option_vec_option_i32: tbl( - 'option_vec_option_i32', + optionVecOptionI32: tbl( + 'optionVecOptionI32', { insert: 'insert_option_vec_option_i32' }, { v: t.option(t.array(t.option(t.i32()))) } ), @@ -421,33 +421,33 @@ const optionTables = { // Tables for Result values. const resultTables = { - result_i32_string: tbl( - 'result_i32_string', + resultI32String: tbl( + 'resultI32String', { insert: 'insert_result_i32_string' }, { r: t.result(t.i32(), t.string()) } ), - result_string_i32: tbl( - 'result_string_i32', + resultStringI32: tbl( + 'resultStringI32', { insert: 'insert_result_string_i32' }, { r: t.result(t.string(), t.i32()) } ), - result_identity_string: tbl( - 'result_identity_string', + resultIdentityString: tbl( + 'resultIdentityString', { insert: 'insert_result_identity_string' }, { r: t.result(t.identity(), t.string()) } ), - result_simple_enum_i32: tbl( - 'result_simple_enum_i32', + resultSimpleEnumI32: tbl( + 'resultSimpleEnumI32', { insert: 'insert_result_simple_enum_i32' }, { r: t.result(SimpleEnum, t.i32()) } ), - result_every_primitive_struct_string: tbl( - 'result_every_primitive_struct_string', + resultEveryPrimitiveStructString: tbl( + 'resultEveryPrimitiveStructString', { insert: 'insert_result_every_primitive_struct_string' }, { r: t.result(EveryPrimitiveStruct, t.string()) } ), - result_vec_i32_string: tbl( - 'result_vec_i32_string', + resultVecI32String: tbl( + 'resultVecI32String', { insert: 'insert_result_vec_i32_string' }, { r: t.result(t.array(t.i32()), t.string()) } ), @@ -456,8 +456,8 @@ const resultTables = { // Tables mapping a unique, but non-pk, key to a boring i32 payload. // This allows us to test delete events, and the semantically correct absence of update events. const uniqueTables = { - unique_u8: tbl( - 'unique_u8', + uniqueU8: tbl( + 'uniqueU8', { insert_or_panic: 'insert_unique_u8', update_non_pk_by: ['update_unique_u8', 'n'], @@ -466,8 +466,8 @@ const uniqueTables = { { n: t.u8().unique(), data: t.i32() } ), - unique_u16: tbl( - 'unique_u16', + uniqueU16: tbl( + 'uniqueU16', { insert_or_panic: 'insert_unique_u16', update_non_pk_by: ['update_unique_u16', 'n'], @@ -476,8 +476,8 @@ const uniqueTables = { { n: t.u16().unique(), data: t.i32() } ), - unique_u32: tbl( - 'unique_u32', + uniqueU32: tbl( + 'uniqueU32', { insert_or_panic: 'insert_unique_u32', update_non_pk_by: ['update_unique_u32', 'n'], @@ -486,8 +486,8 @@ const uniqueTables = { { n: t.u32().unique(), data: t.i32() } ), - unique_u64: tbl( - 'unique_u64', + uniqueU64: tbl( + 'uniqueU64', { insert_or_panic: 'insert_unique_u64', update_non_pk_by: ['update_unique_u64', 'n'], @@ -496,8 +496,8 @@ const uniqueTables = { { n: t.u64().unique(), data: t.i32() } ), - unique_u128: tbl( - 'unique_u128', + uniqueU128: tbl( + 'uniqueU128', { insert_or_panic: 'insert_unique_u128', update_non_pk_by: ['update_unique_u128', 'n'], @@ -506,8 +506,8 @@ const uniqueTables = { { n: t.u128().unique(), data: t.i32() } ), - unique_u256: tbl( - 'unique_u256', + uniqueU256: tbl( + 'uniqueU256', { insert_or_panic: 'insert_unique_u256', update_non_pk_by: ['update_unique_u256', 'n'], @@ -516,8 +516,8 @@ const uniqueTables = { { n: t.u256().unique(), data: t.i32() } ), - unique_i8: tbl( - 'unique_i8', + uniqueI8: tbl( + 'uniqueI8', { insert_or_panic: 'insert_unique_i8', update_non_pk_by: ['update_unique_i8', 'n'], @@ -526,8 +526,8 @@ const uniqueTables = { { n: t.i8().unique(), data: t.i32() } ), - unique_i16: tbl( - 'unique_i16', + uniqueI16: tbl( + 'uniqueI16', { insert_or_panic: 'insert_unique_i16', update_non_pk_by: ['update_unique_i16', 'n'], @@ -536,8 +536,8 @@ const uniqueTables = { { n: t.i16().unique(), data: t.i32() } ), - unique_i32: tbl( - 'unique_i32', + uniqueI32: tbl( + 'uniqueI32', { insert_or_panic: 'insert_unique_i32', update_non_pk_by: ['update_unique_i32', 'n'], @@ -546,8 +546,8 @@ const uniqueTables = { { n: t.i32().unique(), data: t.i32() } ), - unique_i64: tbl( - 'unique_i64', + uniqueI64: tbl( + 'uniqueI64', { insert_or_panic: 'insert_unique_i64', update_non_pk_by: ['update_unique_i64', 'n'], @@ -556,8 +556,8 @@ const uniqueTables = { { n: t.i64().unique(), data: t.i32() } ), - unique_i128: tbl( - 'unique_i128', + uniqueI128: tbl( + 'uniqueI128', { insert_or_panic: 'insert_unique_i128', update_non_pk_by: ['update_unique_i128', 'n'], @@ -566,8 +566,8 @@ const uniqueTables = { { n: t.i128().unique(), data: t.i32() } ), - unique_i256: tbl( - 'unique_i256', + uniqueI256: tbl( + 'uniqueI256', { insert_or_panic: 'insert_unique_i256', update_non_pk_by: ['update_unique_i256', 'n'], @@ -576,8 +576,8 @@ const uniqueTables = { { n: t.i256().unique(), data: t.i32() } ), - unique_bool: tbl( - 'unique_bool', + uniqueBool: tbl( + 'uniqueBool', { insert_or_panic: 'insert_unique_bool', update_non_pk_by: ['update_unique_bool', 'b'], @@ -586,8 +586,8 @@ const uniqueTables = { { b: t.bool().unique(), data: t.i32() } ), - unique_string: tbl( - 'unique_string', + uniqueString: tbl( + 'uniqueString', { insert_or_panic: 'insert_unique_string', update_non_pk_by: ['update_unique_string', 's'], @@ -596,8 +596,8 @@ const uniqueTables = { { s: t.string().unique(), data: t.i32() } ), - unique_identity: tbl( - 'unique_identity', + uniqueIdentity: tbl( + 'uniqueIdentity', { insert_or_panic: 'insert_unique_identity', update_non_pk_by: ['update_unique_identity', 'i'], @@ -606,8 +606,8 @@ const uniqueTables = { { i: t.identity().unique(), data: t.i32() } ), - unique_connection_id: tbl( - 'unique_connection_id', + uniqueConnectionId: tbl( + 'uniqueConnectionId', { insert_or_panic: 'insert_unique_connection_id', update_non_pk_by: ['update_unique_connection_id', 'a'], @@ -616,8 +616,8 @@ const uniqueTables = { { a: t.connectionId().unique(), data: t.i32() } ), - unique_uuid: tbl( - 'unique_uuid', + uniqueUuid: tbl( + 'uniqueUuid', { insert_or_panic: 'insert_unique_uuid', update_non_pk_by: ['update_unique_uuid', 'u'], @@ -630,8 +630,8 @@ const uniqueTables = { // Tables mapping a primary key to a boring i32 payload. // This allows us to test update and delete events. const pkTables = { - pk_u8: tbl( - 'pk_u8', + pkU8: tbl( + 'pkU8', { insert_or_panic: 'insert_pk_u8', update_by: ['update_pk_u8', 'n'], @@ -640,8 +640,8 @@ const pkTables = { { n: t.u8().primaryKey(), data: t.i32() } ), - pk_u16: tbl( - 'pk_u16', + pkU16: tbl( + 'pkU16', { insert_or_panic: 'insert_pk_u16', update_by: ['update_pk_u16', 'n'], @@ -650,8 +650,8 @@ const pkTables = { { n: t.u16().primaryKey(), data: t.i32() } ), - pk_u32: tbl( - 'pk_u32', + pkU32: tbl( + 'pkU32', { insert_or_panic: 'insert_pk_u32', update_by: ['update_pk_u32', 'n'], @@ -660,8 +660,8 @@ const pkTables = { { n: t.u32().primaryKey(), data: t.i32() } ), - pk_u32_two: tbl( - 'pk_u32_two', + pkU32Two: tbl( + 'pkU32Two', { insert_or_panic: 'insert_pk_u32_two', update_by: ['update_pk_u32_two', 'n'], @@ -670,8 +670,8 @@ const pkTables = { { n: t.u32().primaryKey(), data: t.i32() } ), - pk_u64: tbl( - 'pk_u64', + pkU64: tbl( + 'pkU64', { insert_or_panic: 'insert_pk_u64', update_by: ['update_pk_u64', 'n'], @@ -680,8 +680,8 @@ const pkTables = { { n: t.u64().primaryKey(), data: t.i32() } ), - pk_u128: tbl( - 'pk_u128', + pkU128: tbl( + 'pkU128', { insert_or_panic: 'insert_pk_u128', update_by: ['update_pk_u128', 'n'], @@ -690,8 +690,8 @@ const pkTables = { { n: t.u128().primaryKey(), data: t.i32() } ), - pk_u256: tbl( - 'pk_u256', + pkU256: tbl( + 'pkU256', { insert_or_panic: 'insert_pk_u256', update_by: ['update_pk_u256', 'n'], @@ -700,8 +700,8 @@ const pkTables = { { n: t.u256().primaryKey(), data: t.i32() } ), - pk_i8: tbl( - 'pk_i8', + pkI8: tbl( + 'pkI8', { insert_or_panic: 'insert_pk_i8', update_by: ['update_pk_i8', 'n'], @@ -710,8 +710,8 @@ const pkTables = { { n: t.i8().primaryKey(), data: t.i32() } ), - pk_i16: tbl( - 'pk_i16', + pkI16: tbl( + 'pkI16', { insert_or_panic: 'insert_pk_i16', update_by: ['update_pk_i16', 'n'], @@ -720,8 +720,8 @@ const pkTables = { { n: t.i16().primaryKey(), data: t.i32() } ), - pk_i32: tbl( - 'pk_i32', + pkI32: tbl( + 'pkI32', { insert_or_panic: 'insert_pk_i32', update_by: ['update_pk_i32', 'n'], @@ -730,8 +730,8 @@ const pkTables = { { n: t.i32().primaryKey(), data: t.i32() } ), - pk_i64: tbl( - 'pk_i64', + pkI64: tbl( + 'pkI64', { insert_or_panic: 'insert_pk_i64', update_by: ['update_pk_i64', 'n'], @@ -740,8 +740,8 @@ const pkTables = { { n: t.i64().primaryKey(), data: t.i32() } ), - pk_i128: tbl( - 'pk_i128', + pkI128: tbl( + 'pkI128', { insert_or_panic: 'insert_pk_i128', update_by: ['update_pk_i128', 'n'], @@ -750,8 +750,8 @@ const pkTables = { { n: t.i128().primaryKey(), data: t.i32() } ), - pk_i256: tbl( - 'pk_i256', + pkI256: tbl( + 'pkI256', { insert_or_panic: 'insert_pk_i256', update_by: ['update_pk_i256', 'n'], @@ -760,8 +760,8 @@ const pkTables = { { n: t.i256().primaryKey(), data: t.i32() } ), - pk_bool: tbl( - 'pk_bool', + pkBool: tbl( + 'pkBool', { insert_or_panic: 'insert_pk_bool', update_by: ['update_pk_bool', 'b'], @@ -770,8 +770,8 @@ const pkTables = { { b: t.bool().primaryKey(), data: t.i32() } ), - pk_string: tbl( - 'pk_string', + pkString: tbl( + 'pkString', { insert_or_panic: 'insert_pk_string', update_by: ['update_pk_string', 's'], @@ -780,8 +780,8 @@ const pkTables = { { s: t.string().primaryKey(), data: t.i32() } ), - pk_identity: tbl( - 'pk_identity', + pkIdentity: tbl( + 'pkIdentity', { insert_or_panic: 'insert_pk_identity', update_by: ['update_pk_identity', 'i'], @@ -790,8 +790,8 @@ const pkTables = { { i: t.identity().primaryKey(), data: t.i32() } ), - pk_connection_id: tbl( - 'pk_connection_id', + pkConnectionId: tbl( + 'pkConnectionId', { insert_or_panic: 'insert_pk_connection_id', update_by: ['update_pk_connection_id', 'a'], @@ -800,8 +800,8 @@ const pkTables = { { a: t.connectionId().primaryKey(), data: t.i32() } ), - pk_uuid: tbl( - 'pk_uuid', + pkUuid: tbl( + 'pkUuid', { insert_or_panic: 'insert_pk_uuid', update_by: ['update_pk_uuid', 'u'], @@ -810,8 +810,8 @@ const pkTables = { { u: t.uuid().primaryKey(), data: t.i32() } ), - pk_simple_enum: tbl( - 'pk_simple_enum', + pkSimpleEnum: tbl( + 'pkSimpleEnum', { insert_or_panic: 'insert_pk_simple_enum', }, @@ -822,8 +822,8 @@ const pkTables = { // Some weird-looking tables. const weirdTables = { // A table with many fields, of many different types. - large_table: tbl( - 'large_table', + largeTable: tbl( + 'largeTable', { insert: 'insert_large_table', delete: 'delete_large_table', @@ -856,19 +856,19 @@ const weirdTables = { // A table which holds instances of other table structs. // This tests that we can use tables as types. - table_holds_table: tbl( - 'table_holds_table', + tableHoldsTable: tbl( + 'tableHoldsTable', { insert: 'insert_table_holds_table', }, { - a: singleValTables.one_u8.table.rowType, - b: vecTables.vec_u8.table.rowType, + a: singleValTables.oneU8.table.rowType, + b: vecTables.vecU8.table.rowType, } ), }; -const PkU32 = pkTables.pk_u32.table.rowType; +const PkU32 = pkTables.pkU32.table.rowType; const allTables = { ...singleValTables, @@ -906,10 +906,9 @@ const IndexedTable = table( const IndexedTable2 = table( { - name: 'indexed_table_2', indexes: [ { - name: 'player_id_snazz_index', + accessor: 'player_id_snazz_index', algorithm: 'btree', columns: ['player_id', 'player_snazz'], }, @@ -922,7 +921,7 @@ const IndexedTable2 = table( ); const BTreeU32 = table( - { name: 'btree_u32', public: true }, + { public: true }, t.row('BTreeU32', { n: t.u32().index('btree'), data: t.i32(), @@ -1138,7 +1137,7 @@ export const insert_primitives_as_strings = spacetimedb.reducer( export const no_op_succeeds = spacetimedb.reducer(_ctx => {}); export const oneu8Filter = spacetimedb.clientVisibilityFilter.sql( - 'SELECT * FROM one_u8' + 'SELECT * FROM one_u_8' ); export const send_scheduled_message = spacetimedb.reducer( diff --git a/modules/sdk-test/src/lib.rs b/modules/sdk-test/src/lib.rs index e01a80f7b51..830eef1c87b 100644 --- a/modules/sdk-test/src/lib.rs +++ b/modules/sdk-test/src/lib.rs @@ -808,7 +808,7 @@ define_tables! { fn no_op_succeeds(_ctx: &ReducerContext) {} #[spacetimedb::client_visibility_filter] -const ONE_U8_VISIBLE: spacetimedb::Filter = spacetimedb::Filter::Sql("SELECT * FROM one_u8"); +const ONE_U8_VISIBLE: spacetimedb::Filter = spacetimedb::Filter::Sql("SELECT * FROM one_u_8"); #[spacetimedb::table(accessor = scheduled_table, scheduled(send_scheduled_message), public)] pub struct ScheduledTable { diff --git a/sdks/csharp/examples~/regression-tests/client/Program.cs b/sdks/csharp/examples~/regression-tests/client/Program.cs index 02c25398269..4c07b232d23 100644 --- a/sdks/csharp/examples~/regression-tests/client/Program.cs +++ b/sdks/csharp/examples~/regression-tests/client/Program.cs @@ -299,14 +299,14 @@ void ValidateBTreeIndexes(IRemoteDbContext conn) foreach (var data in conn.Db.ExampleData.Iter()) { Debug.Assert( - conn.Db.ExampleData.ExampleDataIndexedIdxBtree.Filter(data.Id).Contains(data) + conn.Db.ExampleData.Indexed.Filter(data.Id).Contains(data) ); } var outOfIndex = conn.Db.ExampleData.Iter().ToHashSet(); for (uint i = 0; i < MAX_ID; i++) { - foreach (var data in conn.Db.ExampleData.ExampleDataIndexedIdxBtree.Filter(i)) + foreach (var data in conn.Db.ExampleData.Indexed.Filter(i)) { Debug.Assert(outOfIndex.Contains(data)); } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/AuthenticationCapabilities.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/AuthenticationCapabilities.g.cs index 5ac94eec7ce..9671bad3327 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/AuthenticationCapabilities.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/AuthenticationCapabilities.g.cs @@ -58,7 +58,7 @@ public AuthenticationCapabilities() [DataContract] public sealed partial class AuthenticationCapabilitiesArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "AuthenticationCapabilities"; + string IProcedureArgs.ProcedureName => "authentication_capabilities"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DanglingTxWarning.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DanglingTxWarning.g.cs index 45f97316046..596ffcc58f6 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DanglingTxWarning.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DanglingTxWarning.g.cs @@ -57,7 +57,7 @@ public DanglingTxWarning() [DataContract] public sealed partial class DanglingTxWarningArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "DanglingTxWarning"; + string IProcedureArgs.ProcedureName => "dangling_tx_warning"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DocumentationGapChecks.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DocumentationGapChecks.g.cs index 53be2ac06dc..720a48a88ec 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DocumentationGapChecks.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/DocumentationGapChecks.g.cs @@ -58,9 +58,9 @@ public DocumentationGapChecks() [DataContract] public sealed partial class DocumentationGapChecksArgs : Procedure, IProcedureArgs { - [DataMember(Name = "inputValue")] + [DataMember(Name = "input_value")] public uint InputValue; - [DataMember(Name = "inputText")] + [DataMember(Name = "input_text")] public string InputText; public DocumentationGapChecksArgs( @@ -77,7 +77,7 @@ public DocumentationGapChecksArgs() this.InputText = ""; } - string IProcedureArgs.ProcedureName => "DocumentationGapChecks"; + string IProcedureArgs.ProcedureName => "documentation_gap_checks"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxCommit.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxCommit.g.cs index 0840ae041e8..ff81551e8ee 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxCommit.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxCommit.g.cs @@ -57,7 +57,7 @@ public InsertWithTxCommit() [DataContract] public sealed partial class InsertWithTxCommitArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InsertWithTxCommit"; + string IProcedureArgs.ProcedureName => "insert_with_tx_commit"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxPanic.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxPanic.g.cs index fe19b50b6f4..c537407ff57 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxPanic.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxPanic.g.cs @@ -57,7 +57,7 @@ public InsertWithTxPanic() [DataContract] public sealed partial class InsertWithTxPanicArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InsertWithTxPanic"; + string IProcedureArgs.ProcedureName => "insert_with_tx_panic"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRetry.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRetry.g.cs index 3543f809e2e..27e8ed8d49e 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRetry.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRetry.g.cs @@ -57,7 +57,7 @@ public InsertWithTxRetry() [DataContract] public sealed partial class InsertWithTxRetryArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InsertWithTxRetry"; + string IProcedureArgs.ProcedureName => "insert_with_tx_retry"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollback.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollback.g.cs index d8d374bc264..4124d58a151 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollback.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollback.g.cs @@ -57,7 +57,7 @@ public InsertWithTxRollback() [DataContract] public sealed partial class InsertWithTxRollbackArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InsertWithTxRollback"; + string IProcedureArgs.ProcedureName => "insert_with_tx_rollback"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollbackResult.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollbackResult.g.cs index 031408f7242..f53bc9e57e9 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollbackResult.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InsertWithTxRollbackResult.g.cs @@ -58,7 +58,7 @@ public InsertWithTxRollbackResult() [DataContract] public sealed partial class InsertWithTxRollbackResultArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InsertWithTxRollbackResult"; + string IProcedureArgs.ProcedureName => "insert_with_tx_rollback_result"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InvalidHttpRequest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InvalidHttpRequest.g.cs index 7e76023b9b8..cb9509464cf 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InvalidHttpRequest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/InvalidHttpRequest.g.cs @@ -58,7 +58,7 @@ public InvalidHttpRequest() [DataContract] public sealed partial class InvalidHttpRequestArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "InvalidHttpRequest"; + string IProcedureArgs.ProcedureName => "invalid_http_request"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReadMySchemaViaHttp.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReadMySchemaViaHttp.g.cs index 11e2a8b883f..7d4c11042c6 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReadMySchemaViaHttp.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReadMySchemaViaHttp.g.cs @@ -58,7 +58,7 @@ public ReadMySchemaViaHttp() [DataContract] public sealed partial class ReadMySchemaViaHttpArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "ReadMySchemaViaHttp"; + string IProcedureArgs.ProcedureName => "read_my_schema_via_http"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumA.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumA.g.cs index 542d05e76f6..4d819f06fea 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumA.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumA.g.cs @@ -70,7 +70,7 @@ public ReturnEnumAArgs() { } - string IProcedureArgs.ProcedureName => "ReturnEnumA"; + string IProcedureArgs.ProcedureName => "return_enum_a"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumB.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumB.g.cs index f8478dae31d..abb1150f3d3 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumB.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnEnumB.g.cs @@ -71,7 +71,7 @@ public ReturnEnumBArgs() this.B = ""; } - string IProcedureArgs.ProcedureName => "ReturnEnumB"; + string IProcedureArgs.ProcedureName => "return_enum_b"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnPrimitive.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnPrimitive.g.cs index bf08909d233..bc00b66d20e 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnPrimitive.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnPrimitive.g.cs @@ -75,7 +75,7 @@ public ReturnPrimitiveArgs() { } - string IProcedureArgs.ProcedureName => "ReturnPrimitive"; + string IProcedureArgs.ProcedureName => "return_primitive"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnStructProcedure.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnStructProcedure.g.cs index 96f3846fba3..943dc2f7698 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnStructProcedure.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnStructProcedure.g.cs @@ -77,7 +77,7 @@ public ReturnStructProcedureArgs() this.B = ""; } - string IProcedureArgs.ProcedureName => "ReturnStructProcedure"; + string IProcedureArgs.ProcedureName => "return_struct_procedure"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnUuid.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnUuid.g.cs index 50ef46d2095..cd6db49fce3 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnUuid.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/ReturnUuid.g.cs @@ -69,7 +69,7 @@ public ReturnUuidArgs() { } - string IProcedureArgs.ProcedureName => "ReturnUuid"; + string IProcedureArgs.ProcedureName => "return_uuid"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/SubscriptionEventOffset.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/SubscriptionEventOffset.g.cs index be718da9ac7..9378abf5204 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/SubscriptionEventOffset.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/SubscriptionEventOffset.g.cs @@ -58,7 +58,7 @@ public SubscriptionEventOffset() [DataContract] public sealed partial class SubscriptionEventOffsetArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "SubscriptionEventOffset"; + string IProcedureArgs.ProcedureName => "subscription_event_offset"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/TxContextCapabilities.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/TxContextCapabilities.g.cs index 8b60bef209e..ac11b591c07 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/TxContextCapabilities.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/TxContextCapabilities.g.cs @@ -58,7 +58,7 @@ public TxContextCapabilities() [DataContract] public sealed partial class TxContextCapabilitiesArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "TxContextCapabilities"; + string IProcedureArgs.ProcedureName => "tx_context_capabilities"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/WillPanic.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/WillPanic.g.cs index 5a63ca7b547..b37ce43b0e1 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/WillPanic.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Procedures/WillPanic.g.cs @@ -57,7 +57,7 @@ public WillPanic() [DataContract] public sealed partial class WillPanicArgs : Procedure, IProcedureArgs { - string IProcedureArgs.ProcedureName => "WillPanic"; + string IProcedureArgs.ProcedureName => "will_panic"; } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Add.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Add.g.cs index 7fe4c55e59d..15f118d3f05 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Add.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Add.g.cs @@ -67,7 +67,7 @@ public Add() { } - string IReducerArgs.ReducerName => "Add"; + string IReducerArgs.ReducerName => "add"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Delete.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Delete.g.cs index 85000f17b8b..1079749e22c 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Delete.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Delete.g.cs @@ -60,7 +60,7 @@ public Delete() { } - string IReducerArgs.ReducerName => "Delete"; + string IReducerArgs.ReducerName => "delete"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/EmitTestEvent.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/EmitTestEvent.g.cs index ce0343964c0..4eccb791929 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/EmitTestEvent.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/EmitTestEvent.g.cs @@ -68,7 +68,7 @@ public EmitTestEvent() this.Name = ""; } - string IReducerArgs.ReducerName => "EmitTestEvent"; + string IReducerArgs.ReducerName => "emit_test_event"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertEmptyStringIntoNonNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertEmptyStringIntoNonNullable.g.cs index 431f1164226..b41c6b6fbc3 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertEmptyStringIntoNonNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertEmptyStringIntoNonNullable.g.cs @@ -47,7 +47,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class InsertEmptyStringIntoNonNullable : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "InsertEmptyStringIntoNonNullable"; + string IReducerArgs.ReducerName => "insert_empty_string_into_non_nullable"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNonNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNonNullable.g.cs index 0449f49e763..b28c7a1aa66 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNonNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNonNullable.g.cs @@ -47,7 +47,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class InsertNullStringIntoNonNullable : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "InsertNullStringIntoNonNullable"; + string IReducerArgs.ReducerName => "insert_null_string_into_non_nullable"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNullable.g.cs index eee2893900b..ec4e6dcdf58 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertNullStringIntoNullable.g.cs @@ -47,7 +47,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class InsertNullStringIntoNullable : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "InsertNullStringIntoNullable"; + string IReducerArgs.ReducerName => "insert_null_string_into_nullable"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertResult.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertResult.g.cs index fff7cda770d..3170c277899 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertResult.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertResult.g.cs @@ -61,7 +61,7 @@ public InsertResult() this.Msg = default!; } - string IReducerArgs.ReducerName => "InsertResult"; + string IReducerArgs.ReducerName => "insert_result"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertWhereTest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertWhereTest.g.cs index 155b604fe67..508807b7db6 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertWhereTest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/InsertWhereTest.g.cs @@ -73,7 +73,7 @@ public InsertWhereTest() this.Name = ""; } - string IReducerArgs.ReducerName => "InsertWhereTest"; + string IReducerArgs.ReducerName => "insert_where_test"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Noop.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Noop.g.cs index 6bd734fccf5..342aaddfab1 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Noop.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/Noop.g.cs @@ -47,7 +47,7 @@ public abstract partial class Reducer [DataContract] public sealed partial class Noop : Reducer, IReducerArgs { - string IReducerArgs.ReducerName => "Noop"; + string IReducerArgs.ReducerName => "noop"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/SetNullableVec.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/SetNullableVec.g.cs index 37c26be46f1..6e6fbeab4cc 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/SetNullableVec.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/SetNullableVec.g.cs @@ -53,7 +53,7 @@ public sealed partial class SetNullableVec : Reducer, IReducerArgs { [DataMember(Name = "id")] public uint Id; - [DataMember(Name = "hasPos")] + [DataMember(Name = "has_pos")] public bool HasPos; [DataMember(Name = "x")] public int X; @@ -77,7 +77,7 @@ public SetNullableVec() { } - string IReducerArgs.ReducerName => "SetNullableVec"; + string IReducerArgs.ReducerName => "set_nullable_vec"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/ThrowError.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/ThrowError.g.cs index 9ecf90955e3..e2be127a2e1 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/ThrowError.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/ThrowError.g.cs @@ -61,7 +61,7 @@ public ThrowError() this.Error = ""; } - string IReducerArgs.ReducerName => "ThrowError"; + string IReducerArgs.ReducerName => "throw_error"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/UpdateWhereTest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/UpdateWhereTest.g.cs index 25f4941fa14..b372d83b43b 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/UpdateWhereTest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Reducers/UpdateWhereTest.g.cs @@ -73,7 +73,7 @@ public UpdateWhereTest() this.Name = ""; } - string IReducerArgs.ReducerName => "UpdateWhereTest"; + string IReducerArgs.ReducerName => "update_where_test"; } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/SpacetimeDBClient.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/SpacetimeDBClient.g.cs index 69271cdcc18..e6d99f9b15b 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/SpacetimeDBClient.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit 6a6b5a6616f0578aa641bc0689691f953b13feb8). #nullable enable @@ -589,7 +589,7 @@ public sealed class QueryBuilder public sealed class From { - public global::SpacetimeDB.Table Admins() => new("Admins", new AdminsCols("Admins"), new AdminsIxCols("Admins")); + public global::SpacetimeDB.Table Admins() => new("admins", new AdminsCols("admins"), new AdminsIxCols("admins")); public global::SpacetimeDB.Table Account() => new("account", new AccountCols("account"), new AccountIxCols("account")); public global::SpacetimeDB.Table ExampleData() => new("example_data", new ExampleDataCols("example_data"), new ExampleDataIxCols("example_data")); public global::SpacetimeDB.Table FindWhereTest() => new("find_where_test", new FindWhereTestCols("find_where_test"), new FindWhereTestIxCols("find_where_test")); @@ -608,7 +608,7 @@ public sealed class From public global::SpacetimeDB.Table RetryLog() => new("retry_log", new RetryLogCols("retry_log"), new RetryLogIxCols("retry_log")); public global::SpacetimeDB.Table Score() => new("score", new ScoreCols("score"), new ScoreIxCols("score")); public global::SpacetimeDB.Table ScoresPlayer123() => new("scores_player_123", new ScoresPlayer123Cols("scores_player_123"), new ScoresPlayer123IxCols("scores_player_123")); - public global::SpacetimeDB.Table ScoresPlayer123Level5() => new("scores_player_123_level5", new ScoresPlayer123Level5Cols("scores_player_123_level5"), new ScoresPlayer123Level5IxCols("scores_player_123_level5")); + public global::SpacetimeDB.Table ScoresPlayer123Level5() => new("scores_player_123_level_5", new ScoresPlayer123Level5Cols("scores_player_123_level_5"), new ScoresPlayer123Level5IxCols("scores_player_123_level_5")); public global::SpacetimeDB.Table ScoresPlayer123Range() => new("scores_player_123_range", new ScoresPlayer123RangeCols("scores_player_123_range"), new ScoresPlayer123RangeIxCols("scores_player_123_range")); public global::SpacetimeDB.Table TestEvent() => new("test_event", new TestEventCols("test_event"), new TestEventIxCols("test_event")); public global::SpacetimeDB.Table User() => new("user", new UserCols("user"), new UserIxCols("user")); diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Account.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Account.g.cs index 29d291d596d..08167e2114e 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Account.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Account.g.cs @@ -17,28 +17,28 @@ public sealed class AccountHandle : RemoteTableHandle { protected override string RemoteTableName => "account"; - public sealed class AccountIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(Account row) => row.Id; - public AccountIdIdxBtreeUniqueIndex(AccountHandle table) : base(table) { } + public IdUniqueIndex(AccountHandle table) : base(table) { } } - public readonly AccountIdIdxBtreeUniqueIndex AccountIdIdxBtree; + public readonly IdUniqueIndex Id; - public sealed class AccountIdentityIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdentityUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Identity GetKey(Account row) => row.Identity; - public AccountIdentityIdxBtreeUniqueIndex(AccountHandle table) : base(table) { } + public IdentityUniqueIndex(AccountHandle table) : base(table) { } } - public readonly AccountIdentityIdxBtreeUniqueIndex AccountIdentityIdxBtree; + public readonly IdentityUniqueIndex Identity; internal AccountHandle(DbConnection conn) : base(conn) { - AccountIdIdxBtree = new(this); - AccountIdentityIdxBtree = new(this); + Id = new(this); + Identity = new(this); } protected override object GetPrimaryKey(Account row) => row.Id; @@ -55,9 +55,9 @@ public sealed class AccountCols public AccountCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } @@ -68,8 +68,8 @@ public sealed class AccountIxCols public AccountIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); - Identity = new global::SpacetimeDB.IxCol(tableName, "Identity"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); + Identity = new global::SpacetimeDB.IxCol(tableName, "identity"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Admins.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Admins.g.cs index 2fc34a86d44..e25a70ec4a4 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Admins.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Admins.g.cs @@ -15,7 +15,7 @@ public sealed partial class RemoteTables { public sealed class AdminsHandle : RemoteTableHandle { - protected override string RemoteTableName => "Admins"; + protected override string RemoteTableName => "admins"; internal AdminsHandle(DbConnection conn) : base(conn) { @@ -34,10 +34,10 @@ public sealed class AdminsCols public AdminsCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ExampleData.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ExampleData.g.cs index 2c907843c45..904ee305a72 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ExampleData.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ExampleData.g.cs @@ -17,28 +17,28 @@ public sealed class ExampleDataHandle : RemoteTableHandle "example_data"; - public sealed class ExampleDataIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override uint GetKey(ExampleData row) => row.Id; - public ExampleDataIdIdxBtreeUniqueIndex(ExampleDataHandle table) : base(table) { } + public IdUniqueIndex(ExampleDataHandle table) : base(table) { } } - public readonly ExampleDataIdIdxBtreeUniqueIndex ExampleDataIdIdxBtree; + public readonly IdUniqueIndex Id; - public sealed class ExampleDataIndexedIdxBtreeIndex : BTreeIndexBase + public sealed class IndexedIndex : BTreeIndexBase { protected override uint GetKey(ExampleData row) => row.Indexed; - public ExampleDataIndexedIdxBtreeIndex(ExampleDataHandle table) : base(table) { } + public IndexedIndex(ExampleDataHandle table) : base(table) { } } - public readonly ExampleDataIndexedIdxBtreeIndex ExampleDataIndexedIdxBtree; + public readonly IndexedIndex Indexed; internal ExampleDataHandle(DbConnection conn) : base(conn) { - ExampleDataIdIdxBtree = new(this); - ExampleDataIndexedIdxBtree = new(this); + Id = new(this); + Indexed = new(this); } protected override object GetPrimaryKey(ExampleData row) => row.Id; @@ -54,8 +54,8 @@ public sealed class ExampleDataCols public ExampleDataCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Indexed = new global::SpacetimeDB.Col(tableName, "Indexed"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Indexed = new global::SpacetimeDB.Col(tableName, "indexed"); } } @@ -66,8 +66,8 @@ public sealed class ExampleDataIxCols public ExampleDataIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); - Indexed = new global::SpacetimeDB.IxCol(tableName, "Indexed"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); + Indexed = new global::SpacetimeDB.IxCol(tableName, "indexed"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/FindWhereTest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/FindWhereTest.g.cs index 494ac379cb5..31c6c8f0eee 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/FindWhereTest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/FindWhereTest.g.cs @@ -33,9 +33,9 @@ public sealed class FindWhereTestCols public FindWhereTestCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Value = new global::SpacetimeDB.Col(tableName, "Value"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Value = new global::SpacetimeDB.Col(tableName, "value"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccount.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccount.g.cs index 4ce71bf5870..26d3c85c518 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccount.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccount.g.cs @@ -33,9 +33,9 @@ public sealed class MyAccountCols public MyAccountCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccountMissing.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccountMissing.g.cs index b23f00b02ff..4fd66fc8f44 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccountMissing.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyAccountMissing.g.cs @@ -33,9 +33,9 @@ public sealed class MyAccountMissingCols public MyAccountMissingCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyPlayer.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyPlayer.g.cs index f7d52c30fd4..500162130ae 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyPlayer.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyPlayer.g.cs @@ -33,9 +33,9 @@ public sealed class MyPlayerCols public MyPlayerCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyTable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyTable.g.cs index 2180e1dc793..a2c31ceb058 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyTable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/MyTable.g.cs @@ -31,7 +31,7 @@ public sealed class MyTableCols public MyTableCols(string tableName) { - Field = new global::SpacetimeDB.Col(tableName, "Field"); + Field = new global::SpacetimeDB.Col(tableName, "field"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNonnullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNonnullable.g.cs index ed602dbd768..f071fe4c7f6 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNonnullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNonnullable.g.cs @@ -17,18 +17,18 @@ public sealed class NullStringNonnullableHandle : RemoteTableHandle "null_string_nonnullable"; - public sealed class NullStringNonnullableIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(NullStringNonNullable row) => row.Id; - public NullStringNonnullableIdIdxBtreeUniqueIndex(NullStringNonnullableHandle table) : base(table) { } + public IdUniqueIndex(NullStringNonnullableHandle table) : base(table) { } } - public readonly NullStringNonnullableIdIdxBtreeUniqueIndex NullStringNonnullableIdIdxBtree; + public readonly IdUniqueIndex Id; internal NullStringNonnullableHandle(DbConnection conn) : base(conn) { - NullStringNonnullableIdIdxBtree = new(this); + Id = new(this); } protected override object GetPrimaryKey(NullStringNonNullable row) => row.Id; @@ -44,8 +44,8 @@ public sealed class NullStringNonnullableCols public NullStringNonnullableCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } @@ -55,7 +55,7 @@ public sealed class NullStringNonnullableIxCols public NullStringNonnullableIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNullable.g.cs index 6019bf3a1d9..47cff5f3450 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullStringNullable.g.cs @@ -17,18 +17,18 @@ public sealed class NullStringNullableHandle : RemoteTableHandle "null_string_nullable"; - public sealed class NullStringNullableIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(NullStringNullable row) => row.Id; - public NullStringNullableIdIdxBtreeUniqueIndex(NullStringNullableHandle table) : base(table) { } + public IdUniqueIndex(NullStringNullableHandle table) : base(table) { } } - public readonly NullStringNullableIdIdxBtreeUniqueIndex NullStringNullableIdIdxBtree; + public readonly IdUniqueIndex Id; internal NullStringNullableHandle(DbConnection conn) : base(conn) { - NullStringNullableIdIdxBtree = new(this); + Id = new(this); } protected override object GetPrimaryKey(NullStringNullable row) => row.Id; @@ -44,8 +44,8 @@ public sealed class NullStringNullableCols public NullStringNullableCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.NullableCol(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.NullableCol(tableName, "name"); } } @@ -55,7 +55,7 @@ public sealed class NullStringNullableIxCols public NullStringNullableIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVec.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVec.g.cs index 6beacac963a..6a351db1456 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVec.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVec.g.cs @@ -17,18 +17,18 @@ public sealed class NullableVecHandle : RemoteTableHandle "nullable_vec"; - public sealed class NullableVecIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override uint GetKey(NullableVec row) => row.Id; - public NullableVecIdIdxBtreeUniqueIndex(NullableVecHandle table) : base(table) { } + public IdUniqueIndex(NullableVecHandle table) : base(table) { } } - public readonly NullableVecIdIdxBtreeUniqueIndex NullableVecIdIdxBtree; + public readonly IdUniqueIndex Id; internal NullableVecHandle(DbConnection conn) : base(conn) { - NullableVecIdIdxBtree = new(this); + Id = new(this); } protected override object GetPrimaryKey(NullableVec row) => row.Id; @@ -44,8 +44,8 @@ public sealed class NullableVecCols public NullableVecCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Pos = new global::SpacetimeDB.NullableCol(tableName, "Pos"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Pos = new global::SpacetimeDB.NullableCol(tableName, "pos"); } } @@ -55,7 +55,7 @@ public sealed class NullableVecIxCols public NullableVecIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVecView.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVecView.g.cs index 675bb92c36b..5042b4c41e7 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVecView.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/NullableVecView.g.cs @@ -32,8 +32,8 @@ public sealed class NullableVecViewCols public NullableVecViewCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Pos = new global::SpacetimeDB.NullableCol(tableName, "Pos"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Pos = new global::SpacetimeDB.NullableCol(tableName, "pos"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Player.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Player.g.cs index 9f1c76a6246..9e650143563 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Player.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Player.g.cs @@ -17,28 +17,28 @@ public sealed class PlayerHandle : RemoteTableHandle { protected override string RemoteTableName => "player"; - public sealed class PlayerIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(Player row) => row.Id; - public PlayerIdIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public IdUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerIdIdxBtreeUniqueIndex PlayerIdIdxBtree; + public readonly IdUniqueIndex Id; - public sealed class PlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdentityUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity; - public PlayerIdentityIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { } + public IdentityUniqueIndex(PlayerHandle table) : base(table) { } } - public readonly PlayerIdentityIdxBtreeUniqueIndex PlayerIdentityIdxBtree; + public readonly IdentityUniqueIndex Identity; internal PlayerHandle(DbConnection conn) : base(conn) { - PlayerIdIdxBtree = new(this); - PlayerIdentityIdxBtree = new(this); + Id = new(this); + Identity = new(this); } protected override object GetPrimaryKey(Player row) => row.Id; @@ -55,9 +55,9 @@ public sealed class PlayerCols public PlayerCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } @@ -68,8 +68,8 @@ public sealed class PlayerIxCols public PlayerIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); - Identity = new global::SpacetimeDB.IxCol(tableName, "Identity"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); + Identity = new global::SpacetimeDB.IxCol(tableName, "identity"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayerLevel.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayerLevel.g.cs index 45d3db12e28..cc7164544a7 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayerLevel.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayerLevel.g.cs @@ -17,28 +17,28 @@ public sealed class PlayerLevelHandle : RemoteTableHandle "player_level"; - public sealed class PlayerLevelLevelIdxBtreeIndex : BTreeIndexBase + public sealed class LevelIndex : BTreeIndexBase { protected override ulong GetKey(PlayerLevel row) => row.Level; - public PlayerLevelLevelIdxBtreeIndex(PlayerLevelHandle table) : base(table) { } + public LevelIndex(PlayerLevelHandle table) : base(table) { } } - public readonly PlayerLevelLevelIdxBtreeIndex PlayerLevelLevelIdxBtree; + public readonly LevelIndex Level; - public sealed class PlayerLevelPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class PlayerIdUniqueIndex : UniqueIndexBase { protected override ulong GetKey(PlayerLevel row) => row.PlayerId; - public PlayerLevelPlayerIdIdxBtreeUniqueIndex(PlayerLevelHandle table) : base(table) { } + public PlayerIdUniqueIndex(PlayerLevelHandle table) : base(table) { } } - public readonly PlayerLevelPlayerIdIdxBtreeUniqueIndex PlayerLevelPlayerIdIdxBtree; + public readonly PlayerIdUniqueIndex PlayerId; internal PlayerLevelHandle(DbConnection conn) : base(conn) { - PlayerLevelLevelIdxBtree = new(this); - PlayerLevelPlayerIdIdxBtree = new(this); + Level = new(this); + PlayerId = new(this); } } @@ -52,8 +52,8 @@ public sealed class PlayerLevelCols public PlayerLevelCols(string tableName) { - PlayerId = new global::SpacetimeDB.Col(tableName, "PlayerId"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); + PlayerId = new global::SpacetimeDB.Col(tableName, "player_id"); + Level = new global::SpacetimeDB.Col(tableName, "level"); } } @@ -64,8 +64,8 @@ public sealed class PlayerLevelIxCols public PlayerLevelIxCols(string tableName) { - PlayerId = new global::SpacetimeDB.IxCol(tableName, "PlayerId"); - Level = new global::SpacetimeDB.IxCol(tableName, "Level"); + PlayerId = new global::SpacetimeDB.IxCol(tableName, "player_id"); + Level = new global::SpacetimeDB.IxCol(tableName, "level"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayersAtLevelOne.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayersAtLevelOne.g.cs index d0ae3ad6b97..d77dd5f99df 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayersAtLevelOne.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/PlayersAtLevelOne.g.cs @@ -34,10 +34,10 @@ public sealed class PlayersAtLevelOneCols public PlayersAtLevelOneCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Identity = new global::SpacetimeDB.Col(tableName, "Identity"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Identity = new global::SpacetimeDB.Col(tableName, "identity"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + Level = new global::SpacetimeDB.Col(tableName, "level"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/RetryLog.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/RetryLog.g.cs index bc8100b2641..b33cf009a32 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/RetryLog.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/RetryLog.g.cs @@ -17,18 +17,18 @@ public sealed class RetryLogHandle : RemoteTableHandle { protected override string RemoteTableName => "retry_log"; - public sealed class RetryLogIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override uint GetKey(RetryLog row) => row.Id; - public RetryLogIdIdxBtreeUniqueIndex(RetryLogHandle table) : base(table) { } + public IdUniqueIndex(RetryLogHandle table) : base(table) { } } - public readonly RetryLogIdIdxBtreeUniqueIndex RetryLogIdIdxBtree; + public readonly IdUniqueIndex Id; internal RetryLogHandle(DbConnection conn) : base(conn) { - RetryLogIdIdxBtree = new(this); + Id = new(this); } protected override object GetPrimaryKey(RetryLog row) => row.Id; @@ -44,8 +44,8 @@ public sealed class RetryLogCols public RetryLogCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Attempts = new global::SpacetimeDB.Col(tableName, "Attempts"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Attempts = new global::SpacetimeDB.Col(tableName, "attempts"); } } @@ -55,7 +55,7 @@ public sealed class RetryLogIxCols public RetryLogIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Score.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Score.g.cs index 5688faa3a29..badd4ddffd9 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Score.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/Score.g.cs @@ -17,18 +17,18 @@ public sealed class ScoreHandle : RemoteTableHandle { protected override string RemoteTableName => "score"; - public sealed class ScorePlayerIdLevelIdxBtreeIndex : BTreeIndexBase<(uint PlayerId, uint Level)> + public sealed class ByPlayerAndLevelIndex : BTreeIndexBase<(uint PlayerId, uint Level)> { protected override (uint PlayerId, uint Level) GetKey(Score row) => (row.PlayerId, row.Level); - public ScorePlayerIdLevelIdxBtreeIndex(ScoreHandle table) : base(table) { } + public ByPlayerAndLevelIndex(ScoreHandle table) : base(table) { } } - public readonly ScorePlayerIdLevelIdxBtreeIndex ScorePlayerIdLevelIdxBtree; + public readonly ByPlayerAndLevelIndex ByPlayerAndLevel; internal ScoreHandle(DbConnection conn) : base(conn) { - ScorePlayerIdLevelIdxBtree = new(this); + ByPlayerAndLevel = new(this); } } @@ -43,9 +43,9 @@ public sealed class ScoreCols public ScoreCols(string tableName) { - PlayerId = new global::SpacetimeDB.Col(tableName, "PlayerId"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); - Points = new global::SpacetimeDB.Col(tableName, "Points"); + PlayerId = new global::SpacetimeDB.Col(tableName, "player_id"); + Level = new global::SpacetimeDB.Col(tableName, "level"); + Points = new global::SpacetimeDB.Col(tableName, "points"); } } @@ -56,8 +56,8 @@ public sealed class ScoreIxCols public ScoreIxCols(string tableName) { - PlayerId = new global::SpacetimeDB.IxCol(tableName, "PlayerId"); - Level = new global::SpacetimeDB.IxCol(tableName, "Level"); + PlayerId = new global::SpacetimeDB.IxCol(tableName, "player_id"); + Level = new global::SpacetimeDB.IxCol(tableName, "level"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123.g.cs index a3098687e75..bc58b74ee6b 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123.g.cs @@ -33,9 +33,9 @@ public sealed class ScoresPlayer123Cols public ScoresPlayer123Cols(string tableName) { - PlayerId = new global::SpacetimeDB.Col(tableName, "PlayerId"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); - Points = new global::SpacetimeDB.Col(tableName, "Points"); + PlayerId = new global::SpacetimeDB.Col(tableName, "player_id"); + Level = new global::SpacetimeDB.Col(tableName, "level"); + Points = new global::SpacetimeDB.Col(tableName, "points"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Level5.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Level5.g.cs index 4de2c6bc980..07969bf7654 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Level5.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Level5.g.cs @@ -15,7 +15,7 @@ public sealed partial class RemoteTables { public sealed class ScoresPlayer123Level5Handle : RemoteTableHandle { - protected override string RemoteTableName => "scores_player_123_level5"; + protected override string RemoteTableName => "scores_player_123_level_5"; internal ScoresPlayer123Level5Handle(DbConnection conn) : base(conn) { @@ -33,9 +33,9 @@ public sealed class ScoresPlayer123Level5Cols public ScoresPlayer123Level5Cols(string tableName) { - PlayerId = new global::SpacetimeDB.Col(tableName, "PlayerId"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); - Points = new global::SpacetimeDB.Col(tableName, "Points"); + PlayerId = new global::SpacetimeDB.Col(tableName, "player_id"); + Level = new global::SpacetimeDB.Col(tableName, "level"); + Points = new global::SpacetimeDB.Col(tableName, "points"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Range.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Range.g.cs index d2545b5edbe..5e06f15431b 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Range.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/ScoresPlayer123Range.g.cs @@ -33,9 +33,9 @@ public sealed class ScoresPlayer123RangeCols public ScoresPlayer123RangeCols(string tableName) { - PlayerId = new global::SpacetimeDB.Col(tableName, "PlayerId"); - Level = new global::SpacetimeDB.Col(tableName, "Level"); - Points = new global::SpacetimeDB.Col(tableName, "Points"); + PlayerId = new global::SpacetimeDB.Col(tableName, "player_id"); + Level = new global::SpacetimeDB.Col(tableName, "level"); + Points = new global::SpacetimeDB.Col(tableName, "points"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/TestEvent.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/TestEvent.g.cs index 9b8f8f3d489..cf930a7b8bf 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/TestEvent.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/TestEvent.g.cs @@ -32,8 +32,8 @@ public sealed class TestEventCols public TestEventCols(string tableName) { - Name = new global::SpacetimeDB.Col(tableName, "Name"); - Value = new global::SpacetimeDB.Col(tableName, "Value"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + Value = new global::SpacetimeDB.Col(tableName, "value"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/User.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/User.g.cs index 7c2a36b9a31..9a58dd98566 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/User.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/User.g.cs @@ -17,48 +17,48 @@ public sealed class UserHandle : RemoteTableHandle { protected override string RemoteTableName => "user"; - public sealed class UserAgeIdxBtreeIndex : BTreeIndexBase + public sealed class AgeIndex : BTreeIndexBase { protected override byte GetKey(User row) => row.Age; - public UserAgeIdxBtreeIndex(UserHandle table) : base(table) { } + public AgeIndex(UserHandle table) : base(table) { } } - public readonly UserAgeIdxBtreeIndex UserAgeIdxBtree; + public readonly AgeIndex Age; - public sealed class UserIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override SpacetimeDB.Uuid GetKey(User row) => row.Id; - public UserIdIdxBtreeUniqueIndex(UserHandle table) : base(table) { } + public IdUniqueIndex(UserHandle table) : base(table) { } } - public readonly UserIdIdxBtreeUniqueIndex UserIdIdxBtree; + public readonly IdUniqueIndex Id; - public sealed class UserIsAdminIdxBtreeIndex : BTreeIndexBase + public sealed class IsAdminIndex : BTreeIndexBase { protected override bool GetKey(User row) => row.IsAdmin; - public UserIsAdminIdxBtreeIndex(UserHandle table) : base(table) { } + public IsAdminIndex(UserHandle table) : base(table) { } } - public readonly UserIsAdminIdxBtreeIndex UserIsAdminIdxBtree; + public readonly IsAdminIndex IsAdmin; - public sealed class UserNameIdxBtreeIndex : BTreeIndexBase + public sealed class NameIndex : BTreeIndexBase { protected override string GetKey(User row) => row.Name; - public UserNameIdxBtreeIndex(UserHandle table) : base(table) { } + public NameIndex(UserHandle table) : base(table) { } } - public readonly UserNameIdxBtreeIndex UserNameIdxBtree; + public readonly NameIndex Name; internal UserHandle(DbConnection conn) : base(conn) { - UserAgeIdxBtree = new(this); - UserIdIdxBtree = new(this); - UserIsAdminIdxBtree = new(this); - UserNameIdxBtree = new(this); + Age = new(this); + Id = new(this); + IsAdmin = new(this); + Name = new(this); } protected override object GetPrimaryKey(User row) => row.Id; @@ -76,10 +76,10 @@ public sealed class UserCols public UserCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } @@ -92,10 +92,10 @@ public sealed class UserIxCols public UserIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); - Name = new global::SpacetimeDB.IxCol(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.IxCol(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.IxCol(tableName, "Age"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); + Name = new global::SpacetimeDB.IxCol(tableName, "name"); + IsAdmin = new global::SpacetimeDB.IxCol(tableName, "is_admin"); + Age = new global::SpacetimeDB.IxCol(tableName, "age"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge1865.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge1865.g.cs index 78171d66a35..a00dcd354fc 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge1865.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge1865.g.cs @@ -34,10 +34,10 @@ public sealed class UsersAge1865Cols public UsersAge1865Cols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge18Plus.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge18Plus.g.cs index 87f6afb1d69..1413b906c4c 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge18Plus.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAge18Plus.g.cs @@ -34,10 +34,10 @@ public sealed class UsersAge18PlusCols public UsersAge18PlusCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAgeUnder18.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAgeUnder18.g.cs index a397cf7f0a7..23fc0cb4945 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAgeUnder18.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersAgeUnder18.g.cs @@ -34,10 +34,10 @@ public sealed class UsersAgeUnder18Cols public UsersAgeUnder18Cols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersNamedAlice.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersNamedAlice.g.cs index 6805fd9aa0b..7a02dd30ce4 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersNamedAlice.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/UsersNamedAlice.g.cs @@ -34,10 +34,10 @@ public sealed class UsersNamedAliceCols public UsersNamedAliceCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); - IsAdmin = new global::SpacetimeDB.Col(tableName, "IsAdmin"); - Age = new global::SpacetimeDB.Col(tableName, "Age"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Name = new global::SpacetimeDB.Col(tableName, "name"); + IsAdmin = new global::SpacetimeDB.Col(tableName, "is_admin"); + Age = new global::SpacetimeDB.Col(tableName, "age"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTest.g.cs index b49b51a62ea..b9e650d1c3f 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTest.g.cs @@ -17,28 +17,28 @@ public sealed class WhereTestHandle : RemoteTableHandle { protected override string RemoteTableName => "where_test"; - public sealed class WhereTestIdIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class IdUniqueIndex : UniqueIndexBase { protected override uint GetKey(WhereTest row) => row.Id; - public WhereTestIdIdxBtreeUniqueIndex(WhereTestHandle table) : base(table) { } + public IdUniqueIndex(WhereTestHandle table) : base(table) { } } - public readonly WhereTestIdIdxBtreeUniqueIndex WhereTestIdIdxBtree; + public readonly IdUniqueIndex Id; - public sealed class WhereTestValueIdxBtreeIndex : BTreeIndexBase + public sealed class ValueIndex : BTreeIndexBase { protected override uint GetKey(WhereTest row) => row.Value; - public WhereTestValueIdxBtreeIndex(WhereTestHandle table) : base(table) { } + public ValueIndex(WhereTestHandle table) : base(table) { } } - public readonly WhereTestValueIdxBtreeIndex WhereTestValueIdxBtree; + public readonly ValueIndex Value; internal WhereTestHandle(DbConnection conn) : base(conn) { - WhereTestIdIdxBtree = new(this); - WhereTestValueIdxBtree = new(this); + Id = new(this); + Value = new(this); } protected override object GetPrimaryKey(WhereTest row) => row.Id; @@ -55,9 +55,9 @@ public sealed class WhereTestCols public WhereTestCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Value = new global::SpacetimeDB.Col(tableName, "Value"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Value = new global::SpacetimeDB.Col(tableName, "value"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } @@ -68,8 +68,8 @@ public sealed class WhereTestIxCols public WhereTestIxCols(string tableName) { - Id = new global::SpacetimeDB.IxCol(tableName, "Id"); - Value = new global::SpacetimeDB.IxCol(tableName, "Value"); + Id = new global::SpacetimeDB.IxCol(tableName, "id"); + Value = new global::SpacetimeDB.IxCol(tableName, "value"); } } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestQuery.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestQuery.g.cs index 6a9ea19119d..8e039b09042 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestQuery.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestQuery.g.cs @@ -33,9 +33,9 @@ public sealed class WhereTestQueryCols public WhereTestQueryCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Value = new global::SpacetimeDB.Col(tableName, "Value"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Value = new global::SpacetimeDB.Col(tableName, "value"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestView.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestView.g.cs index cab3ddd6af7..4752deea168 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestView.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Tables/WhereTestView.g.cs @@ -33,9 +33,9 @@ public sealed class WhereTestViewCols public WhereTestViewCols(string tableName) { - Id = new global::SpacetimeDB.Col(tableName, "Id"); - Value = new global::SpacetimeDB.Col(tableName, "Value"); - Name = new global::SpacetimeDB.Col(tableName, "Name"); + Id = new global::SpacetimeDB.Col(tableName, "id"); + Value = new global::SpacetimeDB.Col(tableName, "value"); + Name = new global::SpacetimeDB.Col(tableName, "name"); } } diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Account.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Account.g.cs index f3418a9aefe..adca538f682 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Account.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Account.g.cs @@ -13,11 +13,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class Account { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public ulong Id; - [DataMember(Name = "Identity")] + [DataMember(Name = "identity")] public SpacetimeDB.Identity Identity; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; public Account( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/DbVector2.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/DbVector2.g.cs index d42eea68a74..2400f99c156 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/DbVector2.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/DbVector2.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class DbVector2 { - [DataMember(Name = "X")] + [DataMember(Name = "x")] public int X; - [DataMember(Name = "Y")] + [DataMember(Name = "y")] public int Y; public DbVector2( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ExampleData.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ExampleData.g.cs index d3b300f1283..f5216df6962 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ExampleData.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ExampleData.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class ExampleData { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public uint Id; - [DataMember(Name = "Indexed")] + [DataMember(Name = "indexed")] public uint Indexed; public ExampleData( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/MyTable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/MyTable.g.cs index 9e720eb8469..fdd257e314a 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/MyTable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/MyTable.g.cs @@ -13,7 +13,7 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class MyTable { - [DataMember(Name = "Field")] + [DataMember(Name = "field")] public ReturnStruct Field; public MyTable(ReturnStruct Field) diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNonNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNonNullable.g.cs index 2f639a0a5fd..426179de0cc 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNonNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNonNullable.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class NullStringNonNullable { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public ulong Id; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; public NullStringNonNullable( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNullable.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNullable.g.cs index 9d0d619edd1..35781bc37ba 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNullable.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullStringNullable.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class NullStringNullable { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public ulong Id; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string? Name; public NullStringNullable( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullableVec.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullableVec.g.cs index f895df8765a..5cfe0879278 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullableVec.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/NullableVec.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class NullableVec { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public uint Id; - [DataMember(Name = "Pos")] + [DataMember(Name = "pos")] public DbVector2? Pos; public NullableVec( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Player.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Player.g.cs index 443f51cf68f..2e7d36dc828 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Player.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Player.g.cs @@ -13,11 +13,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class Player { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public ulong Id; - [DataMember(Name = "Identity")] + [DataMember(Name = "identity")] public SpacetimeDB.Identity Identity; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; public Player( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerAndLevel.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerAndLevel.g.cs index f87a401f421..586c92eb804 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerAndLevel.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerAndLevel.g.cs @@ -13,13 +13,13 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class PlayerAndLevel { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public ulong Id; - [DataMember(Name = "Identity")] + [DataMember(Name = "identity")] public SpacetimeDB.Identity Identity; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; - [DataMember(Name = "Level")] + [DataMember(Name = "level")] public ulong Level; public PlayerAndLevel( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerLevel.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerLevel.g.cs index 8f9fb43e7f3..2ba3320cfed 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerLevel.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/PlayerLevel.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class PlayerLevel { - [DataMember(Name = "PlayerId")] + [DataMember(Name = "player_id")] public ulong PlayerId; - [DataMember(Name = "Level")] + [DataMember(Name = "level")] public ulong Level; public PlayerLevel( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/RetryLog.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/RetryLog.g.cs index a7a2faef743..aab16822233 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/RetryLog.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/RetryLog.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class RetryLog { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public uint Id; - [DataMember(Name = "Attempts")] + [DataMember(Name = "attempts")] public uint Attempts; public RetryLog( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ReturnStruct.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ReturnStruct.g.cs index 1deb22e335a..f75ec603343 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ReturnStruct.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/ReturnStruct.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class ReturnStruct { - [DataMember(Name = "A")] + [DataMember(Name = "a")] public uint A; - [DataMember(Name = "B")] + [DataMember(Name = "b")] public string B; public ReturnStruct( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Score.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Score.g.cs index 4b80e0d9bd8..2e196e6827e 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Score.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/Score.g.cs @@ -13,11 +13,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class Score { - [DataMember(Name = "PlayerId")] + [DataMember(Name = "player_id")] public uint PlayerId; - [DataMember(Name = "Level")] + [DataMember(Name = "level")] public uint Level; - [DataMember(Name = "Points")] + [DataMember(Name = "points")] public long Points; public Score( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/TestEvent.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/TestEvent.g.cs index d9faeffc79d..e0b4dd58602 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/TestEvent.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/TestEvent.g.cs @@ -13,9 +13,9 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class TestEvent { - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; - [DataMember(Name = "Value")] + [DataMember(Name = "value")] public ulong Value; public TestEvent( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/User.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/User.g.cs index 825676f8193..4c705e97144 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/User.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/User.g.cs @@ -13,13 +13,13 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class User { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public SpacetimeDB.Uuid Id; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; - [DataMember(Name = "IsAdmin")] + [DataMember(Name = "is_admin")] public bool IsAdmin; - [DataMember(Name = "Age")] + [DataMember(Name = "age")] public byte Age; public User( diff --git a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/WhereTest.g.cs b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/WhereTest.g.cs index 0a5e8c3368f..34090bc58d7 100644 --- a/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/WhereTest.g.cs +++ b/sdks/csharp/examples~/regression-tests/client/module_bindings/Types/WhereTest.g.cs @@ -13,11 +13,11 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class WhereTest { - [DataMember(Name = "Id")] + [DataMember(Name = "id")] public uint Id; - [DataMember(Name = "Value")] + [DataMember(Name = "value")] public uint Value; - [DataMember(Name = "Name")] + [DataMember(Name = "name")] public string Name; public WhereTest( diff --git a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Reducers/Insert.g.cs b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Reducers/Insert.g.cs index c668f7c366a..88fc1a1163a 100644 --- a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Reducers/Insert.g.cs +++ b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Reducers/Insert.g.cs @@ -60,7 +60,7 @@ public Insert() { } - string IReducerArgs.ReducerName => "Insert"; + string IReducerArgs.ReducerName => "insert"; } } } diff --git a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/SpacetimeDBClient.g.cs b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/SpacetimeDBClient.g.cs index 2e01c9cce00..ba9311b5d45 100644 --- a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/SpacetimeDBClient.g.cs +++ b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/SpacetimeDBClient.g.cs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit 4cce69765507c1815979d39572b4a52864f5c3d2). #nullable enable @@ -531,7 +531,7 @@ public sealed class QueryBuilder public sealed class From { - public global::SpacetimeDB.Table ExampleData() => new("ExampleData", new ExampleDataCols("ExampleData"), new ExampleDataIxCols("ExampleData")); + public global::SpacetimeDB.Table ExampleData() => new("example_data", new ExampleDataCols("example_data"), new ExampleDataIxCols("example_data")); } public sealed class TypedSubscriptionBuilder diff --git a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Tables/ExampleData.g.cs b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Tables/ExampleData.g.cs index 44edae9bed6..35090f1ee6c 100644 --- a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Tables/ExampleData.g.cs +++ b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Tables/ExampleData.g.cs @@ -15,20 +15,20 @@ public sealed partial class RemoteTables { public sealed class ExampleDataHandle : RemoteTableHandle { - protected override string RemoteTableName => "ExampleData"; + protected override string RemoteTableName => "example_data"; - public sealed class ExampleDataPrimaryIdxBtreeUniqueIndex : UniqueIndexBase + public sealed class PrimaryUniqueIndex : UniqueIndexBase { protected override uint GetKey(ExampleData row) => row.Primary; - public ExampleDataPrimaryIdxBtreeUniqueIndex(ExampleDataHandle table) : base(table) { } + public PrimaryUniqueIndex(ExampleDataHandle table) : base(table) { } } - public readonly ExampleDataPrimaryIdxBtreeUniqueIndex ExampleDataPrimaryIdxBtree; + public readonly PrimaryUniqueIndex Primary; internal ExampleDataHandle(DbConnection conn) : base(conn) { - ExampleDataPrimaryIdxBtree = new(this); + Primary = new(this); } protected override object GetPrimaryKey(ExampleData row) => row.Primary; @@ -60,24 +60,24 @@ public sealed class ExampleDataCols public ExampleDataCols(string tableName) { - Primary = new global::SpacetimeDB.Col(tableName, "Primary"); - TestPass = new global::SpacetimeDB.Col(tableName, "TestPass"); - DefaultString = new global::SpacetimeDB.Col(tableName, "DefaultString"); - DefaultBool = new global::SpacetimeDB.Col(tableName, "DefaultBool"); - DefaultI8 = new global::SpacetimeDB.Col(tableName, "DefaultI8"); - DefaultU8 = new global::SpacetimeDB.Col(tableName, "DefaultU8"); - DefaultI16 = new global::SpacetimeDB.Col(tableName, "DefaultI16"); - DefaultU16 = new global::SpacetimeDB.Col(tableName, "DefaultU16"); - DefaultI32 = new global::SpacetimeDB.Col(tableName, "DefaultI32"); - DefaultU32 = new global::SpacetimeDB.Col(tableName, "DefaultU32"); - DefaultI64 = new global::SpacetimeDB.Col(tableName, "DefaultI64"); - DefaultU64 = new global::SpacetimeDB.Col(tableName, "DefaultU64"); - DefaultHex = new global::SpacetimeDB.Col(tableName, "DefaultHex"); - DefaultBin = new global::SpacetimeDB.Col(tableName, "DefaultBin"); - DefaultF32 = new global::SpacetimeDB.Col(tableName, "DefaultF32"); - DefaultF64 = new global::SpacetimeDB.Col(tableName, "DefaultF64"); - DefaultEnum = new global::SpacetimeDB.Col(tableName, "DefaultEnum"); - DefaultNull = new global::SpacetimeDB.NullableCol(tableName, "DefaultNull"); + Primary = new global::SpacetimeDB.Col(tableName, "primary"); + TestPass = new global::SpacetimeDB.Col(tableName, "test_pass"); + DefaultString = new global::SpacetimeDB.Col(tableName, "default_string"); + DefaultBool = new global::SpacetimeDB.Col(tableName, "default_bool"); + DefaultI8 = new global::SpacetimeDB.Col(tableName, "default_i_8"); + DefaultU8 = new global::SpacetimeDB.Col(tableName, "default_u_8"); + DefaultI16 = new global::SpacetimeDB.Col(tableName, "default_i_16"); + DefaultU16 = new global::SpacetimeDB.Col(tableName, "default_u_16"); + DefaultI32 = new global::SpacetimeDB.Col(tableName, "default_i_32"); + DefaultU32 = new global::SpacetimeDB.Col(tableName, "default_u_32"); + DefaultI64 = new global::SpacetimeDB.Col(tableName, "default_i_64"); + DefaultU64 = new global::SpacetimeDB.Col(tableName, "default_u_64"); + DefaultHex = new global::SpacetimeDB.Col(tableName, "default_hex"); + DefaultBin = new global::SpacetimeDB.Col(tableName, "default_bin"); + DefaultF32 = new global::SpacetimeDB.Col(tableName, "default_f_32"); + DefaultF64 = new global::SpacetimeDB.Col(tableName, "default_f_64"); + DefaultEnum = new global::SpacetimeDB.Col(tableName, "default_enum"); + DefaultNull = new global::SpacetimeDB.NullableCol(tableName, "default_null"); } } @@ -87,7 +87,7 @@ public sealed class ExampleDataIxCols public ExampleDataIxCols(string tableName) { - Primary = new global::SpacetimeDB.IxCol(tableName, "Primary"); + Primary = new global::SpacetimeDB.IxCol(tableName, "primary"); } } } diff --git a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Types/ExampleData.g.cs b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Types/ExampleData.g.cs index 2928c719a29..b0176e99300 100644 --- a/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Types/ExampleData.g.cs +++ b/sdks/csharp/examples~/regression-tests/republishing/client/module_bindings/Types/ExampleData.g.cs @@ -13,41 +13,41 @@ namespace SpacetimeDB.Types [DataContract] public sealed partial class ExampleData { - [DataMember(Name = "Primary")] + [DataMember(Name = "primary")] public uint Primary; - [DataMember(Name = "TestPass")] + [DataMember(Name = "test_pass")] public uint TestPass; - [DataMember(Name = "DefaultString")] + [DataMember(Name = "default_string")] public string DefaultString; - [DataMember(Name = "DefaultBool")] + [DataMember(Name = "default_bool")] public bool DefaultBool; - [DataMember(Name = "DefaultI8")] + [DataMember(Name = "default_i_8")] public sbyte DefaultI8; - [DataMember(Name = "DefaultU8")] + [DataMember(Name = "default_u_8")] public byte DefaultU8; - [DataMember(Name = "DefaultI16")] + [DataMember(Name = "default_i_16")] public short DefaultI16; - [DataMember(Name = "DefaultU16")] + [DataMember(Name = "default_u_16")] public ushort DefaultU16; - [DataMember(Name = "DefaultI32")] + [DataMember(Name = "default_i_32")] public int DefaultI32; - [DataMember(Name = "DefaultU32")] + [DataMember(Name = "default_u_32")] public uint DefaultU32; - [DataMember(Name = "DefaultI64")] + [DataMember(Name = "default_i_64")] public long DefaultI64; - [DataMember(Name = "DefaultU64")] + [DataMember(Name = "default_u_64")] public ulong DefaultU64; - [DataMember(Name = "DefaultHex")] + [DataMember(Name = "default_hex")] public int DefaultHex; - [DataMember(Name = "DefaultBin")] + [DataMember(Name = "default_bin")] public int DefaultBin; - [DataMember(Name = "DefaultF32")] + [DataMember(Name = "default_f_32")] public float DefaultF32; - [DataMember(Name = "DefaultF64")] + [DataMember(Name = "default_f_64")] public double DefaultF64; - [DataMember(Name = "DefaultEnum")] + [DataMember(Name = "default_enum")] public MyEnum DefaultEnum; - [DataMember(Name = "DefaultNull")] + [DataMember(Name = "default_null")] public MyStruct? DefaultNull; public ExampleData( diff --git a/sdks/csharp/tools~/run-regression-tests.sh b/sdks/csharp/tools~/run-regression-tests.sh index 7023be092fe..fdd7733bf65 100644 --- a/sdks/csharp/tools~/run-regression-tests.sh +++ b/sdks/csharp/tools~/run-regression-tests.sh @@ -19,9 +19,9 @@ cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- publish -c -y -- # Publish module for republishing module test cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- publish -c -y --server local -p "$SDK_PATH/examples~/regression-tests/republishing/server-initial" republish-test -cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" call --server local republish-test Insert 1 +cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" call --server local republish-test insert 1 cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" -- publish --server local -p "$SDK_PATH/examples~/regression-tests/republishing/server-republish" --break-clients republish-test -cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" call --server local republish-test Insert 2 +cargo run --manifest-path "$STDB_PATH/crates/cli/Cargo.toml" call --server local republish-test insert 2 echo "Cleanup obj~ folders generated in $SDK_PATH/examples~/regression-tests/procedure-client" # There is a bug in the code generator that creates obj~ folders in the output directory using a Rust project. diff --git a/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs b/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs index 48c7c60f064..5a108fec382 100644 --- a/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/procedure-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit e528393902d8cc982769e3b1a0f250d7d53edfa1). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; diff --git a/sdks/rust/tests/test-client/src/main.rs b/sdks/rust/tests/test-client/src/main.rs index 3182e41189e..89dac3b00c7 100644 --- a/sdks/rust/tests/test-client/src/main.rs +++ b/sdks/rust/tests/test-client/src/main.rs @@ -290,21 +290,21 @@ fn assert_all_tables_empty(ctx: &impl RemoteDbContext) -> anyhow::Result<()> { /// A great big honking query that subscribes to all rows from all tables. const SUBSCRIBE_ALL: &[&str] = &[ - "SELECT * FROM one_u8;", - "SELECT * FROM one_u16;", - "SELECT * FROM one_u32;", - "SELECT * FROM one_u64;", - "SELECT * FROM one_u128;", - "SELECT * FROM one_u256;", - "SELECT * FROM one_i8;", - "SELECT * FROM one_i16;", - "SELECT * FROM one_i32;", - "SELECT * FROM one_i64;", - "SELECT * FROM one_i128;", - "SELECT * FROM one_i256;", + "SELECT * FROM one_u_8;", + "SELECT * FROM one_u_16;", + "SELECT * FROM one_u_32;", + "SELECT * FROM one_u_64;", + "SELECT * FROM one_u_128;", + "SELECT * FROM one_u_256;", + "SELECT * FROM one_i_8;", + "SELECT * FROM one_i_16;", + "SELECT * FROM one_i_32;", + "SELECT * FROM one_i_64;", + "SELECT * FROM one_i_128;", + "SELECT * FROM one_i_256;", "SELECT * FROM one_bool;", - "SELECT * FROM one_f32;", - "SELECT * FROM one_f64;", + "SELECT * FROM one_f_32;", + "SELECT * FROM one_f_64;", "SELECT * FROM one_string;", "SELECT * FROM one_identity;", "SELECT * FROM one_connection_id;", @@ -316,21 +316,21 @@ const SUBSCRIBE_ALL: &[&str] = &[ "SELECT * FROM one_byte_struct;", "SELECT * FROM one_every_primitive_struct;", "SELECT * FROM one_every_vec_struct;", - "SELECT * FROM vec_u8;", - "SELECT * FROM vec_u16;", - "SELECT * FROM vec_u32;", - "SELECT * FROM vec_u64;", - "SELECT * FROM vec_u128;", - "SELECT * FROM vec_u256;", - "SELECT * FROM vec_i8;", - "SELECT * FROM vec_i16;", - "SELECT * FROM vec_i32;", - "SELECT * FROM vec_i64;", - "SELECT * FROM vec_i128;", - "SELECT * FROM vec_i256;", + "SELECT * FROM vec_u_8;", + "SELECT * FROM vec_u_16;", + "SELECT * FROM vec_u_32;", + "SELECT * FROM vec_u_64;", + "SELECT * FROM vec_u_128;", + "SELECT * FROM vec_u_256;", + "SELECT * FROM vec_i_8;", + "SELECT * FROM vec_i_16;", + "SELECT * FROM vec_i_32;", + "SELECT * FROM vec_i_64;", + "SELECT * FROM vec_i_128;", + "SELECT * FROM vec_i_256;", "SELECT * FROM vec_bool;", - "SELECT * FROM vec_f32;", - "SELECT * FROM vec_f64;", + "SELECT * FROM vec_f_32;", + "SELECT * FROM vec_f_64;", "SELECT * FROM vec_string;", "SELECT * FROM vec_identity;", "SELECT * FROM vec_connection_id;", @@ -342,42 +342,42 @@ const SUBSCRIBE_ALL: &[&str] = &[ "SELECT * FROM vec_byte_struct;", "SELECT * FROM vec_every_primitive_struct;", "SELECT * FROM vec_every_vec_struct;", - "SELECT * FROM option_i32;", + "SELECT * FROM option_i_32;", "SELECT * FROM option_string;", "SELECT * FROM option_identity;", "SELECT * FROM option_uuid;", "SELECT * FROM option_simple_enum;", "SELECT * FROM option_every_primitive_struct;", - "SELECT * FROM option_vec_option_i32;", - "SELECT * FROM unique_u8;", - "SELECT * FROM unique_u16;", - "SELECT * FROM unique_u32;", - "SELECT * FROM unique_u64;", - "SELECT * FROM unique_u128;", - "SELECT * FROM unique_u256;", - "SELECT * FROM unique_i8;", - "SELECT * FROM unique_i16;", - "SELECT * FROM unique_i32;", - "SELECT * FROM unique_i64;", - "SELECT * FROM unique_i128;", - "SELECT * FROM unique_i256;", + "SELECT * FROM option_vec_option_i_32;", + "SELECT * FROM unique_u_8;", + "SELECT * FROM unique_u_16;", + "SELECT * FROM unique_u_32;", + "SELECT * FROM unique_u_64;", + "SELECT * FROM unique_u_128;", + "SELECT * FROM unique_u_256;", + "SELECT * FROM unique_i_8;", + "SELECT * FROM unique_i_16;", + "SELECT * FROM unique_i_32;", + "SELECT * FROM unique_i_64;", + "SELECT * FROM unique_i_128;", + "SELECT * FROM unique_i_256;", "SELECT * FROM unique_bool;", "SELECT * FROM unique_string;", "SELECT * FROM unique_identity;", "SELECT * FROM unique_connection_id;", "SELECT * FROM unique_uuid;", - "SELECT * FROM pk_u8;", - "SELECT * FROM pk_u16;", - "SELECT * FROM pk_u32;", - "SELECT * FROM pk_u64;", - "SELECT * FROM pk_u128;", - "SELECT * FROM pk_u256;", - "SELECT * FROM pk_i8;", - "SELECT * FROM pk_i16;", - "SELECT * FROM pk_i32;", - "SELECT * FROM pk_i64;", - "SELECT * FROM pk_i128;", - "SELECT * FROM pk_i256;", + "SELECT * FROM pk_u_8;", + "SELECT * FROM pk_u_16;", + "SELECT * FROM pk_u_32;", + "SELECT * FROM pk_u_64;", + "SELECT * FROM pk_u_128;", + "SELECT * FROM pk_u_256;", + "SELECT * FROM pk_i_8;", + "SELECT * FROM pk_i_16;", + "SELECT * FROM pk_i_32;", + "SELECT * FROM pk_i_64;", + "SELECT * FROM pk_i_128;", + "SELECT * FROM pk_i_256;", "SELECT * FROM pk_bool;", "SELECT * FROM pk_string;", "SELECT * FROM pk_identity;", @@ -459,7 +459,7 @@ fn exec_subscribe_and_cancel() { panic!("Subscription should never be applied"); }) .on_error(|_ctx, error| panic!("Subscription errored: {error:?}")) - .subscribe("SELECT * FROM one_u8;"); + .subscribe("SELECT * FROM one_u_8;"); assert!(!handle.is_active()); assert!(!handle.is_ended()); let handle_clone = handle.clone(); @@ -504,7 +504,7 @@ fn exec_subscribe_and_unsubscribe() { .unwrap(); }) .on_error(|_ctx, error| panic!("Subscription errored: {error:?}")) - .subscribe("SELECT * FROM one_u8;"); + .subscribe("SELECT * FROM one_u_8;"); handle_cell.lock().unwrap().replace(handle.clone()); assert!(!handle.is_active()); assert!(!handle.is_ended()); @@ -2052,8 +2052,8 @@ fn exec_row_deduplication() { let conn = connect_then(&test_counter, { move |ctx| { let queries = [ - "SELECT * FROM pk_u32 WHERE pk_u32.n < 100;", - "SELECT * FROM pk_u32 WHERE pk_u32.n < 200;", + "SELECT * FROM pk_u_32 WHERE pk_u_32.n < 100;", + "SELECT * FROM pk_u_32 WHERE pk_u_32.n < 200;", ]; // The general approach in this test is that @@ -2115,8 +2115,8 @@ fn exec_row_deduplication_join_r_and_s() { connect_then(&test_counter, { move |ctx| { let queries = [ - "SELECT * FROM pk_u32;", - "SELECT unique_u32.* FROM unique_u32 JOIN pk_u32 ON unique_u32.n = pk_u32.n;", + "SELECT * FROM pk_u_32;", + "SELECT unique_u_32.* FROM unique_u_32 JOIN pk_u_32 ON unique_u_32.n = pk_u_32.n;", ]; // These never happen. In the case of `PkU32` we get an update instead. @@ -2183,10 +2183,10 @@ fn exec_row_deduplication_r_join_s_and_r_join_t() { connect_then(&test_counter, { move |ctx| { let queries = [ - "SELECT * FROM pk_u32;", - "SELECT * FROM pk_u32_two;", - "SELECT unique_u32.* FROM unique_u32 JOIN pk_u32 ON unique_u32.n = pk_u32.n;", - "SELECT unique_u32.* FROM unique_u32 JOIN pk_u32_two ON unique_u32.n = pk_u32_two.n;", + "SELECT * FROM pk_u_32;", + "SELECT * FROM pk_u_32_two;", + "SELECT unique_u_32.* FROM unique_u_32 JOIN pk_u_32 ON unique_u_32.n = pk_u_32.n;", + "SELECT unique_u_32.* FROM unique_u_32 JOIN pk_u_32_two ON unique_u_32.n = pk_u_32_two.n;", ]; const KEY: u32 = 42; @@ -2244,8 +2244,8 @@ fn test_lhs_join_update() { subscribe_these_then( ctx, &[ - "SELECT p.* FROM pk_u32 p WHERE n = 1", - "SELECT p.* FROM pk_u32 p JOIN unique_u32 u ON p.n = u.n WHERE u.data > 0 AND u.data < 5", + "SELECT p.* FROM pk_u_32 p WHERE n = 1", + "SELECT p.* FROM pk_u_32 p JOIN unique_u_32 u ON p.n = u.n WHERE u.data > 0 AND u.data < 5", ], |_| {}, ); @@ -2305,8 +2305,8 @@ fn test_lhs_join_update_disjoint_queries() { let conn = Arc::new(connect_then(&update_counter, { move |ctx| { subscribe_these_then(ctx, &[ - "SELECT p.* FROM pk_u32 p WHERE n = 1", - "SELECT p.* FROM pk_u32 p JOIN unique_u32 u ON p.n = u.n WHERE u.data > 0 AND u.data < 5 AND u.n != 1", + "SELECT p.* FROM pk_u_32 p WHERE n = 1", + "SELECT p.* FROM pk_u_32 p JOIN unique_u_32 u ON p.n = u.n WHERE u.data > 0 AND u.data < 5 AND u.n != 1", ], |_| {}); } })); @@ -2472,7 +2472,7 @@ fn exec_two_different_compression_algos() { compression_name, |b| b.with_compression(compression), move |ctx| { - subscribe_these_then(ctx, &["SELECT * FROM vec_u8"], move |ctx| { + subscribe_these_then(ctx, &["SELECT * FROM vec_u_8"], move |ctx| { VecU8::on_insert(ctx, move |_, actual| { let actual: &[u8] = actual.n.as_slice(); let res = if actual == &*expected1 { @@ -2743,7 +2743,7 @@ fn exec_overlapping_subscriptions() { // Now, subscribe to two queries which each match that row. subscribe_these_then( &conn, - &["select * from pk_u8 where n < 100", "select * from pk_u8 where n > 0"], + &["select * from pk_u_8 where n < 100", "select * from pk_u_8 where n > 0"], move |ctx| { // It's not exposed to users of the SDK, so we won't assert on it, // but we expect the row to have multiplicity 2. diff --git a/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs index 75d6a16da46..f5f7216ef84 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/btree_u_32_table.rs @@ -5,7 +5,7 @@ use super::b_tree_u_32_type::BTreeU32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `btree_u32`. +/// Table handle for the table `btree_u_32`. /// /// Obtain a handle from the [`BtreeU32TableAccess::btree_u_32`] method on [`super::RemoteTables`], /// like `ctx.db.btree_u_32()`. @@ -19,19 +19,19 @@ pub struct BtreeU32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `btree_u32`. +/// Extension trait for access to the table `btree_u_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait BtreeU32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`BtreeU32TableHandle`], which mediates access to the table `btree_u32`. + /// Obtain a [`BtreeU32TableHandle`], which mediates access to the table `btree_u_32`. fn btree_u_32(&self) -> BtreeU32TableHandle<'_>; } impl BtreeU32TableAccess for super::RemoteTables { fn btree_u_32(&self) -> BtreeU32TableHandle<'_> { BtreeU32TableHandle { - imp: self.imp.get_table::("btree_u32"), + imp: self.imp.get_table::("btree_u_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for BtreeU32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("btree_u32"); + let _table = client_cache.get_or_make_table::("btree_u_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `BTreeU32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait btree_u32QueryTableAccess { +pub trait btree_u_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `BTreeU32`. - fn btree_u32(&self) -> __sdk::__query_builder::Table; + fn btree_u_32(&self) -> __sdk::__query_builder::Table; } -impl btree_u32QueryTableAccess for __sdk::QueryTableAccessor { - fn btree_u32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("btree_u32") +impl btree_u_32QueryTableAccess for __sdk::QueryTableAccessor { + fn btree_u_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("btree_u_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_from_btree_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_from_btree_u_32_reducer.rs index 26465595d5d..9226501bf4c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_from_btree_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_from_btree_u_32_reducer.rs @@ -23,11 +23,11 @@ impl __sdk::InModule for DeleteFromBtreeU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_from_btree_u32`. +/// Extension trait for access to the reducer `delete_from_btree_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_from_btree_u_32 { - /// Request that the remote module invoke the reducer `delete_from_btree_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_from_btree_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -37,7 +37,7 @@ pub trait delete_from_btree_u_32 { self.delete_from_btree_u_32_then(rows, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_from_btree_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_from_btree_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_128_reducer.rs index b461ad7ab27..248a8ac330e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i128`. +/// Extension trait for access to the reducer `delete_pk_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_128 { - /// Request that the remote module invoke the reducer `delete_pk_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_128 { self.delete_pk_i_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_16_reducer.rs index 78f3af315a8..041b396b74d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i16`. +/// Extension trait for access to the reducer `delete_pk_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_16 { - /// Request that the remote module invoke the reducer `delete_pk_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_16 { self.delete_pk_i_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_256_reducer.rs index 810e8025b68..e19681c31f7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i256`. +/// Extension trait for access to the reducer `delete_pk_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_256 { - /// Request that the remote module invoke the reducer `delete_pk_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_256 { self.delete_pk_i_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_32_reducer.rs index 327a9c60e14..5ac86a02c7a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i32`. +/// Extension trait for access to the reducer `delete_pk_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_32 { - /// Request that the remote module invoke the reducer `delete_pk_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_32 { self.delete_pk_i_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_64_reducer.rs index 8e894a0e41c..237933aa268 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i64`. +/// Extension trait for access to the reducer `delete_pk_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_64 { - /// Request that the remote module invoke the reducer `delete_pk_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_64 { self.delete_pk_i_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_8_reducer.rs index 2908b86d9f9..9f7f0ea2a13 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_i_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_i8`. +/// Extension trait for access to the reducer `delete_pk_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_i_8 { - /// Request that the remote module invoke the reducer `delete_pk_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_i_8 { self.delete_pk_i_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_128_reducer.rs index 4d950cad94a..2f7c9fd30b9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u128`. +/// Extension trait for access to the reducer `delete_pk_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_128 { - /// Request that the remote module invoke the reducer `delete_pk_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_128 { self.delete_pk_u_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_16_reducer.rs index 910fbd6ff88..17c6711556b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u16`. +/// Extension trait for access to the reducer `delete_pk_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_16 { - /// Request that the remote module invoke the reducer `delete_pk_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_16 { self.delete_pk_u_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_256_reducer.rs index 714293358d4..2992c118aa7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u256`. +/// Extension trait for access to the reducer `delete_pk_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_256 { - /// Request that the remote module invoke the reducer `delete_pk_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_256 { self.delete_pk_u_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_insert_pk_u_32_two_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_insert_pk_u_32_two_reducer.rs index ad2f4b41c11..fac94132b65 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_insert_pk_u_32_two_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_insert_pk_u_32_two_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for DeletePkU32InsertPkU32TwoArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u32_insert_pk_u32_two`. +/// Extension trait for access to the reducer `delete_pk_u_32_insert_pk_u_32_two`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_32_insert_pk_u_32_two { - /// Request that the remote module invoke the reducer `delete_pk_u32_insert_pk_u32_two` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_32_insert_pk_u_32_two` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait delete_pk_u_32_insert_pk_u_32_two { self.delete_pk_u_32_insert_pk_u_32_two_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u32_insert_pk_u32_two` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_32_insert_pk_u_32_two` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_reducer.rs index 4ef98524bf3..8facc26002b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u32`. +/// Extension trait for access to the reducer `delete_pk_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_32 { - /// Request that the remote module invoke the reducer `delete_pk_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_32 { self.delete_pk_u_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_two_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_two_reducer.rs index 9968d76a40e..fa22d076264 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_two_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_32_two_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU32TwoArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u32_two`. +/// Extension trait for access to the reducer `delete_pk_u_32_two`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_32_two { - /// Request that the remote module invoke the reducer `delete_pk_u32_two` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_32_two` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_32_two { self.delete_pk_u_32_two_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u32_two` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_32_two` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_64_reducer.rs index 96daf10338e..5986827f075 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u64`. +/// Extension trait for access to the reducer `delete_pk_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_64 { - /// Request that the remote module invoke the reducer `delete_pk_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_64 { self.delete_pk_u_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_8_reducer.rs index 755e11be016..387f4b3aa6b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_pk_u_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeletePkU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_pk_u8`. +/// Extension trait for access to the reducer `delete_pk_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_pk_u_8 { - /// Request that the remote module invoke the reducer `delete_pk_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_pk_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_pk_u_8 { self.delete_pk_u_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_pk_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_pk_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_128_reducer.rs index 462a0c53de1..90a87721eb6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i128`. +/// Extension trait for access to the reducer `delete_unique_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_128 { - /// Request that the remote module invoke the reducer `delete_unique_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_128 { self.delete_unique_i_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_16_reducer.rs index f84f776fc96..cefb527055b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i16`. +/// Extension trait for access to the reducer `delete_unique_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_16 { - /// Request that the remote module invoke the reducer `delete_unique_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_16 { self.delete_unique_i_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_256_reducer.rs index d69238ed4d4..b83de3f39bc 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i256`. +/// Extension trait for access to the reducer `delete_unique_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_256 { - /// Request that the remote module invoke the reducer `delete_unique_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_256 { self.delete_unique_i_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_32_reducer.rs index 773939e2f9f..ab968509345 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i32`. +/// Extension trait for access to the reducer `delete_unique_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_32 { - /// Request that the remote module invoke the reducer `delete_unique_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_32 { self.delete_unique_i_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_64_reducer.rs index 21a46d24699..f041ba69101 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i64`. +/// Extension trait for access to the reducer `delete_unique_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_64 { - /// Request that the remote module invoke the reducer `delete_unique_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_64 { self.delete_unique_i_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_8_reducer.rs index d51a6e646b6..564f3e69b16 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_i_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_i8`. +/// Extension trait for access to the reducer `delete_unique_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_i_8 { - /// Request that the remote module invoke the reducer `delete_unique_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_i_8 { self.delete_unique_i_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_128_reducer.rs index 8254308a324..56c0286d6c6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u128`. +/// Extension trait for access to the reducer `delete_unique_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_128 { - /// Request that the remote module invoke the reducer `delete_unique_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_128 { self.delete_unique_u_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_16_reducer.rs index 061cdab5876..aa282a4fa5d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u16`. +/// Extension trait for access to the reducer `delete_unique_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_16 { - /// Request that the remote module invoke the reducer `delete_unique_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_16 { self.delete_unique_u_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_256_reducer.rs index 35118c0926d..f68566984de 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u256`. +/// Extension trait for access to the reducer `delete_unique_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_256 { - /// Request that the remote module invoke the reducer `delete_unique_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_256 { self.delete_unique_u_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_32_reducer.rs index d716f25251f..1f96bd4fb83 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u32`. +/// Extension trait for access to the reducer `delete_unique_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_32 { - /// Request that the remote module invoke the reducer `delete_unique_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_32 { self.delete_unique_u_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_64_reducer.rs index 7f183688deb..74089d52e98 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u64`. +/// Extension trait for access to the reducer `delete_unique_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_64 { - /// Request that the remote module invoke the reducer `delete_unique_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_64 { self.delete_unique_u_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_8_reducer.rs index 331fe124009..fc71bcdecff 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/delete_unique_u_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for DeleteUniqueU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `delete_unique_u8`. +/// Extension trait for access to the reducer `delete_unique_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait delete_unique_u_8 { - /// Request that the remote module invoke the reducer `delete_unique_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `delete_unique_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait delete_unique_u_8 { self.delete_unique_u_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `delete_unique_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `delete_unique_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_4_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_4_reducer.rs index 24182ec3c30..80f8afdfc8f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_4_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_4_reducer.rs @@ -19,11 +19,11 @@ impl __sdk::InModule for InsertCallUuidV4Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_call_uuid_v4`. +/// Extension trait for access to the reducer `insert_call_uuid_v_4`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_call_uuid_v_4 { - /// Request that the remote module invoke the reducer `insert_call_uuid_v4` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_call_uuid_v_4` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -33,7 +33,7 @@ pub trait insert_call_uuid_v_4 { self.insert_call_uuid_v_4_then(|_, _| {}) } - /// Request that the remote module invoke the reducer `insert_call_uuid_v4` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_call_uuid_v_4` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_7_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_7_reducer.rs index 317efe3fb46..354f40175b6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_7_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_call_uuid_v_7_reducer.rs @@ -19,11 +19,11 @@ impl __sdk::InModule for InsertCallUuidV7Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_call_uuid_v7`. +/// Extension trait for access to the reducer `insert_call_uuid_v_7`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_call_uuid_v_7 { - /// Request that the remote module invoke the reducer `insert_call_uuid_v7` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_call_uuid_v_7` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -33,7 +33,7 @@ pub trait insert_call_uuid_v_7 { self.insert_call_uuid_v_7_then(|_, _| {}) } - /// Request that the remote module invoke the reducer `insert_call_uuid_v7` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_call_uuid_v_7` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_into_btree_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_into_btree_u_32_reducer.rs index 436f8c944a9..f8cc50d96b8 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_into_btree_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_into_btree_u_32_reducer.rs @@ -23,11 +23,11 @@ impl __sdk::InModule for InsertIntoBtreeU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_into_btree_u32`. +/// Extension trait for access to the reducer `insert_into_btree_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_into_btree_u_32 { - /// Request that the remote module invoke the reducer `insert_into_btree_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_into_btree_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -37,7 +37,7 @@ pub trait insert_into_btree_u_32 { self.insert_into_btree_u_32_then(rows, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_into_btree_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_into_btree_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_into_pk_btree_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_into_pk_btree_u_32_reducer.rs index 7ff01f66a64..44d97c097d1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_into_pk_btree_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_into_pk_btree_u_32_reducer.rs @@ -28,11 +28,11 @@ impl __sdk::InModule for InsertIntoPkBtreeU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_into_pk_btree_u32`. +/// Extension trait for access to the reducer `insert_into_pk_btree_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_into_pk_btree_u_32 { - /// Request that the remote module invoke the reducer `insert_into_pk_btree_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_into_pk_btree_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -42,7 +42,7 @@ pub trait insert_into_pk_btree_u_32 { self.insert_into_pk_btree_u_32_then(pk_u_32, bt_u_32, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_into_pk_btree_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_into_pk_btree_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_32_reducer.rs index 5f9192f5434..f5808344dfa 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneF32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_f32`. +/// Extension trait for access to the reducer `insert_one_f_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_f_32 { - /// Request that the remote module invoke the reducer `insert_one_f32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_f_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_f_32 { self.insert_one_f_32_then(f, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_f32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_f_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_64_reducer.rs index b19c9d37e78..fd7b5dc3a3c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_f_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneF64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_f64`. +/// Extension trait for access to the reducer `insert_one_f_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_f_64 { - /// Request that the remote module invoke the reducer `insert_one_f64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_f_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_f_64 { self.insert_one_f_64_then(f, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_f64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_f_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_128_reducer.rs index e954ac5b316..5a943ca5fdb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i128`. +/// Extension trait for access to the reducer `insert_one_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_128 { - /// Request that the remote module invoke the reducer `insert_one_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_128 { self.insert_one_i_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_16_reducer.rs index 8d14db0fbdd..adf5bff881f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i16`. +/// Extension trait for access to the reducer `insert_one_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_16 { - /// Request that the remote module invoke the reducer `insert_one_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_16 { self.insert_one_i_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_256_reducer.rs index b0a1a8c5a5c..6cf1f1bf9f6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i256`. +/// Extension trait for access to the reducer `insert_one_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_256 { - /// Request that the remote module invoke the reducer `insert_one_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_256 { self.insert_one_i_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_32_reducer.rs index bbb694e0cba..fde2b8a6b70 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i32`. +/// Extension trait for access to the reducer `insert_one_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_32 { - /// Request that the remote module invoke the reducer `insert_one_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_32 { self.insert_one_i_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_64_reducer.rs index e61c7915b43..7e19eb7f9a2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i64`. +/// Extension trait for access to the reducer `insert_one_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_64 { - /// Request that the remote module invoke the reducer `insert_one_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_64 { self.insert_one_i_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_8_reducer.rs index 8ac6dc9e99c..c7435966950 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_i_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_i8`. +/// Extension trait for access to the reducer `insert_one_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_i_8 { - /// Request that the remote module invoke the reducer `insert_one_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_i_8 { self.insert_one_i_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_128_reducer.rs index fd7f9287df3..ef1adf709e9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u128`. +/// Extension trait for access to the reducer `insert_one_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_128 { - /// Request that the remote module invoke the reducer `insert_one_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_128 { self.insert_one_u_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_16_reducer.rs index 3f0cce607c6..92c4dd5b88b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u16`. +/// Extension trait for access to the reducer `insert_one_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_16 { - /// Request that the remote module invoke the reducer `insert_one_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_16 { self.insert_one_u_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_256_reducer.rs index f7940b61fff..c364d209aea 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u256`. +/// Extension trait for access to the reducer `insert_one_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_256 { - /// Request that the remote module invoke the reducer `insert_one_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_256 { self.insert_one_u_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_32_reducer.rs index 5e471d6a573..47a73260a96 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u32`. +/// Extension trait for access to the reducer `insert_one_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_32 { - /// Request that the remote module invoke the reducer `insert_one_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_32 { self.insert_one_u_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_64_reducer.rs index f530981f0b0..e13129ee9d5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u64`. +/// Extension trait for access to the reducer `insert_one_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_64 { - /// Request that the remote module invoke the reducer `insert_one_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_64 { self.insert_one_u_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_8_reducer.rs index 131fb49f20b..8a48909c164 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_one_u_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOneU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_one_u8`. +/// Extension trait for access to the reducer `insert_one_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_one_u_8 { - /// Request that the remote module invoke the reducer `insert_one_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_one_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_one_u_8 { self.insert_one_u_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_one_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_one_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_option_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_option_i_32_reducer.rs index d03f0629e6d..a7cff1942b9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_option_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_option_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOptionI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_option_i32`. +/// Extension trait for access to the reducer `insert_option_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_option_i_32 { - /// Request that the remote module invoke the reducer `insert_option_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_option_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_option_i_32 { self.insert_option_i_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_option_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_option_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_option_vec_option_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_option_vec_option_i_32_reducer.rs index 68653b89d6e..17c031ed031 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_option_vec_option_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_option_vec_option_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertOptionVecOptionI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_option_vec_option_i32`. +/// Extension trait for access to the reducer `insert_option_vec_option_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_option_vec_option_i_32 { - /// Request that the remote module invoke the reducer `insert_option_vec_option_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_option_vec_option_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_option_vec_option_i_32 { self.insert_option_vec_option_i_32_then(v, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_option_vec_option_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_option_vec_option_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_128_reducer.rs index 98c0c94da67..8574ba3791a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i128`. +/// Extension trait for access to the reducer `insert_pk_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_128 { - /// Request that the remote module invoke the reducer `insert_pk_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_128 { self.insert_pk_i_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_16_reducer.rs index 7bda0477563..44f591b555a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i16`. +/// Extension trait for access to the reducer `insert_pk_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_16 { - /// Request that the remote module invoke the reducer `insert_pk_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_16 { self.insert_pk_i_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_256_reducer.rs index f6791281a55..39694d339d4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i256`. +/// Extension trait for access to the reducer `insert_pk_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_256 { - /// Request that the remote module invoke the reducer `insert_pk_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_256 { self.insert_pk_i_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_32_reducer.rs index e9399015076..b159a60c34c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i32`. +/// Extension trait for access to the reducer `insert_pk_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_32 { - /// Request that the remote module invoke the reducer `insert_pk_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_32 { self.insert_pk_i_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_64_reducer.rs index c7632d344cc..0dcb42e4076 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i64`. +/// Extension trait for access to the reducer `insert_pk_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_64 { - /// Request that the remote module invoke the reducer `insert_pk_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_64 { self.insert_pk_i_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_8_reducer.rs index 490b3982cfb..9ecb82e5e00 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_i_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_i8`. +/// Extension trait for access to the reducer `insert_pk_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_i_8 { - /// Request that the remote module invoke the reducer `insert_pk_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_i_8 { self.insert_pk_i_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_128_reducer.rs index afc73ba5f66..7553dfc0933 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u128`. +/// Extension trait for access to the reducer `insert_pk_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_128 { - /// Request that the remote module invoke the reducer `insert_pk_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_128 { self.insert_pk_u_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_16_reducer.rs index 47a0e21f080..85d1beff527 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u16`. +/// Extension trait for access to the reducer `insert_pk_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_16 { - /// Request that the remote module invoke the reducer `insert_pk_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_16 { self.insert_pk_u_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_256_reducer.rs index 76c37aa6849..c1f3b1c385f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u256`. +/// Extension trait for access to the reducer `insert_pk_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_256 { - /// Request that the remote module invoke the reducer `insert_pk_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_256 { self.insert_pk_u_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_reducer.rs index 2c0e49269c0..e995b04c589 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u32`. +/// Extension trait for access to the reducer `insert_pk_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_32 { - /// Request that the remote module invoke the reducer `insert_pk_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_32 { self.insert_pk_u_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_two_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_two_reducer.rs index 12e5aa21888..7919912b9b8 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_two_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_32_two_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU32TwoArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u32_two`. +/// Extension trait for access to the reducer `insert_pk_u_32_two`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_32_two { - /// Request that the remote module invoke the reducer `insert_pk_u32_two` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_32_two` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_32_two { self.insert_pk_u_32_two_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u32_two` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_32_two` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_64_reducer.rs index 62385500214..c8c610f9f5b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u64`. +/// Extension trait for access to the reducer `insert_pk_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_64 { - /// Request that the remote module invoke the reducer `insert_pk_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_64 { self.insert_pk_u_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_8_reducer.rs index 5978af3dde0..5cc27b447a6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_pk_u_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertPkU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_pk_u8`. +/// Extension trait for access to the reducer `insert_pk_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_pk_u_8 { - /// Request that the remote module invoke the reducer `insert_pk_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_pk_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_pk_u_8 { self.insert_pk_u_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_pk_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_pk_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_result_i_32_string_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_result_i_32_string_reducer.rs index 539b5d14a35..50f44f3ed20 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_result_i_32_string_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_result_i_32_string_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertResultI32StringArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_result_i32_string`. +/// Extension trait for access to the reducer `insert_result_i_32_string`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_result_i_32_string { - /// Request that the remote module invoke the reducer `insert_result_i32_string` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_result_i_32_string` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_result_i_32_string { self.insert_result_i_32_string_then(r, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_result_i32_string` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_result_i_32_string` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_result_simple_enum_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_result_simple_enum_i_32_reducer.rs index 2df7e23496f..059db78c5b7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_result_simple_enum_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_result_simple_enum_i_32_reducer.rs @@ -23,11 +23,11 @@ impl __sdk::InModule for InsertResultSimpleEnumI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_result_simple_enum_i32`. +/// Extension trait for access to the reducer `insert_result_simple_enum_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_result_simple_enum_i_32 { - /// Request that the remote module invoke the reducer `insert_result_simple_enum_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_result_simple_enum_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -37,7 +37,7 @@ pub trait insert_result_simple_enum_i_32 { self.insert_result_simple_enum_i_32_then(r, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_result_simple_enum_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_result_simple_enum_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_result_string_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_result_string_i_32_reducer.rs index b7e06f1fac8..c0e548b6698 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_result_string_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_result_string_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertResultStringI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_result_string_i32`. +/// Extension trait for access to the reducer `insert_result_string_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_result_string_i_32 { - /// Request that the remote module invoke the reducer `insert_result_string_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_result_string_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_result_string_i_32 { self.insert_result_string_i_32_then(r, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_result_string_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_result_string_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_result_vec_i_32_string_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_result_vec_i_32_string_reducer.rs index 7e5676eb5e3..dab246f8f14 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_result_vec_i_32_string_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_result_vec_i_32_string_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertResultVecI32StringArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_result_vec_i32_string`. +/// Extension trait for access to the reducer `insert_result_vec_i_32_string`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_result_vec_i_32_string { - /// Request that the remote module invoke the reducer `insert_result_vec_i32_string` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_result_vec_i_32_string` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_result_vec_i_32_string { self.insert_result_vec_i_32_string_then(r, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_result_vec_i32_string` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_result_vec_i_32_string` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_128_reducer.rs index ae5575b897e..89fea88ae1f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i128`. +/// Extension trait for access to the reducer `insert_unique_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_128 { - /// Request that the remote module invoke the reducer `insert_unique_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_128 { self.insert_unique_i_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_16_reducer.rs index 6f2ef4be6e0..57f0c6568d7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i16`. +/// Extension trait for access to the reducer `insert_unique_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_16 { - /// Request that the remote module invoke the reducer `insert_unique_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_16 { self.insert_unique_i_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_256_reducer.rs index 29237fc51e4..d42d569dd23 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i256`. +/// Extension trait for access to the reducer `insert_unique_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_256 { - /// Request that the remote module invoke the reducer `insert_unique_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_256 { self.insert_unique_i_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_32_reducer.rs index 3fe7b24387e..53cf468b9cd 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i32`. +/// Extension trait for access to the reducer `insert_unique_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_32 { - /// Request that the remote module invoke the reducer `insert_unique_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_32 { self.insert_unique_i_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_64_reducer.rs index 3e2aae54063..de8ddd29b70 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i64`. +/// Extension trait for access to the reducer `insert_unique_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_64 { - /// Request that the remote module invoke the reducer `insert_unique_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_64 { self.insert_unique_i_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_8_reducer.rs index 2592111b8a6..4148a6cb964 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_i_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_i8`. +/// Extension trait for access to the reducer `insert_unique_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_i_8 { - /// Request that the remote module invoke the reducer `insert_unique_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_i_8 { self.insert_unique_i_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_128_reducer.rs index 932527a1635..e7c833300c7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u128`. +/// Extension trait for access to the reducer `insert_unique_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_128 { - /// Request that the remote module invoke the reducer `insert_unique_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_128 { self.insert_unique_u_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_16_reducer.rs index 12c2feaed9a..f639c955749 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u16`. +/// Extension trait for access to the reducer `insert_unique_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_16 { - /// Request that the remote module invoke the reducer `insert_unique_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_16 { self.insert_unique_u_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_256_reducer.rs index 80e314cd202..05d01e15505 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u256`. +/// Extension trait for access to the reducer `insert_unique_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_256 { - /// Request that the remote module invoke the reducer `insert_unique_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_256 { self.insert_unique_u_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_reducer.rs index d46290f17c2..c7055279174 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u32`. +/// Extension trait for access to the reducer `insert_unique_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_32 { - /// Request that the remote module invoke the reducer `insert_unique_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_32 { self.insert_unique_u_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_update_pk_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_update_pk_u_32_reducer.rs index 2fd884c2225..31f490fcd7a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_update_pk_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_32_update_pk_u_32_reducer.rs @@ -27,11 +27,11 @@ impl __sdk::InModule for InsertUniqueU32UpdatePkU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u32_update_pk_u32`. +/// Extension trait for access to the reducer `insert_unique_u_32_update_pk_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_32_update_pk_u_32 { - /// Request that the remote module invoke the reducer `insert_unique_u32_update_pk_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_32_update_pk_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -41,7 +41,7 @@ pub trait insert_unique_u_32_update_pk_u_32 { self.insert_unique_u_32_update_pk_u_32_then(n, d_unique, d_pk, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u32_update_pk_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_32_update_pk_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_64_reducer.rs index fb10a22eed5..b3c15576050 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u64`. +/// Extension trait for access to the reducer `insert_unique_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_64 { - /// Request that the remote module invoke the reducer `insert_unique_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_64 { self.insert_unique_u_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_8_reducer.rs index a8b683afaf1..4445e03d0de 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_unique_u_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for InsertUniqueU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_unique_u8`. +/// Extension trait for access to the reducer `insert_unique_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_unique_u_8 { - /// Request that the remote module invoke the reducer `insert_unique_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_unique_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait insert_unique_u_8 { self.insert_unique_u_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_unique_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_unique_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_32_reducer.rs index 7957a337b14..6618e92c54c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecF32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_f32`. +/// Extension trait for access to the reducer `insert_vec_f_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_f_32 { - /// Request that the remote module invoke the reducer `insert_vec_f32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_f_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_f_32 { self.insert_vec_f_32_then(f, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_f32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_f_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_64_reducer.rs index 5ebd996655a..3e08df60bf5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_f_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecF64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_f64`. +/// Extension trait for access to the reducer `insert_vec_f_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_f_64 { - /// Request that the remote module invoke the reducer `insert_vec_f64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_f_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_f_64 { self.insert_vec_f_64_then(f, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_f64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_f_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_128_reducer.rs index 206740e5146..06658035dfc 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i128`. +/// Extension trait for access to the reducer `insert_vec_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_128 { - /// Request that the remote module invoke the reducer `insert_vec_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_128 { self.insert_vec_i_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_16_reducer.rs index 00b2cd10f91..1a33c41494e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i16`. +/// Extension trait for access to the reducer `insert_vec_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_16 { - /// Request that the remote module invoke the reducer `insert_vec_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_16 { self.insert_vec_i_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_256_reducer.rs index 537914e56d2..3f93417fa08 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i256`. +/// Extension trait for access to the reducer `insert_vec_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_256 { - /// Request that the remote module invoke the reducer `insert_vec_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_256 { self.insert_vec_i_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_32_reducer.rs index 8b733448cd7..fb7ec34a86c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i32`. +/// Extension trait for access to the reducer `insert_vec_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_32 { - /// Request that the remote module invoke the reducer `insert_vec_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_32 { self.insert_vec_i_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_64_reducer.rs index 2fce2e1349a..d0573f68715 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i64`. +/// Extension trait for access to the reducer `insert_vec_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_64 { - /// Request that the remote module invoke the reducer `insert_vec_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_64 { self.insert_vec_i_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_8_reducer.rs index e456a1139bd..f24b4dfecd3 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_i_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_i8`. +/// Extension trait for access to the reducer `insert_vec_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_i_8 { - /// Request that the remote module invoke the reducer `insert_vec_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_i_8 { self.insert_vec_i_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_128_reducer.rs index ba1e5cab60c..57e5b6d6685 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_128_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u128`. +/// Extension trait for access to the reducer `insert_vec_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_128 { - /// Request that the remote module invoke the reducer `insert_vec_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_128 { self.insert_vec_u_128_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_16_reducer.rs index 6b88e573808..bf678a54a38 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_16_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u16`. +/// Extension trait for access to the reducer `insert_vec_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_16 { - /// Request that the remote module invoke the reducer `insert_vec_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_16 { self.insert_vec_u_16_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_256_reducer.rs index 6c918bf6a02..77f141c860c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_256_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u256`. +/// Extension trait for access to the reducer `insert_vec_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_256 { - /// Request that the remote module invoke the reducer `insert_vec_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_256 { self.insert_vec_u_256_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_32_reducer.rs index 694daa1d5c3..cb620ec777d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_32_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u32`. +/// Extension trait for access to the reducer `insert_vec_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_32 { - /// Request that the remote module invoke the reducer `insert_vec_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_32 { self.insert_vec_u_32_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_64_reducer.rs index 4ad982b1275..013aeab42ad 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_64_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u64`. +/// Extension trait for access to the reducer `insert_vec_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_64 { - /// Request that the remote module invoke the reducer `insert_vec_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_64 { self.insert_vec_u_64_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_8_reducer.rs index d3db56cacf2..dbef8ca1ad9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/insert_vec_u_8_reducer.rs @@ -21,11 +21,11 @@ impl __sdk::InModule for InsertVecU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `insert_vec_u8`. +/// Extension trait for access to the reducer `insert_vec_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait insert_vec_u_8 { - /// Request that the remote module invoke the reducer `insert_vec_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `insert_vec_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -35,7 +35,7 @@ pub trait insert_vec_u_8 { self.insert_vec_u_8_then(n, |_, _| {}) } - /// Request that the remote module invoke the reducer `insert_vec_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `insert_vec_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/mod.rs b/sdks/rust/tests/test-client/src/module_bindings/mod.rs index aa02043ad19..de9afc6155f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit e528393902d8cc982769e3b1a0f250d7d53edfa1). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; @@ -1566,47 +1566,47 @@ impl __sdk::InModule for Reducer { impl __sdk::Reducer for Reducer { fn reducer_name(&self) -> &'static str { match self { - Reducer::DeleteFromBtreeU32 { .. } => "delete_from_btree_u32", + Reducer::DeleteFromBtreeU32 { .. } => "delete_from_btree_u_32", Reducer::DeleteLargeTable { .. } => "delete_large_table", Reducer::DeletePkBool { .. } => "delete_pk_bool", Reducer::DeletePkConnectionId { .. } => "delete_pk_connection_id", - Reducer::DeletePkI128 { .. } => "delete_pk_i128", - Reducer::DeletePkI16 { .. } => "delete_pk_i16", - Reducer::DeletePkI256 { .. } => "delete_pk_i256", - Reducer::DeletePkI32 { .. } => "delete_pk_i32", - Reducer::DeletePkI64 { .. } => "delete_pk_i64", - Reducer::DeletePkI8 { .. } => "delete_pk_i8", + Reducer::DeletePkI128 { .. } => "delete_pk_i_128", + Reducer::DeletePkI16 { .. } => "delete_pk_i_16", + Reducer::DeletePkI256 { .. } => "delete_pk_i_256", + Reducer::DeletePkI32 { .. } => "delete_pk_i_32", + Reducer::DeletePkI64 { .. } => "delete_pk_i_64", + Reducer::DeletePkI8 { .. } => "delete_pk_i_8", Reducer::DeletePkIdentity { .. } => "delete_pk_identity", Reducer::DeletePkString { .. } => "delete_pk_string", - Reducer::DeletePkU128 { .. } => "delete_pk_u128", - Reducer::DeletePkU16 { .. } => "delete_pk_u16", - Reducer::DeletePkU256 { .. } => "delete_pk_u256", - Reducer::DeletePkU32 { .. } => "delete_pk_u32", - Reducer::DeletePkU32InsertPkU32Two { .. } => "delete_pk_u32_insert_pk_u32_two", - Reducer::DeletePkU32Two { .. } => "delete_pk_u32_two", - Reducer::DeletePkU64 { .. } => "delete_pk_u64", - Reducer::DeletePkU8 { .. } => "delete_pk_u8", + Reducer::DeletePkU128 { .. } => "delete_pk_u_128", + Reducer::DeletePkU16 { .. } => "delete_pk_u_16", + Reducer::DeletePkU256 { .. } => "delete_pk_u_256", + Reducer::DeletePkU32 { .. } => "delete_pk_u_32", + Reducer::DeletePkU32InsertPkU32Two { .. } => "delete_pk_u_32_insert_pk_u_32_two", + Reducer::DeletePkU32Two { .. } => "delete_pk_u_32_two", + Reducer::DeletePkU64 { .. } => "delete_pk_u_64", + Reducer::DeletePkU8 { .. } => "delete_pk_u_8", Reducer::DeletePkUuid { .. } => "delete_pk_uuid", Reducer::DeleteUniqueBool { .. } => "delete_unique_bool", Reducer::DeleteUniqueConnectionId { .. } => "delete_unique_connection_id", - Reducer::DeleteUniqueI128 { .. } => "delete_unique_i128", - Reducer::DeleteUniqueI16 { .. } => "delete_unique_i16", - Reducer::DeleteUniqueI256 { .. } => "delete_unique_i256", - Reducer::DeleteUniqueI32 { .. } => "delete_unique_i32", - Reducer::DeleteUniqueI64 { .. } => "delete_unique_i64", - Reducer::DeleteUniqueI8 { .. } => "delete_unique_i8", + Reducer::DeleteUniqueI128 { .. } => "delete_unique_i_128", + Reducer::DeleteUniqueI16 { .. } => "delete_unique_i_16", + Reducer::DeleteUniqueI256 { .. } => "delete_unique_i_256", + Reducer::DeleteUniqueI32 { .. } => "delete_unique_i_32", + Reducer::DeleteUniqueI64 { .. } => "delete_unique_i_64", + Reducer::DeleteUniqueI8 { .. } => "delete_unique_i_8", Reducer::DeleteUniqueIdentity { .. } => "delete_unique_identity", Reducer::DeleteUniqueString { .. } => "delete_unique_string", - Reducer::DeleteUniqueU128 { .. } => "delete_unique_u128", - Reducer::DeleteUniqueU16 { .. } => "delete_unique_u16", - Reducer::DeleteUniqueU256 { .. } => "delete_unique_u256", - Reducer::DeleteUniqueU32 { .. } => "delete_unique_u32", - Reducer::DeleteUniqueU64 { .. } => "delete_unique_u64", - Reducer::DeleteUniqueU8 { .. } => "delete_unique_u8", + Reducer::DeleteUniqueU128 { .. } => "delete_unique_u_128", + Reducer::DeleteUniqueU16 { .. } => "delete_unique_u_16", + Reducer::DeleteUniqueU256 { .. } => "delete_unique_u_256", + Reducer::DeleteUniqueU32 { .. } => "delete_unique_u_32", + Reducer::DeleteUniqueU64 { .. } => "delete_unique_u_64", + Reducer::DeleteUniqueU8 { .. } => "delete_unique_u_8", Reducer::DeleteUniqueUuid { .. } => "delete_unique_uuid", Reducer::InsertCallTimestamp => "insert_call_timestamp", - Reducer::InsertCallUuidV4 => "insert_call_uuid_v4", - Reducer::InsertCallUuidV7 => "insert_call_uuid_v7", + Reducer::InsertCallUuidV4 => "insert_call_uuid_v_4", + Reducer::InsertCallUuidV7 => "insert_call_uuid_v_7", Reducer::InsertCallerOneConnectionId => "insert_caller_one_connection_id", Reducer::InsertCallerOneIdentity => "insert_caller_one_identity", Reducer::InsertCallerPkConnectionId { .. } => "insert_caller_pk_connection_id", @@ -1615,9 +1615,9 @@ impl __sdk::Reducer for Reducer { Reducer::InsertCallerUniqueIdentity { .. } => "insert_caller_unique_identity", Reducer::InsertCallerVecConnectionId => "insert_caller_vec_connection_id", Reducer::InsertCallerVecIdentity => "insert_caller_vec_identity", - Reducer::InsertIntoBtreeU32 { .. } => "insert_into_btree_u32", + Reducer::InsertIntoBtreeU32 { .. } => "insert_into_btree_u_32", Reducer::InsertIntoIndexedSimpleEnum { .. } => "insert_into_indexed_simple_enum", - Reducer::InsertIntoPkBtreeU32 { .. } => "insert_into_pk_btree_u32", + Reducer::InsertIntoPkBtreeU32 { .. } => "insert_into_pk_btree_u_32", Reducer::InsertLargeTable { .. } => "insert_large_table", Reducer::InsertOneBool { .. } => "insert_one_bool", Reducer::InsertOneByteStruct { .. } => "insert_one_byte_struct", @@ -1625,77 +1625,77 @@ impl __sdk::Reducer for Reducer { Reducer::InsertOneEnumWithPayload { .. } => "insert_one_enum_with_payload", Reducer::InsertOneEveryPrimitiveStruct { .. } => "insert_one_every_primitive_struct", Reducer::InsertOneEveryVecStruct { .. } => "insert_one_every_vec_struct", - Reducer::InsertOneF32 { .. } => "insert_one_f32", - Reducer::InsertOneF64 { .. } => "insert_one_f64", - Reducer::InsertOneI128 { .. } => "insert_one_i128", - Reducer::InsertOneI16 { .. } => "insert_one_i16", - Reducer::InsertOneI256 { .. } => "insert_one_i256", - Reducer::InsertOneI32 { .. } => "insert_one_i32", - Reducer::InsertOneI64 { .. } => "insert_one_i64", - Reducer::InsertOneI8 { .. } => "insert_one_i8", + Reducer::InsertOneF32 { .. } => "insert_one_f_32", + Reducer::InsertOneF64 { .. } => "insert_one_f_64", + Reducer::InsertOneI128 { .. } => "insert_one_i_128", + Reducer::InsertOneI16 { .. } => "insert_one_i_16", + Reducer::InsertOneI256 { .. } => "insert_one_i_256", + Reducer::InsertOneI32 { .. } => "insert_one_i_32", + Reducer::InsertOneI64 { .. } => "insert_one_i_64", + Reducer::InsertOneI8 { .. } => "insert_one_i_8", Reducer::InsertOneIdentity { .. } => "insert_one_identity", Reducer::InsertOneSimpleEnum { .. } => "insert_one_simple_enum", Reducer::InsertOneString { .. } => "insert_one_string", Reducer::InsertOneTimestamp { .. } => "insert_one_timestamp", - Reducer::InsertOneU128 { .. } => "insert_one_u128", - Reducer::InsertOneU16 { .. } => "insert_one_u16", - Reducer::InsertOneU256 { .. } => "insert_one_u256", - Reducer::InsertOneU32 { .. } => "insert_one_u32", - Reducer::InsertOneU64 { .. } => "insert_one_u64", - Reducer::InsertOneU8 { .. } => "insert_one_u8", + Reducer::InsertOneU128 { .. } => "insert_one_u_128", + Reducer::InsertOneU16 { .. } => "insert_one_u_16", + Reducer::InsertOneU256 { .. } => "insert_one_u_256", + Reducer::InsertOneU32 { .. } => "insert_one_u_32", + Reducer::InsertOneU64 { .. } => "insert_one_u_64", + Reducer::InsertOneU8 { .. } => "insert_one_u_8", Reducer::InsertOneUnitStruct { .. } => "insert_one_unit_struct", Reducer::InsertOneUuid { .. } => "insert_one_uuid", Reducer::InsertOptionEveryPrimitiveStruct { .. } => "insert_option_every_primitive_struct", - Reducer::InsertOptionI32 { .. } => "insert_option_i32", + Reducer::InsertOptionI32 { .. } => "insert_option_i_32", Reducer::InsertOptionIdentity { .. } => "insert_option_identity", Reducer::InsertOptionSimpleEnum { .. } => "insert_option_simple_enum", Reducer::InsertOptionString { .. } => "insert_option_string", Reducer::InsertOptionUuid { .. } => "insert_option_uuid", - Reducer::InsertOptionVecOptionI32 { .. } => "insert_option_vec_option_i32", + Reducer::InsertOptionVecOptionI32 { .. } => "insert_option_vec_option_i_32", Reducer::InsertPkBool { .. } => "insert_pk_bool", Reducer::InsertPkConnectionId { .. } => "insert_pk_connection_id", - Reducer::InsertPkI128 { .. } => "insert_pk_i128", - Reducer::InsertPkI16 { .. } => "insert_pk_i16", - Reducer::InsertPkI256 { .. } => "insert_pk_i256", - Reducer::InsertPkI32 { .. } => "insert_pk_i32", - Reducer::InsertPkI64 { .. } => "insert_pk_i64", - Reducer::InsertPkI8 { .. } => "insert_pk_i8", + Reducer::InsertPkI128 { .. } => "insert_pk_i_128", + Reducer::InsertPkI16 { .. } => "insert_pk_i_16", + Reducer::InsertPkI256 { .. } => "insert_pk_i_256", + Reducer::InsertPkI32 { .. } => "insert_pk_i_32", + Reducer::InsertPkI64 { .. } => "insert_pk_i_64", + Reducer::InsertPkI8 { .. } => "insert_pk_i_8", Reducer::InsertPkIdentity { .. } => "insert_pk_identity", Reducer::InsertPkSimpleEnum { .. } => "insert_pk_simple_enum", Reducer::InsertPkString { .. } => "insert_pk_string", - Reducer::InsertPkU128 { .. } => "insert_pk_u128", - Reducer::InsertPkU16 { .. } => "insert_pk_u16", - Reducer::InsertPkU256 { .. } => "insert_pk_u256", - Reducer::InsertPkU32 { .. } => "insert_pk_u32", - Reducer::InsertPkU32Two { .. } => "insert_pk_u32_two", - Reducer::InsertPkU64 { .. } => "insert_pk_u64", - Reducer::InsertPkU8 { .. } => "insert_pk_u8", + Reducer::InsertPkU128 { .. } => "insert_pk_u_128", + Reducer::InsertPkU16 { .. } => "insert_pk_u_16", + Reducer::InsertPkU256 { .. } => "insert_pk_u_256", + Reducer::InsertPkU32 { .. } => "insert_pk_u_32", + Reducer::InsertPkU32Two { .. } => "insert_pk_u_32_two", + Reducer::InsertPkU64 { .. } => "insert_pk_u_64", + Reducer::InsertPkU8 { .. } => "insert_pk_u_8", Reducer::InsertPkUuid { .. } => "insert_pk_uuid", Reducer::InsertPrimitivesAsStrings { .. } => "insert_primitives_as_strings", Reducer::InsertResultEveryPrimitiveStructString { .. } => "insert_result_every_primitive_struct_string", - Reducer::InsertResultI32String { .. } => "insert_result_i32_string", + Reducer::InsertResultI32String { .. } => "insert_result_i_32_string", Reducer::InsertResultIdentityString { .. } => "insert_result_identity_string", - Reducer::InsertResultSimpleEnumI32 { .. } => "insert_result_simple_enum_i32", - Reducer::InsertResultStringI32 { .. } => "insert_result_string_i32", - Reducer::InsertResultVecI32String { .. } => "insert_result_vec_i32_string", + Reducer::InsertResultSimpleEnumI32 { .. } => "insert_result_simple_enum_i_32", + Reducer::InsertResultStringI32 { .. } => "insert_result_string_i_32", + Reducer::InsertResultVecI32String { .. } => "insert_result_vec_i_32_string", Reducer::InsertTableHoldsTable { .. } => "insert_table_holds_table", Reducer::InsertUniqueBool { .. } => "insert_unique_bool", Reducer::InsertUniqueConnectionId { .. } => "insert_unique_connection_id", - Reducer::InsertUniqueI128 { .. } => "insert_unique_i128", - Reducer::InsertUniqueI16 { .. } => "insert_unique_i16", - Reducer::InsertUniqueI256 { .. } => "insert_unique_i256", - Reducer::InsertUniqueI32 { .. } => "insert_unique_i32", - Reducer::InsertUniqueI64 { .. } => "insert_unique_i64", - Reducer::InsertUniqueI8 { .. } => "insert_unique_i8", + Reducer::InsertUniqueI128 { .. } => "insert_unique_i_128", + Reducer::InsertUniqueI16 { .. } => "insert_unique_i_16", + Reducer::InsertUniqueI256 { .. } => "insert_unique_i_256", + Reducer::InsertUniqueI32 { .. } => "insert_unique_i_32", + Reducer::InsertUniqueI64 { .. } => "insert_unique_i_64", + Reducer::InsertUniqueI8 { .. } => "insert_unique_i_8", Reducer::InsertUniqueIdentity { .. } => "insert_unique_identity", Reducer::InsertUniqueString { .. } => "insert_unique_string", - Reducer::InsertUniqueU128 { .. } => "insert_unique_u128", - Reducer::InsertUniqueU16 { .. } => "insert_unique_u16", - Reducer::InsertUniqueU256 { .. } => "insert_unique_u256", - Reducer::InsertUniqueU32 { .. } => "insert_unique_u32", - Reducer::InsertUniqueU32UpdatePkU32 { .. } => "insert_unique_u32_update_pk_u32", - Reducer::InsertUniqueU64 { .. } => "insert_unique_u64", - Reducer::InsertUniqueU8 { .. } => "insert_unique_u8", + Reducer::InsertUniqueU128 { .. } => "insert_unique_u_128", + Reducer::InsertUniqueU16 { .. } => "insert_unique_u_16", + Reducer::InsertUniqueU256 { .. } => "insert_unique_u_256", + Reducer::InsertUniqueU32 { .. } => "insert_unique_u_32", + Reducer::InsertUniqueU32UpdatePkU32 { .. } => "insert_unique_u_32_update_pk_u_32", + Reducer::InsertUniqueU64 { .. } => "insert_unique_u_64", + Reducer::InsertUniqueU8 { .. } => "insert_unique_u_8", Reducer::InsertUniqueUuid { .. } => "insert_unique_uuid", Reducer::InsertUser { .. } => "insert_user", Reducer::InsertVecBool { .. } => "insert_vec_bool", @@ -1704,24 +1704,24 @@ impl __sdk::Reducer for Reducer { Reducer::InsertVecEnumWithPayload { .. } => "insert_vec_enum_with_payload", Reducer::InsertVecEveryPrimitiveStruct { .. } => "insert_vec_every_primitive_struct", Reducer::InsertVecEveryVecStruct { .. } => "insert_vec_every_vec_struct", - Reducer::InsertVecF32 { .. } => "insert_vec_f32", - Reducer::InsertVecF64 { .. } => "insert_vec_f64", - Reducer::InsertVecI128 { .. } => "insert_vec_i128", - Reducer::InsertVecI16 { .. } => "insert_vec_i16", - Reducer::InsertVecI256 { .. } => "insert_vec_i256", - Reducer::InsertVecI32 { .. } => "insert_vec_i32", - Reducer::InsertVecI64 { .. } => "insert_vec_i64", - Reducer::InsertVecI8 { .. } => "insert_vec_i8", + Reducer::InsertVecF32 { .. } => "insert_vec_f_32", + Reducer::InsertVecF64 { .. } => "insert_vec_f_64", + Reducer::InsertVecI128 { .. } => "insert_vec_i_128", + Reducer::InsertVecI16 { .. } => "insert_vec_i_16", + Reducer::InsertVecI256 { .. } => "insert_vec_i_256", + Reducer::InsertVecI32 { .. } => "insert_vec_i_32", + Reducer::InsertVecI64 { .. } => "insert_vec_i_64", + Reducer::InsertVecI8 { .. } => "insert_vec_i_8", Reducer::InsertVecIdentity { .. } => "insert_vec_identity", Reducer::InsertVecSimpleEnum { .. } => "insert_vec_simple_enum", Reducer::InsertVecString { .. } => "insert_vec_string", Reducer::InsertVecTimestamp { .. } => "insert_vec_timestamp", - Reducer::InsertVecU128 { .. } => "insert_vec_u128", - Reducer::InsertVecU16 { .. } => "insert_vec_u16", - Reducer::InsertVecU256 { .. } => "insert_vec_u256", - Reducer::InsertVecU32 { .. } => "insert_vec_u32", - Reducer::InsertVecU64 { .. } => "insert_vec_u64", - Reducer::InsertVecU8 { .. } => "insert_vec_u8", + Reducer::InsertVecU128 { .. } => "insert_vec_u_128", + Reducer::InsertVecU16 { .. } => "insert_vec_u_16", + Reducer::InsertVecU256 { .. } => "insert_vec_u_256", + Reducer::InsertVecU32 { .. } => "insert_vec_u_32", + Reducer::InsertVecU64 { .. } => "insert_vec_u_64", + Reducer::InsertVecU8 { .. } => "insert_vec_u_8", Reducer::InsertVecUnitStruct { .. } => "insert_vec_unit_struct", Reducer::InsertVecUuid { .. } => "insert_vec_uuid", Reducer::NoOpSucceeds => "no_op_succeeds", @@ -1730,39 +1730,39 @@ impl __sdk::Reducer for Reducer { Reducer::UpdateIndexedSimpleEnum { .. } => "update_indexed_simple_enum", Reducer::UpdatePkBool { .. } => "update_pk_bool", Reducer::UpdatePkConnectionId { .. } => "update_pk_connection_id", - Reducer::UpdatePkI128 { .. } => "update_pk_i128", - Reducer::UpdatePkI16 { .. } => "update_pk_i16", - Reducer::UpdatePkI256 { .. } => "update_pk_i256", - Reducer::UpdatePkI32 { .. } => "update_pk_i32", - Reducer::UpdatePkI64 { .. } => "update_pk_i64", - Reducer::UpdatePkI8 { .. } => "update_pk_i8", + Reducer::UpdatePkI128 { .. } => "update_pk_i_128", + Reducer::UpdatePkI16 { .. } => "update_pk_i_16", + Reducer::UpdatePkI256 { .. } => "update_pk_i_256", + Reducer::UpdatePkI32 { .. } => "update_pk_i_32", + Reducer::UpdatePkI64 { .. } => "update_pk_i_64", + Reducer::UpdatePkI8 { .. } => "update_pk_i_8", Reducer::UpdatePkIdentity { .. } => "update_pk_identity", Reducer::UpdatePkSimpleEnum { .. } => "update_pk_simple_enum", Reducer::UpdatePkString { .. } => "update_pk_string", - Reducer::UpdatePkU128 { .. } => "update_pk_u128", - Reducer::UpdatePkU16 { .. } => "update_pk_u16", - Reducer::UpdatePkU256 { .. } => "update_pk_u256", - Reducer::UpdatePkU32 { .. } => "update_pk_u32", - Reducer::UpdatePkU32Two { .. } => "update_pk_u32_two", - Reducer::UpdatePkU64 { .. } => "update_pk_u64", - Reducer::UpdatePkU8 { .. } => "update_pk_u8", + Reducer::UpdatePkU128 { .. } => "update_pk_u_128", + Reducer::UpdatePkU16 { .. } => "update_pk_u_16", + Reducer::UpdatePkU256 { .. } => "update_pk_u_256", + Reducer::UpdatePkU32 { .. } => "update_pk_u_32", + Reducer::UpdatePkU32Two { .. } => "update_pk_u_32_two", + Reducer::UpdatePkU64 { .. } => "update_pk_u_64", + Reducer::UpdatePkU8 { .. } => "update_pk_u_8", Reducer::UpdatePkUuid { .. } => "update_pk_uuid", Reducer::UpdateUniqueBool { .. } => "update_unique_bool", Reducer::UpdateUniqueConnectionId { .. } => "update_unique_connection_id", - Reducer::UpdateUniqueI128 { .. } => "update_unique_i128", - Reducer::UpdateUniqueI16 { .. } => "update_unique_i16", - Reducer::UpdateUniqueI256 { .. } => "update_unique_i256", - Reducer::UpdateUniqueI32 { .. } => "update_unique_i32", - Reducer::UpdateUniqueI64 { .. } => "update_unique_i64", - Reducer::UpdateUniqueI8 { .. } => "update_unique_i8", + Reducer::UpdateUniqueI128 { .. } => "update_unique_i_128", + Reducer::UpdateUniqueI16 { .. } => "update_unique_i_16", + Reducer::UpdateUniqueI256 { .. } => "update_unique_i_256", + Reducer::UpdateUniqueI32 { .. } => "update_unique_i_32", + Reducer::UpdateUniqueI64 { .. } => "update_unique_i_64", + Reducer::UpdateUniqueI8 { .. } => "update_unique_i_8", Reducer::UpdateUniqueIdentity { .. } => "update_unique_identity", Reducer::UpdateUniqueString { .. } => "update_unique_string", - Reducer::UpdateUniqueU128 { .. } => "update_unique_u128", - Reducer::UpdateUniqueU16 { .. } => "update_unique_u16", - Reducer::UpdateUniqueU256 { .. } => "update_unique_u256", - Reducer::UpdateUniqueU32 { .. } => "update_unique_u32", - Reducer::UpdateUniqueU64 { .. } => "update_unique_u64", - Reducer::UpdateUniqueU8 { .. } => "update_unique_u8", + Reducer::UpdateUniqueU128 { .. } => "update_unique_u_128", + Reducer::UpdateUniqueU16 { .. } => "update_unique_u_16", + Reducer::UpdateUniqueU256 { .. } => "update_unique_u_256", + Reducer::UpdateUniqueU32 { .. } => "update_unique_u_32", + Reducer::UpdateUniqueU64 { .. } => "update_unique_u_64", + Reducer::UpdateUniqueU8 { .. } => "update_unique_u_8", Reducer::UpdateUniqueUuid { .. } => "update_unique_uuid", _ => unreachable!(), } @@ -2769,7 +2769,7 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { let mut db_update = DbUpdate::default(); for table_update in __sdk::transaction_update_iter_table_updates(raw) { match &table_update.table_name[..] { - "btree_u32" => db_update + "btree_u_32" => db_update .btree_u_32 .append(btree_u_32_table::parse_table_update(table_update)?), "indexed_simple_enum" => db_update @@ -2802,28 +2802,28 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "one_every_vec_struct" => db_update .one_every_vec_struct .append(one_every_vec_struct_table::parse_table_update(table_update)?), - "one_f32" => db_update + "one_f_32" => db_update .one_f_32 .append(one_f_32_table::parse_table_update(table_update)?), - "one_f64" => db_update + "one_f_64" => db_update .one_f_64 .append(one_f_64_table::parse_table_update(table_update)?), - "one_i128" => db_update + "one_i_128" => db_update .one_i_128 .append(one_i_128_table::parse_table_update(table_update)?), - "one_i16" => db_update + "one_i_16" => db_update .one_i_16 .append(one_i_16_table::parse_table_update(table_update)?), - "one_i256" => db_update + "one_i_256" => db_update .one_i_256 .append(one_i_256_table::parse_table_update(table_update)?), - "one_i32" => db_update + "one_i_32" => db_update .one_i_32 .append(one_i_32_table::parse_table_update(table_update)?), - "one_i64" => db_update + "one_i_64" => db_update .one_i_64 .append(one_i_64_table::parse_table_update(table_update)?), - "one_i8" => db_update + "one_i_8" => db_update .one_i_8 .append(one_i_8_table::parse_table_update(table_update)?), "one_identity" => db_update @@ -2838,22 +2838,22 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "one_timestamp" => db_update .one_timestamp .append(one_timestamp_table::parse_table_update(table_update)?), - "one_u128" => db_update + "one_u_128" => db_update .one_u_128 .append(one_u_128_table::parse_table_update(table_update)?), - "one_u16" => db_update + "one_u_16" => db_update .one_u_16 .append(one_u_16_table::parse_table_update(table_update)?), - "one_u256" => db_update + "one_u_256" => db_update .one_u_256 .append(one_u_256_table::parse_table_update(table_update)?), - "one_u32" => db_update + "one_u_32" => db_update .one_u_32 .append(one_u_32_table::parse_table_update(table_update)?), - "one_u64" => db_update + "one_u_64" => db_update .one_u_64 .append(one_u_64_table::parse_table_update(table_update)?), - "one_u8" => db_update + "one_u_8" => db_update .one_u_8 .append(one_u_8_table::parse_table_update(table_update)?), "one_unit_struct" => db_update @@ -2865,7 +2865,7 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "option_every_primitive_struct" => db_update .option_every_primitive_struct .append(option_every_primitive_struct_table::parse_table_update(table_update)?), - "option_i32" => db_update + "option_i_32" => db_update .option_i_32 .append(option_i_32_table::parse_table_update(table_update)?), "option_identity" => db_update @@ -2880,7 +2880,7 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "option_uuid" => db_update .option_uuid .append(option_uuid_table::parse_table_update(table_update)?), - "option_vec_option_i32" => db_update + "option_vec_option_i_32" => db_update .option_vec_option_i_32 .append(option_vec_option_i_32_table::parse_table_update(table_update)?), "pk_bool" => db_update @@ -2889,22 +2889,22 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "pk_connection_id" => db_update .pk_connection_id .append(pk_connection_id_table::parse_table_update(table_update)?), - "pk_i128" => db_update + "pk_i_128" => db_update .pk_i_128 .append(pk_i_128_table::parse_table_update(table_update)?), - "pk_i16" => db_update + "pk_i_16" => db_update .pk_i_16 .append(pk_i_16_table::parse_table_update(table_update)?), - "pk_i256" => db_update + "pk_i_256" => db_update .pk_i_256 .append(pk_i_256_table::parse_table_update(table_update)?), - "pk_i32" => db_update + "pk_i_32" => db_update .pk_i_32 .append(pk_i_32_table::parse_table_update(table_update)?), - "pk_i64" => db_update + "pk_i_64" => db_update .pk_i_64 .append(pk_i_64_table::parse_table_update(table_update)?), - "pk_i8" => db_update.pk_i_8.append(pk_i_8_table::parse_table_update(table_update)?), + "pk_i_8" => db_update.pk_i_8.append(pk_i_8_table::parse_table_update(table_update)?), "pk_identity" => db_update .pk_identity .append(pk_identity_table::parse_table_update(table_update)?), @@ -2914,44 +2914,44 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "pk_string" => db_update .pk_string .append(pk_string_table::parse_table_update(table_update)?), - "pk_u128" => db_update + "pk_u_128" => db_update .pk_u_128 .append(pk_u_128_table::parse_table_update(table_update)?), - "pk_u16" => db_update + "pk_u_16" => db_update .pk_u_16 .append(pk_u_16_table::parse_table_update(table_update)?), - "pk_u256" => db_update + "pk_u_256" => db_update .pk_u_256 .append(pk_u_256_table::parse_table_update(table_update)?), - "pk_u32" => db_update + "pk_u_32" => db_update .pk_u_32 .append(pk_u_32_table::parse_table_update(table_update)?), - "pk_u32_two" => db_update + "pk_u_32_two" => db_update .pk_u_32_two .append(pk_u_32_two_table::parse_table_update(table_update)?), - "pk_u64" => db_update + "pk_u_64" => db_update .pk_u_64 .append(pk_u_64_table::parse_table_update(table_update)?), - "pk_u8" => db_update.pk_u_8.append(pk_u_8_table::parse_table_update(table_update)?), + "pk_u_8" => db_update.pk_u_8.append(pk_u_8_table::parse_table_update(table_update)?), "pk_uuid" => db_update .pk_uuid .append(pk_uuid_table::parse_table_update(table_update)?), "result_every_primitive_struct_string" => db_update.result_every_primitive_struct_string.append( result_every_primitive_struct_string_table::parse_table_update(table_update)?, ), - "result_i32_string" => db_update + "result_i_32_string" => db_update .result_i_32_string .append(result_i_32_string_table::parse_table_update(table_update)?), "result_identity_string" => db_update .result_identity_string .append(result_identity_string_table::parse_table_update(table_update)?), - "result_simple_enum_i32" => db_update + "result_simple_enum_i_32" => db_update .result_simple_enum_i_32 .append(result_simple_enum_i_32_table::parse_table_update(table_update)?), - "result_string_i32" => db_update + "result_string_i_32" => db_update .result_string_i_32 .append(result_string_i_32_table::parse_table_update(table_update)?), - "result_vec_i32_string" => db_update + "result_vec_i_32_string" => db_update .result_vec_i_32_string .append(result_vec_i_32_string_table::parse_table_update(table_update)?), "scheduled_table" => db_update @@ -2966,22 +2966,22 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "unique_connection_id" => db_update .unique_connection_id .append(unique_connection_id_table::parse_table_update(table_update)?), - "unique_i128" => db_update + "unique_i_128" => db_update .unique_i_128 .append(unique_i_128_table::parse_table_update(table_update)?), - "unique_i16" => db_update + "unique_i_16" => db_update .unique_i_16 .append(unique_i_16_table::parse_table_update(table_update)?), - "unique_i256" => db_update + "unique_i_256" => db_update .unique_i_256 .append(unique_i_256_table::parse_table_update(table_update)?), - "unique_i32" => db_update + "unique_i_32" => db_update .unique_i_32 .append(unique_i_32_table::parse_table_update(table_update)?), - "unique_i64" => db_update + "unique_i_64" => db_update .unique_i_64 .append(unique_i_64_table::parse_table_update(table_update)?), - "unique_i8" => db_update + "unique_i_8" => db_update .unique_i_8 .append(unique_i_8_table::parse_table_update(table_update)?), "unique_identity" => db_update @@ -2990,22 +2990,22 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "unique_string" => db_update .unique_string .append(unique_string_table::parse_table_update(table_update)?), - "unique_u128" => db_update + "unique_u_128" => db_update .unique_u_128 .append(unique_u_128_table::parse_table_update(table_update)?), - "unique_u16" => db_update + "unique_u_16" => db_update .unique_u_16 .append(unique_u_16_table::parse_table_update(table_update)?), - "unique_u256" => db_update + "unique_u_256" => db_update .unique_u_256 .append(unique_u_256_table::parse_table_update(table_update)?), - "unique_u32" => db_update + "unique_u_32" => db_update .unique_u_32 .append(unique_u_32_table::parse_table_update(table_update)?), - "unique_u64" => db_update + "unique_u_64" => db_update .unique_u_64 .append(unique_u_64_table::parse_table_update(table_update)?), - "unique_u8" => db_update + "unique_u_8" => db_update .unique_u_8 .append(unique_u_8_table::parse_table_update(table_update)?), "unique_uuid" => db_update @@ -3030,28 +3030,28 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "vec_every_vec_struct" => db_update .vec_every_vec_struct .append(vec_every_vec_struct_table::parse_table_update(table_update)?), - "vec_f32" => db_update + "vec_f_32" => db_update .vec_f_32 .append(vec_f_32_table::parse_table_update(table_update)?), - "vec_f64" => db_update + "vec_f_64" => db_update .vec_f_64 .append(vec_f_64_table::parse_table_update(table_update)?), - "vec_i128" => db_update + "vec_i_128" => db_update .vec_i_128 .append(vec_i_128_table::parse_table_update(table_update)?), - "vec_i16" => db_update + "vec_i_16" => db_update .vec_i_16 .append(vec_i_16_table::parse_table_update(table_update)?), - "vec_i256" => db_update + "vec_i_256" => db_update .vec_i_256 .append(vec_i_256_table::parse_table_update(table_update)?), - "vec_i32" => db_update + "vec_i_32" => db_update .vec_i_32 .append(vec_i_32_table::parse_table_update(table_update)?), - "vec_i64" => db_update + "vec_i_64" => db_update .vec_i_64 .append(vec_i_64_table::parse_table_update(table_update)?), - "vec_i8" => db_update + "vec_i_8" => db_update .vec_i_8 .append(vec_i_8_table::parse_table_update(table_update)?), "vec_identity" => db_update @@ -3066,22 +3066,22 @@ impl TryFrom<__ws::v2::TransactionUpdate> for DbUpdate { "vec_timestamp" => db_update .vec_timestamp .append(vec_timestamp_table::parse_table_update(table_update)?), - "vec_u128" => db_update + "vec_u_128" => db_update .vec_u_128 .append(vec_u_128_table::parse_table_update(table_update)?), - "vec_u16" => db_update + "vec_u_16" => db_update .vec_u_16 .append(vec_u_16_table::parse_table_update(table_update)?), - "vec_u256" => db_update + "vec_u_256" => db_update .vec_u_256 .append(vec_u_256_table::parse_table_update(table_update)?), - "vec_u32" => db_update + "vec_u_32" => db_update .vec_u_32 .append(vec_u_32_table::parse_table_update(table_update)?), - "vec_u64" => db_update + "vec_u_64" => db_update .vec_u_64 .append(vec_u_64_table::parse_table_update(table_update)?), - "vec_u8" => db_update + "vec_u_8" => db_update .vec_u_8 .append(vec_u_8_table::parse_table_update(table_update)?), "vec_unit_struct" => db_update @@ -3108,7 +3108,7 @@ impl __sdk::DbUpdate for DbUpdate { fn apply_to_client_cache(&self, cache: &mut __sdk::ClientCache) -> AppliedDiff<'_> { let mut diff = AppliedDiff::default(); - diff.btree_u_32 = cache.apply_diff_to_table::("btree_u32", &self.btree_u_32); + diff.btree_u_32 = cache.apply_diff_to_table::("btree_u_32", &self.btree_u_32); diff.indexed_simple_enum = cache.apply_diff_to_table::("indexed_simple_enum", &self.indexed_simple_enum); diff.indexed_table = cache.apply_diff_to_table::("indexed_table", &self.indexed_table); @@ -3126,38 +3126,38 @@ impl __sdk::DbUpdate for DbUpdate { ); diff.one_every_vec_struct = cache.apply_diff_to_table::("one_every_vec_struct", &self.one_every_vec_struct); - diff.one_f_32 = cache.apply_diff_to_table::("one_f32", &self.one_f_32); - diff.one_f_64 = cache.apply_diff_to_table::("one_f64", &self.one_f_64); - diff.one_i_128 = cache.apply_diff_to_table::("one_i128", &self.one_i_128); - diff.one_i_16 = cache.apply_diff_to_table::("one_i16", &self.one_i_16); - diff.one_i_256 = cache.apply_diff_to_table::("one_i256", &self.one_i_256); - diff.one_i_32 = cache.apply_diff_to_table::("one_i32", &self.one_i_32); - diff.one_i_64 = cache.apply_diff_to_table::("one_i64", &self.one_i_64); - diff.one_i_8 = cache.apply_diff_to_table::("one_i8", &self.one_i_8); + diff.one_f_32 = cache.apply_diff_to_table::("one_f_32", &self.one_f_32); + diff.one_f_64 = cache.apply_diff_to_table::("one_f_64", &self.one_f_64); + diff.one_i_128 = cache.apply_diff_to_table::("one_i_128", &self.one_i_128); + diff.one_i_16 = cache.apply_diff_to_table::("one_i_16", &self.one_i_16); + diff.one_i_256 = cache.apply_diff_to_table::("one_i_256", &self.one_i_256); + diff.one_i_32 = cache.apply_diff_to_table::("one_i_32", &self.one_i_32); + diff.one_i_64 = cache.apply_diff_to_table::("one_i_64", &self.one_i_64); + diff.one_i_8 = cache.apply_diff_to_table::("one_i_8", &self.one_i_8); diff.one_identity = cache.apply_diff_to_table::("one_identity", &self.one_identity); diff.one_simple_enum = cache.apply_diff_to_table::("one_simple_enum", &self.one_simple_enum); diff.one_string = cache.apply_diff_to_table::("one_string", &self.one_string); diff.one_timestamp = cache.apply_diff_to_table::("one_timestamp", &self.one_timestamp); - diff.one_u_128 = cache.apply_diff_to_table::("one_u128", &self.one_u_128); - diff.one_u_16 = cache.apply_diff_to_table::("one_u16", &self.one_u_16); - diff.one_u_256 = cache.apply_diff_to_table::("one_u256", &self.one_u_256); - diff.one_u_32 = cache.apply_diff_to_table::("one_u32", &self.one_u_32); - diff.one_u_64 = cache.apply_diff_to_table::("one_u64", &self.one_u_64); - diff.one_u_8 = cache.apply_diff_to_table::("one_u8", &self.one_u_8); + diff.one_u_128 = cache.apply_diff_to_table::("one_u_128", &self.one_u_128); + diff.one_u_16 = cache.apply_diff_to_table::("one_u_16", &self.one_u_16); + diff.one_u_256 = cache.apply_diff_to_table::("one_u_256", &self.one_u_256); + diff.one_u_32 = cache.apply_diff_to_table::("one_u_32", &self.one_u_32); + diff.one_u_64 = cache.apply_diff_to_table::("one_u_64", &self.one_u_64); + diff.one_u_8 = cache.apply_diff_to_table::("one_u_8", &self.one_u_8); diff.one_unit_struct = cache.apply_diff_to_table::("one_unit_struct", &self.one_unit_struct); diff.one_uuid = cache.apply_diff_to_table::("one_uuid", &self.one_uuid); diff.option_every_primitive_struct = cache.apply_diff_to_table::( "option_every_primitive_struct", &self.option_every_primitive_struct, ); - diff.option_i_32 = cache.apply_diff_to_table::("option_i32", &self.option_i_32); + diff.option_i_32 = cache.apply_diff_to_table::("option_i_32", &self.option_i_32); diff.option_identity = cache.apply_diff_to_table::("option_identity", &self.option_identity); diff.option_simple_enum = cache.apply_diff_to_table::("option_simple_enum", &self.option_simple_enum); diff.option_string = cache.apply_diff_to_table::("option_string", &self.option_string); diff.option_uuid = cache.apply_diff_to_table::("option_uuid", &self.option_uuid); diff.option_vec_option_i_32 = - cache.apply_diff_to_table::("option_vec_option_i32", &self.option_vec_option_i_32); + cache.apply_diff_to_table::("option_vec_option_i_32", &self.option_vec_option_i_32); diff.pk_bool = cache .apply_diff_to_table::("pk_bool", &self.pk_bool) .with_updates_by_pk(|row| &row.b); @@ -3165,22 +3165,22 @@ impl __sdk::DbUpdate for DbUpdate { .apply_diff_to_table::("pk_connection_id", &self.pk_connection_id) .with_updates_by_pk(|row| &row.a); diff.pk_i_128 = cache - .apply_diff_to_table::("pk_i128", &self.pk_i_128) + .apply_diff_to_table::("pk_i_128", &self.pk_i_128) .with_updates_by_pk(|row| &row.n); diff.pk_i_16 = cache - .apply_diff_to_table::("pk_i16", &self.pk_i_16) + .apply_diff_to_table::("pk_i_16", &self.pk_i_16) .with_updates_by_pk(|row| &row.n); diff.pk_i_256 = cache - .apply_diff_to_table::("pk_i256", &self.pk_i_256) + .apply_diff_to_table::("pk_i_256", &self.pk_i_256) .with_updates_by_pk(|row| &row.n); diff.pk_i_32 = cache - .apply_diff_to_table::("pk_i32", &self.pk_i_32) + .apply_diff_to_table::("pk_i_32", &self.pk_i_32) .with_updates_by_pk(|row| &row.n); diff.pk_i_64 = cache - .apply_diff_to_table::("pk_i64", &self.pk_i_64) + .apply_diff_to_table::("pk_i_64", &self.pk_i_64) .with_updates_by_pk(|row| &row.n); diff.pk_i_8 = cache - .apply_diff_to_table::("pk_i8", &self.pk_i_8) + .apply_diff_to_table::("pk_i_8", &self.pk_i_8) .with_updates_by_pk(|row| &row.n); diff.pk_identity = cache .apply_diff_to_table::("pk_identity", &self.pk_identity) @@ -3192,25 +3192,25 @@ impl __sdk::DbUpdate for DbUpdate { .apply_diff_to_table::("pk_string", &self.pk_string) .with_updates_by_pk(|row| &row.s); diff.pk_u_128 = cache - .apply_diff_to_table::("pk_u128", &self.pk_u_128) + .apply_diff_to_table::("pk_u_128", &self.pk_u_128) .with_updates_by_pk(|row| &row.n); diff.pk_u_16 = cache - .apply_diff_to_table::("pk_u16", &self.pk_u_16) + .apply_diff_to_table::("pk_u_16", &self.pk_u_16) .with_updates_by_pk(|row| &row.n); diff.pk_u_256 = cache - .apply_diff_to_table::("pk_u256", &self.pk_u_256) + .apply_diff_to_table::("pk_u_256", &self.pk_u_256) .with_updates_by_pk(|row| &row.n); diff.pk_u_32 = cache - .apply_diff_to_table::("pk_u32", &self.pk_u_32) + .apply_diff_to_table::("pk_u_32", &self.pk_u_32) .with_updates_by_pk(|row| &row.n); diff.pk_u_32_two = cache - .apply_diff_to_table::("pk_u32_two", &self.pk_u_32_two) + .apply_diff_to_table::("pk_u_32_two", &self.pk_u_32_two) .with_updates_by_pk(|row| &row.n); diff.pk_u_64 = cache - .apply_diff_to_table::("pk_u64", &self.pk_u_64) + .apply_diff_to_table::("pk_u_64", &self.pk_u_64) .with_updates_by_pk(|row| &row.n); diff.pk_u_8 = cache - .apply_diff_to_table::("pk_u8", &self.pk_u_8) + .apply_diff_to_table::("pk_u_8", &self.pk_u_8) .with_updates_by_pk(|row| &row.n); diff.pk_uuid = cache .apply_diff_to_table::("pk_uuid", &self.pk_uuid) @@ -3220,15 +3220,15 @@ impl __sdk::DbUpdate for DbUpdate { &self.result_every_primitive_struct_string, ); diff.result_i_32_string = - cache.apply_diff_to_table::("result_i32_string", &self.result_i_32_string); + cache.apply_diff_to_table::("result_i_32_string", &self.result_i_32_string); diff.result_identity_string = cache.apply_diff_to_table::("result_identity_string", &self.result_identity_string); diff.result_simple_enum_i_32 = - cache.apply_diff_to_table::("result_simple_enum_i32", &self.result_simple_enum_i_32); + cache.apply_diff_to_table::("result_simple_enum_i_32", &self.result_simple_enum_i_32); diff.result_string_i_32 = - cache.apply_diff_to_table::("result_string_i32", &self.result_string_i_32); + cache.apply_diff_to_table::("result_string_i_32", &self.result_string_i_32); diff.result_vec_i_32_string = - cache.apply_diff_to_table::("result_vec_i32_string", &self.result_vec_i_32_string); + cache.apply_diff_to_table::("result_vec_i_32_string", &self.result_vec_i_32_string); diff.scheduled_table = cache .apply_diff_to_table::("scheduled_table", &self.scheduled_table) .with_updates_by_pk(|row| &row.scheduled_id); @@ -3237,20 +3237,20 @@ impl __sdk::DbUpdate for DbUpdate { diff.unique_bool = cache.apply_diff_to_table::("unique_bool", &self.unique_bool); diff.unique_connection_id = cache.apply_diff_to_table::("unique_connection_id", &self.unique_connection_id); - diff.unique_i_128 = cache.apply_diff_to_table::("unique_i128", &self.unique_i_128); - diff.unique_i_16 = cache.apply_diff_to_table::("unique_i16", &self.unique_i_16); - diff.unique_i_256 = cache.apply_diff_to_table::("unique_i256", &self.unique_i_256); - diff.unique_i_32 = cache.apply_diff_to_table::("unique_i32", &self.unique_i_32); - diff.unique_i_64 = cache.apply_diff_to_table::("unique_i64", &self.unique_i_64); - diff.unique_i_8 = cache.apply_diff_to_table::("unique_i8", &self.unique_i_8); + diff.unique_i_128 = cache.apply_diff_to_table::("unique_i_128", &self.unique_i_128); + diff.unique_i_16 = cache.apply_diff_to_table::("unique_i_16", &self.unique_i_16); + diff.unique_i_256 = cache.apply_diff_to_table::("unique_i_256", &self.unique_i_256); + diff.unique_i_32 = cache.apply_diff_to_table::("unique_i_32", &self.unique_i_32); + diff.unique_i_64 = cache.apply_diff_to_table::("unique_i_64", &self.unique_i_64); + diff.unique_i_8 = cache.apply_diff_to_table::("unique_i_8", &self.unique_i_8); diff.unique_identity = cache.apply_diff_to_table::("unique_identity", &self.unique_identity); diff.unique_string = cache.apply_diff_to_table::("unique_string", &self.unique_string); - diff.unique_u_128 = cache.apply_diff_to_table::("unique_u128", &self.unique_u_128); - diff.unique_u_16 = cache.apply_diff_to_table::("unique_u16", &self.unique_u_16); - diff.unique_u_256 = cache.apply_diff_to_table::("unique_u256", &self.unique_u_256); - diff.unique_u_32 = cache.apply_diff_to_table::("unique_u32", &self.unique_u_32); - diff.unique_u_64 = cache.apply_diff_to_table::("unique_u64", &self.unique_u_64); - diff.unique_u_8 = cache.apply_diff_to_table::("unique_u8", &self.unique_u_8); + diff.unique_u_128 = cache.apply_diff_to_table::("unique_u_128", &self.unique_u_128); + diff.unique_u_16 = cache.apply_diff_to_table::("unique_u_16", &self.unique_u_16); + diff.unique_u_256 = cache.apply_diff_to_table::("unique_u_256", &self.unique_u_256); + diff.unique_u_32 = cache.apply_diff_to_table::("unique_u_32", &self.unique_u_32); + diff.unique_u_64 = cache.apply_diff_to_table::("unique_u_64", &self.unique_u_64); + diff.unique_u_8 = cache.apply_diff_to_table::("unique_u_8", &self.unique_u_8); diff.unique_uuid = cache.apply_diff_to_table::("unique_uuid", &self.unique_uuid); diff.users = cache .apply_diff_to_table::("users", &self.users) @@ -3267,24 +3267,24 @@ impl __sdk::DbUpdate for DbUpdate { ); diff.vec_every_vec_struct = cache.apply_diff_to_table::("vec_every_vec_struct", &self.vec_every_vec_struct); - diff.vec_f_32 = cache.apply_diff_to_table::("vec_f32", &self.vec_f_32); - diff.vec_f_64 = cache.apply_diff_to_table::("vec_f64", &self.vec_f_64); - diff.vec_i_128 = cache.apply_diff_to_table::("vec_i128", &self.vec_i_128); - diff.vec_i_16 = cache.apply_diff_to_table::("vec_i16", &self.vec_i_16); - diff.vec_i_256 = cache.apply_diff_to_table::("vec_i256", &self.vec_i_256); - diff.vec_i_32 = cache.apply_diff_to_table::("vec_i32", &self.vec_i_32); - diff.vec_i_64 = cache.apply_diff_to_table::("vec_i64", &self.vec_i_64); - diff.vec_i_8 = cache.apply_diff_to_table::("vec_i8", &self.vec_i_8); + diff.vec_f_32 = cache.apply_diff_to_table::("vec_f_32", &self.vec_f_32); + diff.vec_f_64 = cache.apply_diff_to_table::("vec_f_64", &self.vec_f_64); + diff.vec_i_128 = cache.apply_diff_to_table::("vec_i_128", &self.vec_i_128); + diff.vec_i_16 = cache.apply_diff_to_table::("vec_i_16", &self.vec_i_16); + diff.vec_i_256 = cache.apply_diff_to_table::("vec_i_256", &self.vec_i_256); + diff.vec_i_32 = cache.apply_diff_to_table::("vec_i_32", &self.vec_i_32); + diff.vec_i_64 = cache.apply_diff_to_table::("vec_i_64", &self.vec_i_64); + diff.vec_i_8 = cache.apply_diff_to_table::("vec_i_8", &self.vec_i_8); diff.vec_identity = cache.apply_diff_to_table::("vec_identity", &self.vec_identity); diff.vec_simple_enum = cache.apply_diff_to_table::("vec_simple_enum", &self.vec_simple_enum); diff.vec_string = cache.apply_diff_to_table::("vec_string", &self.vec_string); diff.vec_timestamp = cache.apply_diff_to_table::("vec_timestamp", &self.vec_timestamp); - diff.vec_u_128 = cache.apply_diff_to_table::("vec_u128", &self.vec_u_128); - diff.vec_u_16 = cache.apply_diff_to_table::("vec_u16", &self.vec_u_16); - diff.vec_u_256 = cache.apply_diff_to_table::("vec_u256", &self.vec_u_256); - diff.vec_u_32 = cache.apply_diff_to_table::("vec_u32", &self.vec_u_32); - diff.vec_u_64 = cache.apply_diff_to_table::("vec_u64", &self.vec_u_64); - diff.vec_u_8 = cache.apply_diff_to_table::("vec_u8", &self.vec_u_8); + diff.vec_u_128 = cache.apply_diff_to_table::("vec_u_128", &self.vec_u_128); + diff.vec_u_16 = cache.apply_diff_to_table::("vec_u_16", &self.vec_u_16); + diff.vec_u_256 = cache.apply_diff_to_table::("vec_u_256", &self.vec_u_256); + diff.vec_u_32 = cache.apply_diff_to_table::("vec_u_32", &self.vec_u_32); + diff.vec_u_64 = cache.apply_diff_to_table::("vec_u_64", &self.vec_u_64); + diff.vec_u_8 = cache.apply_diff_to_table::("vec_u_8", &self.vec_u_8); diff.vec_unit_struct = cache.apply_diff_to_table::("vec_unit_struct", &self.vec_unit_struct); diff.vec_uuid = cache.apply_diff_to_table::("vec_uuid", &self.vec_uuid); @@ -3294,7 +3294,7 @@ impl __sdk::DbUpdate for DbUpdate { let mut db_update = DbUpdate::default(); for table_rows in raw.tables { match &table_rows.table[..] { - "btree_u32" => db_update + "btree_u_32" => db_update .btree_u_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "indexed_simple_enum" => db_update @@ -3327,28 +3327,28 @@ impl __sdk::DbUpdate for DbUpdate { "one_every_vec_struct" => db_update .one_every_vec_struct .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_f32" => db_update + "one_f_32" => db_update .one_f_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_f64" => db_update + "one_f_64" => db_update .one_f_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i128" => db_update + "one_i_128" => db_update .one_i_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i16" => db_update + "one_i_16" => db_update .one_i_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i256" => db_update + "one_i_256" => db_update .one_i_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i32" => db_update + "one_i_32" => db_update .one_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i64" => db_update + "one_i_64" => db_update .one_i_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_i8" => db_update + "one_i_8" => db_update .one_i_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "one_identity" => db_update @@ -3363,22 +3363,22 @@ impl __sdk::DbUpdate for DbUpdate { "one_timestamp" => db_update .one_timestamp .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u128" => db_update + "one_u_128" => db_update .one_u_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u16" => db_update + "one_u_16" => db_update .one_u_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u256" => db_update + "one_u_256" => db_update .one_u_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u32" => db_update + "one_u_32" => db_update .one_u_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u64" => db_update + "one_u_64" => db_update .one_u_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "one_u8" => db_update + "one_u_8" => db_update .one_u_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "one_unit_struct" => db_update @@ -3390,7 +3390,7 @@ impl __sdk::DbUpdate for DbUpdate { "option_every_primitive_struct" => db_update .option_every_primitive_struct .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "option_i32" => db_update + "option_i_32" => db_update .option_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "option_identity" => db_update @@ -3405,7 +3405,7 @@ impl __sdk::DbUpdate for DbUpdate { "option_uuid" => db_update .option_uuid .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "option_vec_option_i32" => db_update + "option_vec_option_i_32" => db_update .option_vec_option_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "pk_bool" => db_update @@ -3414,22 +3414,22 @@ impl __sdk::DbUpdate for DbUpdate { "pk_connection_id" => db_update .pk_connection_id .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i128" => db_update + "pk_i_128" => db_update .pk_i_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i16" => db_update + "pk_i_16" => db_update .pk_i_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i256" => db_update + "pk_i_256" => db_update .pk_i_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i32" => db_update + "pk_i_32" => db_update .pk_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i64" => db_update + "pk_i_64" => db_update .pk_i_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_i8" => db_update + "pk_i_8" => db_update .pk_i_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "pk_identity" => db_update @@ -3441,25 +3441,25 @@ impl __sdk::DbUpdate for DbUpdate { "pk_string" => db_update .pk_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u128" => db_update + "pk_u_128" => db_update .pk_u_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u16" => db_update + "pk_u_16" => db_update .pk_u_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u256" => db_update + "pk_u_256" => db_update .pk_u_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u32" => db_update + "pk_u_32" => db_update .pk_u_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u32_two" => db_update + "pk_u_32_two" => db_update .pk_u_32_two .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u64" => db_update + "pk_u_64" => db_update .pk_u_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "pk_u8" => db_update + "pk_u_8" => db_update .pk_u_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "pk_uuid" => db_update @@ -3468,19 +3468,19 @@ impl __sdk::DbUpdate for DbUpdate { "result_every_primitive_struct_string" => db_update .result_every_primitive_struct_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "result_i32_string" => db_update + "result_i_32_string" => db_update .result_i_32_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "result_identity_string" => db_update .result_identity_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "result_simple_enum_i32" => db_update + "result_simple_enum_i_32" => db_update .result_simple_enum_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "result_string_i32" => db_update + "result_string_i_32" => db_update .result_string_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "result_vec_i32_string" => db_update + "result_vec_i_32_string" => db_update .result_vec_i_32_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "scheduled_table" => db_update @@ -3495,22 +3495,22 @@ impl __sdk::DbUpdate for DbUpdate { "unique_connection_id" => db_update .unique_connection_id .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i128" => db_update + "unique_i_128" => db_update .unique_i_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i16" => db_update + "unique_i_16" => db_update .unique_i_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i256" => db_update + "unique_i_256" => db_update .unique_i_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i32" => db_update + "unique_i_32" => db_update .unique_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i64" => db_update + "unique_i_64" => db_update .unique_i_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_i8" => db_update + "unique_i_8" => db_update .unique_i_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "unique_identity" => db_update @@ -3519,22 +3519,22 @@ impl __sdk::DbUpdate for DbUpdate { "unique_string" => db_update .unique_string .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u128" => db_update + "unique_u_128" => db_update .unique_u_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u16" => db_update + "unique_u_16" => db_update .unique_u_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u256" => db_update + "unique_u_256" => db_update .unique_u_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u32" => db_update + "unique_u_32" => db_update .unique_u_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u64" => db_update + "unique_u_64" => db_update .unique_u_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "unique_u8" => db_update + "unique_u_8" => db_update .unique_u_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "unique_uuid" => db_update @@ -3561,28 +3561,28 @@ impl __sdk::DbUpdate for DbUpdate { "vec_every_vec_struct" => db_update .vec_every_vec_struct .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_f32" => db_update + "vec_f_32" => db_update .vec_f_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_f64" => db_update + "vec_f_64" => db_update .vec_f_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i128" => db_update + "vec_i_128" => db_update .vec_i_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i16" => db_update + "vec_i_16" => db_update .vec_i_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i256" => db_update + "vec_i_256" => db_update .vec_i_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i32" => db_update + "vec_i_32" => db_update .vec_i_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i64" => db_update + "vec_i_64" => db_update .vec_i_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_i8" => db_update + "vec_i_8" => db_update .vec_i_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "vec_identity" => db_update @@ -3597,22 +3597,22 @@ impl __sdk::DbUpdate for DbUpdate { "vec_timestamp" => db_update .vec_timestamp .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u128" => db_update + "vec_u_128" => db_update .vec_u_128 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u16" => db_update + "vec_u_16" => db_update .vec_u_16 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u256" => db_update + "vec_u_256" => db_update .vec_u_256 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u32" => db_update + "vec_u_32" => db_update .vec_u_32 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u64" => db_update + "vec_u_64" => db_update .vec_u_64 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), - "vec_u8" => db_update + "vec_u_8" => db_update .vec_u_8 .append(__sdk::parse_row_list_as_inserts(table_rows.rows)?), "vec_unit_struct" => db_update @@ -3632,7 +3632,7 @@ impl __sdk::DbUpdate for DbUpdate { let mut db_update = DbUpdate::default(); for table_rows in raw.tables { match &table_rows.table[..] { - "btree_u32" => db_update + "btree_u_32" => db_update .btree_u_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "indexed_simple_enum" => db_update @@ -3665,28 +3665,28 @@ impl __sdk::DbUpdate for DbUpdate { "one_every_vec_struct" => db_update .one_every_vec_struct .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_f32" => db_update + "one_f_32" => db_update .one_f_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_f64" => db_update + "one_f_64" => db_update .one_f_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i128" => db_update + "one_i_128" => db_update .one_i_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i16" => db_update + "one_i_16" => db_update .one_i_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i256" => db_update + "one_i_256" => db_update .one_i_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i32" => db_update + "one_i_32" => db_update .one_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i64" => db_update + "one_i_64" => db_update .one_i_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_i8" => db_update + "one_i_8" => db_update .one_i_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "one_identity" => db_update @@ -3701,22 +3701,22 @@ impl __sdk::DbUpdate for DbUpdate { "one_timestamp" => db_update .one_timestamp .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u128" => db_update + "one_u_128" => db_update .one_u_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u16" => db_update + "one_u_16" => db_update .one_u_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u256" => db_update + "one_u_256" => db_update .one_u_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u32" => db_update + "one_u_32" => db_update .one_u_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u64" => db_update + "one_u_64" => db_update .one_u_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "one_u8" => db_update + "one_u_8" => db_update .one_u_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "one_unit_struct" => db_update @@ -3728,7 +3728,7 @@ impl __sdk::DbUpdate for DbUpdate { "option_every_primitive_struct" => db_update .option_every_primitive_struct .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "option_i32" => db_update + "option_i_32" => db_update .option_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "option_identity" => db_update @@ -3743,7 +3743,7 @@ impl __sdk::DbUpdate for DbUpdate { "option_uuid" => db_update .option_uuid .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "option_vec_option_i32" => db_update + "option_vec_option_i_32" => db_update .option_vec_option_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "pk_bool" => db_update @@ -3752,22 +3752,22 @@ impl __sdk::DbUpdate for DbUpdate { "pk_connection_id" => db_update .pk_connection_id .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i128" => db_update + "pk_i_128" => db_update .pk_i_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i16" => db_update + "pk_i_16" => db_update .pk_i_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i256" => db_update + "pk_i_256" => db_update .pk_i_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i32" => db_update + "pk_i_32" => db_update .pk_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i64" => db_update + "pk_i_64" => db_update .pk_i_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_i8" => db_update + "pk_i_8" => db_update .pk_i_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "pk_identity" => db_update @@ -3779,25 +3779,25 @@ impl __sdk::DbUpdate for DbUpdate { "pk_string" => db_update .pk_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u128" => db_update + "pk_u_128" => db_update .pk_u_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u16" => db_update + "pk_u_16" => db_update .pk_u_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u256" => db_update + "pk_u_256" => db_update .pk_u_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u32" => db_update + "pk_u_32" => db_update .pk_u_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u32_two" => db_update + "pk_u_32_two" => db_update .pk_u_32_two .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u64" => db_update + "pk_u_64" => db_update .pk_u_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "pk_u8" => db_update + "pk_u_8" => db_update .pk_u_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "pk_uuid" => db_update @@ -3806,19 +3806,19 @@ impl __sdk::DbUpdate for DbUpdate { "result_every_primitive_struct_string" => db_update .result_every_primitive_struct_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "result_i32_string" => db_update + "result_i_32_string" => db_update .result_i_32_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "result_identity_string" => db_update .result_identity_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "result_simple_enum_i32" => db_update + "result_simple_enum_i_32" => db_update .result_simple_enum_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "result_string_i32" => db_update + "result_string_i_32" => db_update .result_string_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "result_vec_i32_string" => db_update + "result_vec_i_32_string" => db_update .result_vec_i_32_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "scheduled_table" => db_update @@ -3833,22 +3833,22 @@ impl __sdk::DbUpdate for DbUpdate { "unique_connection_id" => db_update .unique_connection_id .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i128" => db_update + "unique_i_128" => db_update .unique_i_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i16" => db_update + "unique_i_16" => db_update .unique_i_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i256" => db_update + "unique_i_256" => db_update .unique_i_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i32" => db_update + "unique_i_32" => db_update .unique_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i64" => db_update + "unique_i_64" => db_update .unique_i_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_i8" => db_update + "unique_i_8" => db_update .unique_i_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "unique_identity" => db_update @@ -3857,22 +3857,22 @@ impl __sdk::DbUpdate for DbUpdate { "unique_string" => db_update .unique_string .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u128" => db_update + "unique_u_128" => db_update .unique_u_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u16" => db_update + "unique_u_16" => db_update .unique_u_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u256" => db_update + "unique_u_256" => db_update .unique_u_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u32" => db_update + "unique_u_32" => db_update .unique_u_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u64" => db_update + "unique_u_64" => db_update .unique_u_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "unique_u8" => db_update + "unique_u_8" => db_update .unique_u_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "unique_uuid" => db_update @@ -3899,28 +3899,28 @@ impl __sdk::DbUpdate for DbUpdate { "vec_every_vec_struct" => db_update .vec_every_vec_struct .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_f32" => db_update + "vec_f_32" => db_update .vec_f_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_f64" => db_update + "vec_f_64" => db_update .vec_f_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i128" => db_update + "vec_i_128" => db_update .vec_i_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i16" => db_update + "vec_i_16" => db_update .vec_i_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i256" => db_update + "vec_i_256" => db_update .vec_i_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i32" => db_update + "vec_i_32" => db_update .vec_i_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i64" => db_update + "vec_i_64" => db_update .vec_i_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_i8" => db_update + "vec_i_8" => db_update .vec_i_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "vec_identity" => db_update @@ -3935,22 +3935,22 @@ impl __sdk::DbUpdate for DbUpdate { "vec_timestamp" => db_update .vec_timestamp .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u128" => db_update + "vec_u_128" => db_update .vec_u_128 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u16" => db_update + "vec_u_16" => db_update .vec_u_16 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u256" => db_update + "vec_u_256" => db_update .vec_u_256 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u32" => db_update + "vec_u_32" => db_update .vec_u_32 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u64" => db_update + "vec_u_64" => db_update .vec_u_64 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), - "vec_u8" => db_update + "vec_u_8" => db_update .vec_u_8 .append(__sdk::parse_row_list_as_deletes(table_rows.rows)?), "vec_unit_struct" => db_update @@ -4090,7 +4090,7 @@ impl __sdk::InModule for AppliedDiff<'_> { impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { fn invoke_row_callbacks(&self, event: &EventContext, callbacks: &mut __sdk::DbCallbacks) { - callbacks.invoke_table_row_callbacks::("btree_u32", &self.btree_u_32, event); + callbacks.invoke_table_row_callbacks::("btree_u_32", &self.btree_u_32, event); callbacks.invoke_table_row_callbacks::( "indexed_simple_enum", &self.indexed_simple_enum, @@ -4117,24 +4117,24 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.one_every_vec_struct, event, ); - callbacks.invoke_table_row_callbacks::("one_f32", &self.one_f_32, event); - callbacks.invoke_table_row_callbacks::("one_f64", &self.one_f_64, event); - callbacks.invoke_table_row_callbacks::("one_i128", &self.one_i_128, event); - callbacks.invoke_table_row_callbacks::("one_i16", &self.one_i_16, event); - callbacks.invoke_table_row_callbacks::("one_i256", &self.one_i_256, event); - callbacks.invoke_table_row_callbacks::("one_i32", &self.one_i_32, event); - callbacks.invoke_table_row_callbacks::("one_i64", &self.one_i_64, event); - callbacks.invoke_table_row_callbacks::("one_i8", &self.one_i_8, event); + callbacks.invoke_table_row_callbacks::("one_f_32", &self.one_f_32, event); + callbacks.invoke_table_row_callbacks::("one_f_64", &self.one_f_64, event); + callbacks.invoke_table_row_callbacks::("one_i_128", &self.one_i_128, event); + callbacks.invoke_table_row_callbacks::("one_i_16", &self.one_i_16, event); + callbacks.invoke_table_row_callbacks::("one_i_256", &self.one_i_256, event); + callbacks.invoke_table_row_callbacks::("one_i_32", &self.one_i_32, event); + callbacks.invoke_table_row_callbacks::("one_i_64", &self.one_i_64, event); + callbacks.invoke_table_row_callbacks::("one_i_8", &self.one_i_8, event); callbacks.invoke_table_row_callbacks::("one_identity", &self.one_identity, event); callbacks.invoke_table_row_callbacks::("one_simple_enum", &self.one_simple_enum, event); callbacks.invoke_table_row_callbacks::("one_string", &self.one_string, event); callbacks.invoke_table_row_callbacks::("one_timestamp", &self.one_timestamp, event); - callbacks.invoke_table_row_callbacks::("one_u128", &self.one_u_128, event); - callbacks.invoke_table_row_callbacks::("one_u16", &self.one_u_16, event); - callbacks.invoke_table_row_callbacks::("one_u256", &self.one_u_256, event); - callbacks.invoke_table_row_callbacks::("one_u32", &self.one_u_32, event); - callbacks.invoke_table_row_callbacks::("one_u64", &self.one_u_64, event); - callbacks.invoke_table_row_callbacks::("one_u8", &self.one_u_8, event); + callbacks.invoke_table_row_callbacks::("one_u_128", &self.one_u_128, event); + callbacks.invoke_table_row_callbacks::("one_u_16", &self.one_u_16, event); + callbacks.invoke_table_row_callbacks::("one_u_256", &self.one_u_256, event); + callbacks.invoke_table_row_callbacks::("one_u_32", &self.one_u_32, event); + callbacks.invoke_table_row_callbacks::("one_u_64", &self.one_u_64, event); + callbacks.invoke_table_row_callbacks::("one_u_8", &self.one_u_8, event); callbacks.invoke_table_row_callbacks::("one_unit_struct", &self.one_unit_struct, event); callbacks.invoke_table_row_callbacks::("one_uuid", &self.one_uuid, event); callbacks.invoke_table_row_callbacks::( @@ -4142,54 +4142,54 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.option_every_primitive_struct, event, ); - callbacks.invoke_table_row_callbacks::("option_i32", &self.option_i_32, event); + callbacks.invoke_table_row_callbacks::("option_i_32", &self.option_i_32, event); callbacks.invoke_table_row_callbacks::("option_identity", &self.option_identity, event); callbacks.invoke_table_row_callbacks::("option_simple_enum", &self.option_simple_enum, event); callbacks.invoke_table_row_callbacks::("option_string", &self.option_string, event); callbacks.invoke_table_row_callbacks::("option_uuid", &self.option_uuid, event); callbacks.invoke_table_row_callbacks::( - "option_vec_option_i32", + "option_vec_option_i_32", &self.option_vec_option_i_32, event, ); callbacks.invoke_table_row_callbacks::("pk_bool", &self.pk_bool, event); callbacks.invoke_table_row_callbacks::("pk_connection_id", &self.pk_connection_id, event); - callbacks.invoke_table_row_callbacks::("pk_i128", &self.pk_i_128, event); - callbacks.invoke_table_row_callbacks::("pk_i16", &self.pk_i_16, event); - callbacks.invoke_table_row_callbacks::("pk_i256", &self.pk_i_256, event); - callbacks.invoke_table_row_callbacks::("pk_i32", &self.pk_i_32, event); - callbacks.invoke_table_row_callbacks::("pk_i64", &self.pk_i_64, event); - callbacks.invoke_table_row_callbacks::("pk_i8", &self.pk_i_8, event); + callbacks.invoke_table_row_callbacks::("pk_i_128", &self.pk_i_128, event); + callbacks.invoke_table_row_callbacks::("pk_i_16", &self.pk_i_16, event); + callbacks.invoke_table_row_callbacks::("pk_i_256", &self.pk_i_256, event); + callbacks.invoke_table_row_callbacks::("pk_i_32", &self.pk_i_32, event); + callbacks.invoke_table_row_callbacks::("pk_i_64", &self.pk_i_64, event); + callbacks.invoke_table_row_callbacks::("pk_i_8", &self.pk_i_8, event); callbacks.invoke_table_row_callbacks::("pk_identity", &self.pk_identity, event); callbacks.invoke_table_row_callbacks::("pk_simple_enum", &self.pk_simple_enum, event); callbacks.invoke_table_row_callbacks::("pk_string", &self.pk_string, event); - callbacks.invoke_table_row_callbacks::("pk_u128", &self.pk_u_128, event); - callbacks.invoke_table_row_callbacks::("pk_u16", &self.pk_u_16, event); - callbacks.invoke_table_row_callbacks::("pk_u256", &self.pk_u_256, event); - callbacks.invoke_table_row_callbacks::("pk_u32", &self.pk_u_32, event); - callbacks.invoke_table_row_callbacks::("pk_u32_two", &self.pk_u_32_two, event); - callbacks.invoke_table_row_callbacks::("pk_u64", &self.pk_u_64, event); - callbacks.invoke_table_row_callbacks::("pk_u8", &self.pk_u_8, event); + callbacks.invoke_table_row_callbacks::("pk_u_128", &self.pk_u_128, event); + callbacks.invoke_table_row_callbacks::("pk_u_16", &self.pk_u_16, event); + callbacks.invoke_table_row_callbacks::("pk_u_256", &self.pk_u_256, event); + callbacks.invoke_table_row_callbacks::("pk_u_32", &self.pk_u_32, event); + callbacks.invoke_table_row_callbacks::("pk_u_32_two", &self.pk_u_32_two, event); + callbacks.invoke_table_row_callbacks::("pk_u_64", &self.pk_u_64, event); + callbacks.invoke_table_row_callbacks::("pk_u_8", &self.pk_u_8, event); callbacks.invoke_table_row_callbacks::("pk_uuid", &self.pk_uuid, event); callbacks.invoke_table_row_callbacks::( "result_every_primitive_struct_string", &self.result_every_primitive_struct_string, event, ); - callbacks.invoke_table_row_callbacks::("result_i32_string", &self.result_i_32_string, event); + callbacks.invoke_table_row_callbacks::("result_i_32_string", &self.result_i_32_string, event); callbacks.invoke_table_row_callbacks::( "result_identity_string", &self.result_identity_string, event, ); callbacks.invoke_table_row_callbacks::( - "result_simple_enum_i32", + "result_simple_enum_i_32", &self.result_simple_enum_i_32, event, ); - callbacks.invoke_table_row_callbacks::("result_string_i32", &self.result_string_i_32, event); + callbacks.invoke_table_row_callbacks::("result_string_i_32", &self.result_string_i_32, event); callbacks.invoke_table_row_callbacks::( - "result_vec_i32_string", + "result_vec_i_32_string", &self.result_vec_i_32_string, event, ); @@ -4201,20 +4201,20 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.unique_connection_id, event, ); - callbacks.invoke_table_row_callbacks::("unique_i128", &self.unique_i_128, event); - callbacks.invoke_table_row_callbacks::("unique_i16", &self.unique_i_16, event); - callbacks.invoke_table_row_callbacks::("unique_i256", &self.unique_i_256, event); - callbacks.invoke_table_row_callbacks::("unique_i32", &self.unique_i_32, event); - callbacks.invoke_table_row_callbacks::("unique_i64", &self.unique_i_64, event); - callbacks.invoke_table_row_callbacks::("unique_i8", &self.unique_i_8, event); + callbacks.invoke_table_row_callbacks::("unique_i_128", &self.unique_i_128, event); + callbacks.invoke_table_row_callbacks::("unique_i_16", &self.unique_i_16, event); + callbacks.invoke_table_row_callbacks::("unique_i_256", &self.unique_i_256, event); + callbacks.invoke_table_row_callbacks::("unique_i_32", &self.unique_i_32, event); + callbacks.invoke_table_row_callbacks::("unique_i_64", &self.unique_i_64, event); + callbacks.invoke_table_row_callbacks::("unique_i_8", &self.unique_i_8, event); callbacks.invoke_table_row_callbacks::("unique_identity", &self.unique_identity, event); callbacks.invoke_table_row_callbacks::("unique_string", &self.unique_string, event); - callbacks.invoke_table_row_callbacks::("unique_u128", &self.unique_u_128, event); - callbacks.invoke_table_row_callbacks::("unique_u16", &self.unique_u_16, event); - callbacks.invoke_table_row_callbacks::("unique_u256", &self.unique_u_256, event); - callbacks.invoke_table_row_callbacks::("unique_u32", &self.unique_u_32, event); - callbacks.invoke_table_row_callbacks::("unique_u64", &self.unique_u_64, event); - callbacks.invoke_table_row_callbacks::("unique_u8", &self.unique_u_8, event); + callbacks.invoke_table_row_callbacks::("unique_u_128", &self.unique_u_128, event); + callbacks.invoke_table_row_callbacks::("unique_u_16", &self.unique_u_16, event); + callbacks.invoke_table_row_callbacks::("unique_u_256", &self.unique_u_256, event); + callbacks.invoke_table_row_callbacks::("unique_u_32", &self.unique_u_32, event); + callbacks.invoke_table_row_callbacks::("unique_u_64", &self.unique_u_64, event); + callbacks.invoke_table_row_callbacks::("unique_u_8", &self.unique_u_8, event); callbacks.invoke_table_row_callbacks::("unique_uuid", &self.unique_uuid, event); callbacks.invoke_table_row_callbacks::("users", &self.users, event); callbacks.invoke_table_row_callbacks::("vec_bool", &self.vec_bool, event); @@ -4235,24 +4235,24 @@ impl<'r> __sdk::AppliedDiff<'r> for AppliedDiff<'r> { &self.vec_every_vec_struct, event, ); - callbacks.invoke_table_row_callbacks::("vec_f32", &self.vec_f_32, event); - callbacks.invoke_table_row_callbacks::("vec_f64", &self.vec_f_64, event); - callbacks.invoke_table_row_callbacks::("vec_i128", &self.vec_i_128, event); - callbacks.invoke_table_row_callbacks::("vec_i16", &self.vec_i_16, event); - callbacks.invoke_table_row_callbacks::("vec_i256", &self.vec_i_256, event); - callbacks.invoke_table_row_callbacks::("vec_i32", &self.vec_i_32, event); - callbacks.invoke_table_row_callbacks::("vec_i64", &self.vec_i_64, event); - callbacks.invoke_table_row_callbacks::("vec_i8", &self.vec_i_8, event); + callbacks.invoke_table_row_callbacks::("vec_f_32", &self.vec_f_32, event); + callbacks.invoke_table_row_callbacks::("vec_f_64", &self.vec_f_64, event); + callbacks.invoke_table_row_callbacks::("vec_i_128", &self.vec_i_128, event); + callbacks.invoke_table_row_callbacks::("vec_i_16", &self.vec_i_16, event); + callbacks.invoke_table_row_callbacks::("vec_i_256", &self.vec_i_256, event); + callbacks.invoke_table_row_callbacks::("vec_i_32", &self.vec_i_32, event); + callbacks.invoke_table_row_callbacks::("vec_i_64", &self.vec_i_64, event); + callbacks.invoke_table_row_callbacks::("vec_i_8", &self.vec_i_8, event); callbacks.invoke_table_row_callbacks::("vec_identity", &self.vec_identity, event); callbacks.invoke_table_row_callbacks::("vec_simple_enum", &self.vec_simple_enum, event); callbacks.invoke_table_row_callbacks::("vec_string", &self.vec_string, event); callbacks.invoke_table_row_callbacks::("vec_timestamp", &self.vec_timestamp, event); - callbacks.invoke_table_row_callbacks::("vec_u128", &self.vec_u_128, event); - callbacks.invoke_table_row_callbacks::("vec_u16", &self.vec_u_16, event); - callbacks.invoke_table_row_callbacks::("vec_u256", &self.vec_u_256, event); - callbacks.invoke_table_row_callbacks::("vec_u32", &self.vec_u_32, event); - callbacks.invoke_table_row_callbacks::("vec_u64", &self.vec_u_64, event); - callbacks.invoke_table_row_callbacks::("vec_u8", &self.vec_u_8, event); + callbacks.invoke_table_row_callbacks::("vec_u_128", &self.vec_u_128, event); + callbacks.invoke_table_row_callbacks::("vec_u_16", &self.vec_u_16, event); + callbacks.invoke_table_row_callbacks::("vec_u_256", &self.vec_u_256, event); + callbacks.invoke_table_row_callbacks::("vec_u_32", &self.vec_u_32, event); + callbacks.invoke_table_row_callbacks::("vec_u_64", &self.vec_u_64, event); + callbacks.invoke_table_row_callbacks::("vec_u_8", &self.vec_u_8, event); callbacks.invoke_table_row_callbacks::("vec_unit_struct", &self.vec_unit_struct, event); callbacks.invoke_table_row_callbacks::("vec_uuid", &self.vec_uuid, event); } @@ -5010,7 +5010,7 @@ impl __sdk::SpacetimeModule for RemoteModule { vec_uuid_table::register_table(client_cache); } const ALL_TABLE_NAMES: &'static [&'static str] = &[ - "btree_u32", + "btree_u_32", "indexed_simple_enum", "indexed_table", "indexed_table_2", @@ -5021,76 +5021,76 @@ impl __sdk::SpacetimeModule for RemoteModule { "one_enum_with_payload", "one_every_primitive_struct", "one_every_vec_struct", - "one_f32", - "one_f64", - "one_i128", - "one_i16", - "one_i256", - "one_i32", - "one_i64", - "one_i8", + "one_f_32", + "one_f_64", + "one_i_128", + "one_i_16", + "one_i_256", + "one_i_32", + "one_i_64", + "one_i_8", "one_identity", "one_simple_enum", "one_string", "one_timestamp", - "one_u128", - "one_u16", - "one_u256", - "one_u32", - "one_u64", - "one_u8", + "one_u_128", + "one_u_16", + "one_u_256", + "one_u_32", + "one_u_64", + "one_u_8", "one_unit_struct", "one_uuid", "option_every_primitive_struct", - "option_i32", + "option_i_32", "option_identity", "option_simple_enum", "option_string", "option_uuid", - "option_vec_option_i32", + "option_vec_option_i_32", "pk_bool", "pk_connection_id", - "pk_i128", - "pk_i16", - "pk_i256", - "pk_i32", - "pk_i64", - "pk_i8", + "pk_i_128", + "pk_i_16", + "pk_i_256", + "pk_i_32", + "pk_i_64", + "pk_i_8", "pk_identity", "pk_simple_enum", "pk_string", - "pk_u128", - "pk_u16", - "pk_u256", - "pk_u32", - "pk_u32_two", - "pk_u64", - "pk_u8", + "pk_u_128", + "pk_u_16", + "pk_u_256", + "pk_u_32", + "pk_u_32_two", + "pk_u_64", + "pk_u_8", "pk_uuid", "result_every_primitive_struct_string", - "result_i32_string", + "result_i_32_string", "result_identity_string", - "result_simple_enum_i32", - "result_string_i32", - "result_vec_i32_string", + "result_simple_enum_i_32", + "result_string_i_32", + "result_vec_i_32_string", "scheduled_table", "table_holds_table", "unique_bool", "unique_connection_id", - "unique_i128", - "unique_i16", - "unique_i256", - "unique_i32", - "unique_i64", - "unique_i8", + "unique_i_128", + "unique_i_16", + "unique_i_256", + "unique_i_32", + "unique_i_64", + "unique_i_8", "unique_identity", "unique_string", - "unique_u128", - "unique_u16", - "unique_u256", - "unique_u32", - "unique_u64", - "unique_u8", + "unique_u_128", + "unique_u_16", + "unique_u_256", + "unique_u_32", + "unique_u_64", + "unique_u_8", "unique_uuid", "users", "vec_bool", @@ -5099,24 +5099,24 @@ impl __sdk::SpacetimeModule for RemoteModule { "vec_enum_with_payload", "vec_every_primitive_struct", "vec_every_vec_struct", - "vec_f32", - "vec_f64", - "vec_i128", - "vec_i16", - "vec_i256", - "vec_i32", - "vec_i64", - "vec_i8", + "vec_f_32", + "vec_f_64", + "vec_i_128", + "vec_i_16", + "vec_i_256", + "vec_i_32", + "vec_i_64", + "vec_i_8", "vec_identity", "vec_simple_enum", "vec_string", "vec_timestamp", - "vec_u128", - "vec_u16", - "vec_u256", - "vec_u32", - "vec_u64", - "vec_u8", + "vec_u_128", + "vec_u_16", + "vec_u_256", + "vec_u_32", + "vec_u_64", + "vec_u_8", "vec_unit_struct", "vec_uuid", ]; diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs index f1ee03c7de1..e083d39f730 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_f_32_table.rs @@ -5,7 +5,7 @@ use super::one_f_32_type::OneF32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_f32`. +/// Table handle for the table `one_f_32`. /// /// Obtain a handle from the [`OneF32TableAccess::one_f_32`] method on [`super::RemoteTables`], /// like `ctx.db.one_f_32()`. @@ -19,19 +19,19 @@ pub struct OneF32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_f32`. +/// Extension trait for access to the table `one_f_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneF32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneF32TableHandle`], which mediates access to the table `one_f32`. + /// Obtain a [`OneF32TableHandle`], which mediates access to the table `one_f_32`. fn one_f_32(&self) -> OneF32TableHandle<'_>; } impl OneF32TableAccess for super::RemoteTables { fn one_f_32(&self) -> OneF32TableHandle<'_> { OneF32TableHandle { - imp: self.imp.get_table::("one_f32"), + imp: self.imp.get_table::("one_f_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneF32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_f32"); + let _table = client_cache.get_or_make_table::("one_f_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneF32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_f32QueryTableAccess { +pub trait one_f_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneF32`. - fn one_f32(&self) -> __sdk::__query_builder::Table; + fn one_f_32(&self) -> __sdk::__query_builder::Table; } -impl one_f32QueryTableAccess for __sdk::QueryTableAccessor { - fn one_f32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_f32") +impl one_f_32QueryTableAccess for __sdk::QueryTableAccessor { + fn one_f_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_f_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs index 8602398eb9e..7a3f5de637b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_f_64_table.rs @@ -5,7 +5,7 @@ use super::one_f_64_type::OneF64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_f64`. +/// Table handle for the table `one_f_64`. /// /// Obtain a handle from the [`OneF64TableAccess::one_f_64`] method on [`super::RemoteTables`], /// like `ctx.db.one_f_64()`. @@ -19,19 +19,19 @@ pub struct OneF64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_f64`. +/// Extension trait for access to the table `one_f_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneF64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneF64TableHandle`], which mediates access to the table `one_f64`. + /// Obtain a [`OneF64TableHandle`], which mediates access to the table `one_f_64`. fn one_f_64(&self) -> OneF64TableHandle<'_>; } impl OneF64TableAccess for super::RemoteTables { fn one_f_64(&self) -> OneF64TableHandle<'_> { OneF64TableHandle { - imp: self.imp.get_table::("one_f64"), + imp: self.imp.get_table::("one_f_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneF64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_f64"); + let _table = client_cache.get_or_make_table::("one_f_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneF64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_f64QueryTableAccess { +pub trait one_f_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneF64`. - fn one_f64(&self) -> __sdk::__query_builder::Table; + fn one_f_64(&self) -> __sdk::__query_builder::Table; } -impl one_f64QueryTableAccess for __sdk::QueryTableAccessor { - fn one_f64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_f64") +impl one_f_64QueryTableAccess for __sdk::QueryTableAccessor { + fn one_f_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_f_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs index 17fff5b9e48..ebff49e97a1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_128_table.rs @@ -5,7 +5,7 @@ use super::one_i_128_type::OneI128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i128`. +/// Table handle for the table `one_i_128`. /// /// Obtain a handle from the [`OneI128TableAccess::one_i_128`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_128()`. @@ -19,19 +19,19 @@ pub struct OneI128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i128`. +/// Extension trait for access to the table `one_i_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI128TableHandle`], which mediates access to the table `one_i128`. + /// Obtain a [`OneI128TableHandle`], which mediates access to the table `one_i_128`. fn one_i_128(&self) -> OneI128TableHandle<'_>; } impl OneI128TableAccess for super::RemoteTables { fn one_i_128(&self) -> OneI128TableHandle<'_> { OneI128TableHandle { - imp: self.imp.get_table::("one_i128"), + imp: self.imp.get_table::("one_i_128"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI128TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i128"); + let _table = client_cache.get_or_make_table::("one_i_128"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i128QueryTableAccess { +pub trait one_i_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI128`. - fn one_i128(&self) -> __sdk::__query_builder::Table; + fn one_i_128(&self) -> __sdk::__query_builder::Table; } -impl one_i128QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i128") +impl one_i_128QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs index a7c5ea3743e..6a0ca13292b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_16_table.rs @@ -5,7 +5,7 @@ use super::one_i_16_type::OneI16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i16`. +/// Table handle for the table `one_i_16`. /// /// Obtain a handle from the [`OneI16TableAccess::one_i_16`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_16()`. @@ -19,19 +19,19 @@ pub struct OneI16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i16`. +/// Extension trait for access to the table `one_i_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI16TableHandle`], which mediates access to the table `one_i16`. + /// Obtain a [`OneI16TableHandle`], which mediates access to the table `one_i_16`. fn one_i_16(&self) -> OneI16TableHandle<'_>; } impl OneI16TableAccess for super::RemoteTables { fn one_i_16(&self) -> OneI16TableHandle<'_> { OneI16TableHandle { - imp: self.imp.get_table::("one_i16"), + imp: self.imp.get_table::("one_i_16"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI16TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i16"); + let _table = client_cache.get_or_make_table::("one_i_16"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i16QueryTableAccess { +pub trait one_i_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI16`. - fn one_i16(&self) -> __sdk::__query_builder::Table; + fn one_i_16(&self) -> __sdk::__query_builder::Table; } -impl one_i16QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i16") +impl one_i_16QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs index 05fd61c6c3a..1c8cf51fa96 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_256_table.rs @@ -5,7 +5,7 @@ use super::one_i_256_type::OneI256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i256`. +/// Table handle for the table `one_i_256`. /// /// Obtain a handle from the [`OneI256TableAccess::one_i_256`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_256()`. @@ -19,19 +19,19 @@ pub struct OneI256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i256`. +/// Extension trait for access to the table `one_i_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI256TableHandle`], which mediates access to the table `one_i256`. + /// Obtain a [`OneI256TableHandle`], which mediates access to the table `one_i_256`. fn one_i_256(&self) -> OneI256TableHandle<'_>; } impl OneI256TableAccess for super::RemoteTables { fn one_i_256(&self) -> OneI256TableHandle<'_> { OneI256TableHandle { - imp: self.imp.get_table::("one_i256"), + imp: self.imp.get_table::("one_i_256"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI256TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i256"); + let _table = client_cache.get_or_make_table::("one_i_256"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i256QueryTableAccess { +pub trait one_i_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI256`. - fn one_i256(&self) -> __sdk::__query_builder::Table; + fn one_i_256(&self) -> __sdk::__query_builder::Table; } -impl one_i256QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i256") +impl one_i_256QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs index d95d6dc5f7d..22343727a10 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_32_table.rs @@ -5,7 +5,7 @@ use super::one_i_32_type::OneI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i32`. +/// Table handle for the table `one_i_32`. /// /// Obtain a handle from the [`OneI32TableAccess::one_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_32()`. @@ -19,19 +19,19 @@ pub struct OneI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i32`. +/// Extension trait for access to the table `one_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI32TableHandle`], which mediates access to the table `one_i32`. + /// Obtain a [`OneI32TableHandle`], which mediates access to the table `one_i_32`. fn one_i_32(&self) -> OneI32TableHandle<'_>; } impl OneI32TableAccess for super::RemoteTables { fn one_i_32(&self) -> OneI32TableHandle<'_> { OneI32TableHandle { - imp: self.imp.get_table::("one_i32"), + imp: self.imp.get_table::("one_i_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i32"); + let _table = client_cache.get_or_make_table::("one_i_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i32QueryTableAccess { +pub trait one_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI32`. - fn one_i32(&self) -> __sdk::__query_builder::Table; + fn one_i_32(&self) -> __sdk::__query_builder::Table; } -impl one_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i32") +impl one_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs index 371f393836a..f9c64a63f43 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_64_table.rs @@ -5,7 +5,7 @@ use super::one_i_64_type::OneI64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i64`. +/// Table handle for the table `one_i_64`. /// /// Obtain a handle from the [`OneI64TableAccess::one_i_64`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_64()`. @@ -19,19 +19,19 @@ pub struct OneI64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i64`. +/// Extension trait for access to the table `one_i_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI64TableHandle`], which mediates access to the table `one_i64`. + /// Obtain a [`OneI64TableHandle`], which mediates access to the table `one_i_64`. fn one_i_64(&self) -> OneI64TableHandle<'_>; } impl OneI64TableAccess for super::RemoteTables { fn one_i_64(&self) -> OneI64TableHandle<'_> { OneI64TableHandle { - imp: self.imp.get_table::("one_i64"), + imp: self.imp.get_table::("one_i_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i64"); + let _table = client_cache.get_or_make_table::("one_i_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i64QueryTableAccess { +pub trait one_i_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI64`. - fn one_i64(&self) -> __sdk::__query_builder::Table; + fn one_i_64(&self) -> __sdk::__query_builder::Table; } -impl one_i64QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i64") +impl one_i_64QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs index 04cb43c57e0..1f982cf650d 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_i_8_table.rs @@ -5,7 +5,7 @@ use super::one_i_8_type::OneI8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_i8`. +/// Table handle for the table `one_i_8`. /// /// Obtain a handle from the [`OneI8TableAccess::one_i_8`] method on [`super::RemoteTables`], /// like `ctx.db.one_i_8()`. @@ -19,19 +19,19 @@ pub struct OneI8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_i8`. +/// Extension trait for access to the table `one_i_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneI8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneI8TableHandle`], which mediates access to the table `one_i8`. + /// Obtain a [`OneI8TableHandle`], which mediates access to the table `one_i_8`. fn one_i_8(&self) -> OneI8TableHandle<'_>; } impl OneI8TableAccess for super::RemoteTables { fn one_i_8(&self) -> OneI8TableHandle<'_> { OneI8TableHandle { - imp: self.imp.get_table::("one_i8"), + imp: self.imp.get_table::("one_i_8"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneI8TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_i8"); + let _table = client_cache.get_or_make_table::("one_i_8"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneI8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_i8QueryTableAccess { +pub trait one_i_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneI8`. - fn one_i8(&self) -> __sdk::__query_builder::Table; + fn one_i_8(&self) -> __sdk::__query_builder::Table; } -impl one_i8QueryTableAccess for __sdk::QueryTableAccessor { - fn one_i8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_i8") +impl one_i_8QueryTableAccess for __sdk::QueryTableAccessor { + fn one_i_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_i_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs index 40e6ccb5f6a..c6c3b8405a4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_128_table.rs @@ -5,7 +5,7 @@ use super::one_u_128_type::OneU128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u128`. +/// Table handle for the table `one_u_128`. /// /// Obtain a handle from the [`OneU128TableAccess::one_u_128`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_128()`. @@ -19,19 +19,19 @@ pub struct OneU128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u128`. +/// Extension trait for access to the table `one_u_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU128TableHandle`], which mediates access to the table `one_u128`. + /// Obtain a [`OneU128TableHandle`], which mediates access to the table `one_u_128`. fn one_u_128(&self) -> OneU128TableHandle<'_>; } impl OneU128TableAccess for super::RemoteTables { fn one_u_128(&self) -> OneU128TableHandle<'_> { OneU128TableHandle { - imp: self.imp.get_table::("one_u128"), + imp: self.imp.get_table::("one_u_128"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU128TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u128"); + let _table = client_cache.get_or_make_table::("one_u_128"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u128QueryTableAccess { +pub trait one_u_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU128`. - fn one_u128(&self) -> __sdk::__query_builder::Table; + fn one_u_128(&self) -> __sdk::__query_builder::Table; } -impl one_u128QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u128") +impl one_u_128QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs index d61d67f0844..73a291c8cea 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_16_table.rs @@ -5,7 +5,7 @@ use super::one_u_16_type::OneU16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u16`. +/// Table handle for the table `one_u_16`. /// /// Obtain a handle from the [`OneU16TableAccess::one_u_16`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_16()`. @@ -19,19 +19,19 @@ pub struct OneU16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u16`. +/// Extension trait for access to the table `one_u_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU16TableHandle`], which mediates access to the table `one_u16`. + /// Obtain a [`OneU16TableHandle`], which mediates access to the table `one_u_16`. fn one_u_16(&self) -> OneU16TableHandle<'_>; } impl OneU16TableAccess for super::RemoteTables { fn one_u_16(&self) -> OneU16TableHandle<'_> { OneU16TableHandle { - imp: self.imp.get_table::("one_u16"), + imp: self.imp.get_table::("one_u_16"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU16TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u16"); + let _table = client_cache.get_or_make_table::("one_u_16"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u16QueryTableAccess { +pub trait one_u_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU16`. - fn one_u16(&self) -> __sdk::__query_builder::Table; + fn one_u_16(&self) -> __sdk::__query_builder::Table; } -impl one_u16QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u16") +impl one_u_16QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs index 7c4767fe193..e5c07561c26 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_256_table.rs @@ -5,7 +5,7 @@ use super::one_u_256_type::OneU256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u256`. +/// Table handle for the table `one_u_256`. /// /// Obtain a handle from the [`OneU256TableAccess::one_u_256`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_256()`. @@ -19,19 +19,19 @@ pub struct OneU256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u256`. +/// Extension trait for access to the table `one_u_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU256TableHandle`], which mediates access to the table `one_u256`. + /// Obtain a [`OneU256TableHandle`], which mediates access to the table `one_u_256`. fn one_u_256(&self) -> OneU256TableHandle<'_>; } impl OneU256TableAccess for super::RemoteTables { fn one_u_256(&self) -> OneU256TableHandle<'_> { OneU256TableHandle { - imp: self.imp.get_table::("one_u256"), + imp: self.imp.get_table::("one_u_256"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU256TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u256"); + let _table = client_cache.get_or_make_table::("one_u_256"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u256QueryTableAccess { +pub trait one_u_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU256`. - fn one_u256(&self) -> __sdk::__query_builder::Table; + fn one_u_256(&self) -> __sdk::__query_builder::Table; } -impl one_u256QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u256") +impl one_u_256QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs index 50b5818329e..c818a74eace 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_32_table.rs @@ -5,7 +5,7 @@ use super::one_u_32_type::OneU32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u32`. +/// Table handle for the table `one_u_32`. /// /// Obtain a handle from the [`OneU32TableAccess::one_u_32`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_32()`. @@ -19,19 +19,19 @@ pub struct OneU32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u32`. +/// Extension trait for access to the table `one_u_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU32TableHandle`], which mediates access to the table `one_u32`. + /// Obtain a [`OneU32TableHandle`], which mediates access to the table `one_u_32`. fn one_u_32(&self) -> OneU32TableHandle<'_>; } impl OneU32TableAccess for super::RemoteTables { fn one_u_32(&self) -> OneU32TableHandle<'_> { OneU32TableHandle { - imp: self.imp.get_table::("one_u32"), + imp: self.imp.get_table::("one_u_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u32"); + let _table = client_cache.get_or_make_table::("one_u_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u32QueryTableAccess { +pub trait one_u_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU32`. - fn one_u32(&self) -> __sdk::__query_builder::Table; + fn one_u_32(&self) -> __sdk::__query_builder::Table; } -impl one_u32QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u32") +impl one_u_32QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs index b9c20b2beff..1addfb72311 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_64_table.rs @@ -5,7 +5,7 @@ use super::one_u_64_type::OneU64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u64`. +/// Table handle for the table `one_u_64`. /// /// Obtain a handle from the [`OneU64TableAccess::one_u_64`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_64()`. @@ -19,19 +19,19 @@ pub struct OneU64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u64`. +/// Extension trait for access to the table `one_u_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU64TableHandle`], which mediates access to the table `one_u64`. + /// Obtain a [`OneU64TableHandle`], which mediates access to the table `one_u_64`. fn one_u_64(&self) -> OneU64TableHandle<'_>; } impl OneU64TableAccess for super::RemoteTables { fn one_u_64(&self) -> OneU64TableHandle<'_> { OneU64TableHandle { - imp: self.imp.get_table::("one_u64"), + imp: self.imp.get_table::("one_u_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u64"); + let _table = client_cache.get_or_make_table::("one_u_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u64QueryTableAccess { +pub trait one_u_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU64`. - fn one_u64(&self) -> __sdk::__query_builder::Table; + fn one_u_64(&self) -> __sdk::__query_builder::Table; } -impl one_u64QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u64") +impl one_u_64QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs index a7c92f8022f..4ea390ae321 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/one_u_8_table.rs @@ -5,7 +5,7 @@ use super::one_u_8_type::OneU8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `one_u8`. +/// Table handle for the table `one_u_8`. /// /// Obtain a handle from the [`OneU8TableAccess::one_u_8`] method on [`super::RemoteTables`], /// like `ctx.db.one_u_8()`. @@ -19,19 +19,19 @@ pub struct OneU8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `one_u8`. +/// Extension trait for access to the table `one_u_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait OneU8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OneU8TableHandle`], which mediates access to the table `one_u8`. + /// Obtain a [`OneU8TableHandle`], which mediates access to the table `one_u_8`. fn one_u_8(&self) -> OneU8TableHandle<'_>; } impl OneU8TableAccess for super::RemoteTables { fn one_u_8(&self) -> OneU8TableHandle<'_> { OneU8TableHandle { - imp: self.imp.get_table::("one_u8"), + imp: self.imp.get_table::("one_u_8"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OneU8TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("one_u8"); + let _table = client_cache.get_or_make_table::("one_u_8"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OneU8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait one_u8QueryTableAccess { +pub trait one_u_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OneU8`. - fn one_u8(&self) -> __sdk::__query_builder::Table; + fn one_u_8(&self) -> __sdk::__query_builder::Table; } -impl one_u8QueryTableAccess for __sdk::QueryTableAccessor { - fn one_u8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("one_u8") +impl one_u_8QueryTableAccess for __sdk::QueryTableAccessor { + fn one_u_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("one_u_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs index e97e3199b9a..b23a358174f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_i_32_table.rs @@ -5,7 +5,7 @@ use super::option_i_32_type::OptionI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `option_i32`. +/// Table handle for the table `option_i_32`. /// /// Obtain a handle from the [`OptionI32TableAccess::option_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.option_i_32()`. @@ -19,19 +19,19 @@ pub struct OptionI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `option_i32`. +/// Extension trait for access to the table `option_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait OptionI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OptionI32TableHandle`], which mediates access to the table `option_i32`. + /// Obtain a [`OptionI32TableHandle`], which mediates access to the table `option_i_32`. fn option_i_32(&self) -> OptionI32TableHandle<'_>; } impl OptionI32TableAccess for super::RemoteTables { fn option_i_32(&self) -> OptionI32TableHandle<'_> { OptionI32TableHandle { - imp: self.imp.get_table::("option_i32"), + imp: self.imp.get_table::("option_i_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OptionI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("option_i32"); + let _table = client_cache.get_or_make_table::("option_i_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `OptionI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait option_i32QueryTableAccess { +pub trait option_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OptionI32`. - fn option_i32(&self) -> __sdk::__query_builder::Table; + fn option_i_32(&self) -> __sdk::__query_builder::Table; } -impl option_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn option_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("option_i32") +impl option_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn option_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("option_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs index cc62250a69a..bb42948ded7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/option_vec_option_i_32_table.rs @@ -5,7 +5,7 @@ use super::option_vec_option_i_32_type::OptionVecOptionI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `option_vec_option_i32`. +/// Table handle for the table `option_vec_option_i_32`. /// /// Obtain a handle from the [`OptionVecOptionI32TableAccess::option_vec_option_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.option_vec_option_i_32()`. @@ -19,19 +19,19 @@ pub struct OptionVecOptionI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `option_vec_option_i32`. +/// Extension trait for access to the table `option_vec_option_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait OptionVecOptionI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`OptionVecOptionI32TableHandle`], which mediates access to the table `option_vec_option_i32`. + /// Obtain a [`OptionVecOptionI32TableHandle`], which mediates access to the table `option_vec_option_i_32`. fn option_vec_option_i_32(&self) -> OptionVecOptionI32TableHandle<'_>; } impl OptionVecOptionI32TableAccess for super::RemoteTables { fn option_vec_option_i_32(&self) -> OptionVecOptionI32TableHandle<'_> { OptionVecOptionI32TableHandle { - imp: self.imp.get_table::("option_vec_option_i32"), + imp: self.imp.get_table::("option_vec_option_i_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for OptionVecOptionI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("option_vec_option_i32"); + let _table = client_cache.get_or_make_table::("option_vec_option_i_32"); } #[doc(hidden)] @@ -98,14 +98,14 @@ pub(super) fn parse_table_update( /// Extension trait for query builder access to the table `OptionVecOptionI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait option_vec_option_i32QueryTableAccess { +pub trait option_vec_option_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `OptionVecOptionI32`. - fn option_vec_option_i32(&self) -> __sdk::__query_builder::Table; + fn option_vec_option_i_32(&self) -> __sdk::__query_builder::Table; } -impl option_vec_option_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn option_vec_option_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("option_vec_option_i32") +impl option_vec_option_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn option_vec_option_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("option_vec_option_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs index 5025af971c3..ed52b296500 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_128_table.rs @@ -5,7 +5,7 @@ use super::pk_i_128_type::PkI128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i128`. +/// Table handle for the table `pk_i_128`. /// /// Obtain a handle from the [`PkI128TableAccess::pk_i_128`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_128()`. @@ -19,19 +19,19 @@ pub struct PkI128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i128`. +/// Extension trait for access to the table `pk_i_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI128TableHandle`], which mediates access to the table `pk_i128`. + /// Obtain a [`PkI128TableHandle`], which mediates access to the table `pk_i_128`. fn pk_i_128(&self) -> PkI128TableHandle<'_>; } impl PkI128TableAccess for super::RemoteTables { fn pk_i_128(&self) -> PkI128TableHandle<'_> { PkI128TableHandle { - imp: self.imp.get_table::("pk_i128"), + imp: self.imp.get_table::("pk_i_128"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI128TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i128`, +/// Access to the `n` unique index on the table `pk_i_128`, /// which allows point queries on the field of the same name /// via the [`PkI128NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI128NUnique<'ctx> { } impl<'ctx> PkI128TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i128`. + /// Get a handle on the `n` unique index on the table `pk_i_128`. pub fn n(&self) -> PkI128NUnique<'ctx> { PkI128NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI128NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i128"); + let _table = client_cache.get_or_make_table::("pk_i_128"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i128QueryTableAccess { +pub trait pk_i_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI128`. - fn pk_i128(&self) -> __sdk::__query_builder::Table; + fn pk_i_128(&self) -> __sdk::__query_builder::Table; } -impl pk_i128QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i128") +impl pk_i_128QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs index b507d0ff7b3..acfc4d4d4cf 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_16_table.rs @@ -5,7 +5,7 @@ use super::pk_i_16_type::PkI16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i16`. +/// Table handle for the table `pk_i_16`. /// /// Obtain a handle from the [`PkI16TableAccess::pk_i_16`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_16()`. @@ -19,19 +19,19 @@ pub struct PkI16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i16`. +/// Extension trait for access to the table `pk_i_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI16TableHandle`], which mediates access to the table `pk_i16`. + /// Obtain a [`PkI16TableHandle`], which mediates access to the table `pk_i_16`. fn pk_i_16(&self) -> PkI16TableHandle<'_>; } impl PkI16TableAccess for super::RemoteTables { fn pk_i_16(&self) -> PkI16TableHandle<'_> { PkI16TableHandle { - imp: self.imp.get_table::("pk_i16"), + imp: self.imp.get_table::("pk_i_16"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI16TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i16`, +/// Access to the `n` unique index on the table `pk_i_16`, /// which allows point queries on the field of the same name /// via the [`PkI16NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI16NUnique<'ctx> { } impl<'ctx> PkI16TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i16`. + /// Get a handle on the `n` unique index on the table `pk_i_16`. pub fn n(&self) -> PkI16NUnique<'ctx> { PkI16NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI16NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i16"); + let _table = client_cache.get_or_make_table::("pk_i_16"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i16QueryTableAccess { +pub trait pk_i_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI16`. - fn pk_i16(&self) -> __sdk::__query_builder::Table; + fn pk_i_16(&self) -> __sdk::__query_builder::Table; } -impl pk_i16QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i16") +impl pk_i_16QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs index 4e0d7ec4824..9cf4d71b655 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_256_table.rs @@ -5,7 +5,7 @@ use super::pk_i_256_type::PkI256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i256`. +/// Table handle for the table `pk_i_256`. /// /// Obtain a handle from the [`PkI256TableAccess::pk_i_256`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_256()`. @@ -19,19 +19,19 @@ pub struct PkI256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i256`. +/// Extension trait for access to the table `pk_i_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI256TableHandle`], which mediates access to the table `pk_i256`. + /// Obtain a [`PkI256TableHandle`], which mediates access to the table `pk_i_256`. fn pk_i_256(&self) -> PkI256TableHandle<'_>; } impl PkI256TableAccess for super::RemoteTables { fn pk_i_256(&self) -> PkI256TableHandle<'_> { PkI256TableHandle { - imp: self.imp.get_table::("pk_i256"), + imp: self.imp.get_table::("pk_i_256"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI256TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i256`, +/// Access to the `n` unique index on the table `pk_i_256`, /// which allows point queries on the field of the same name /// via the [`PkI256NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI256NUnique<'ctx> { } impl<'ctx> PkI256TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i256`. + /// Get a handle on the `n` unique index on the table `pk_i_256`. pub fn n(&self) -> PkI256NUnique<'ctx> { PkI256NUnique { imp: self.imp.get_unique_constraint::<__sats::i256>("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI256NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i256"); + let _table = client_cache.get_or_make_table::("pk_i_256"); _table.add_unique_constraint::<__sats::i256>("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i256QueryTableAccess { +pub trait pk_i_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI256`. - fn pk_i256(&self) -> __sdk::__query_builder::Table; + fn pk_i_256(&self) -> __sdk::__query_builder::Table; } -impl pk_i256QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i256") +impl pk_i_256QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs index 27306fc04f9..01c7410cfb2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_32_table.rs @@ -5,7 +5,7 @@ use super::pk_i_32_type::PkI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i32`. +/// Table handle for the table `pk_i_32`. /// /// Obtain a handle from the [`PkI32TableAccess::pk_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_32()`. @@ -19,19 +19,19 @@ pub struct PkI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i32`. +/// Extension trait for access to the table `pk_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI32TableHandle`], which mediates access to the table `pk_i32`. + /// Obtain a [`PkI32TableHandle`], which mediates access to the table `pk_i_32`. fn pk_i_32(&self) -> PkI32TableHandle<'_>; } impl PkI32TableAccess for super::RemoteTables { fn pk_i_32(&self) -> PkI32TableHandle<'_> { PkI32TableHandle { - imp: self.imp.get_table::("pk_i32"), + imp: self.imp.get_table::("pk_i_32"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI32TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i32`, +/// Access to the `n` unique index on the table `pk_i_32`, /// which allows point queries on the field of the same name /// via the [`PkI32NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI32NUnique<'ctx> { } impl<'ctx> PkI32TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i32`. + /// Get a handle on the `n` unique index on the table `pk_i_32`. pub fn n(&self) -> PkI32NUnique<'ctx> { PkI32NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI32NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i32"); + let _table = client_cache.get_or_make_table::("pk_i_32"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i32QueryTableAccess { +pub trait pk_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI32`. - fn pk_i32(&self) -> __sdk::__query_builder::Table; + fn pk_i_32(&self) -> __sdk::__query_builder::Table; } -impl pk_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i32") +impl pk_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs index 9a674e8bb88..b6c486ade37 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_64_table.rs @@ -5,7 +5,7 @@ use super::pk_i_64_type::PkI64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i64`. +/// Table handle for the table `pk_i_64`. /// /// Obtain a handle from the [`PkI64TableAccess::pk_i_64`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_64()`. @@ -19,19 +19,19 @@ pub struct PkI64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i64`. +/// Extension trait for access to the table `pk_i_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI64TableHandle`], which mediates access to the table `pk_i64`. + /// Obtain a [`PkI64TableHandle`], which mediates access to the table `pk_i_64`. fn pk_i_64(&self) -> PkI64TableHandle<'_>; } impl PkI64TableAccess for super::RemoteTables { fn pk_i_64(&self) -> PkI64TableHandle<'_> { PkI64TableHandle { - imp: self.imp.get_table::("pk_i64"), + imp: self.imp.get_table::("pk_i_64"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI64TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i64`, +/// Access to the `n` unique index on the table `pk_i_64`, /// which allows point queries on the field of the same name /// via the [`PkI64NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI64NUnique<'ctx> { } impl<'ctx> PkI64TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i64`. + /// Get a handle on the `n` unique index on the table `pk_i_64`. pub fn n(&self) -> PkI64NUnique<'ctx> { PkI64NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI64NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i64"); + let _table = client_cache.get_or_make_table::("pk_i_64"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i64QueryTableAccess { +pub trait pk_i_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI64`. - fn pk_i64(&self) -> __sdk::__query_builder::Table; + fn pk_i_64(&self) -> __sdk::__query_builder::Table; } -impl pk_i64QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i64") +impl pk_i_64QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs index 4579f0bc8fd..010b1b45793 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_i_8_table.rs @@ -5,7 +5,7 @@ use super::pk_i_8_type::PkI8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_i8`. +/// Table handle for the table `pk_i_8`. /// /// Obtain a handle from the [`PkI8TableAccess::pk_i_8`] method on [`super::RemoteTables`], /// like `ctx.db.pk_i_8()`. @@ -19,19 +19,19 @@ pub struct PkI8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_i8`. +/// Extension trait for access to the table `pk_i_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkI8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkI8TableHandle`], which mediates access to the table `pk_i8`. + /// Obtain a [`PkI8TableHandle`], which mediates access to the table `pk_i_8`. fn pk_i_8(&self) -> PkI8TableHandle<'_>; } impl PkI8TableAccess for super::RemoteTables { fn pk_i_8(&self) -> PkI8TableHandle<'_> { PkI8TableHandle { - imp: self.imp.get_table::("pk_i8"), + imp: self.imp.get_table::("pk_i_8"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkI8TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_i8`, +/// Access to the `n` unique index on the table `pk_i_8`, /// which allows point queries on the field of the same name /// via the [`PkI8NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkI8NUnique<'ctx> { } impl<'ctx> PkI8TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_i8`. + /// Get a handle on the `n` unique index on the table `pk_i_8`. pub fn n(&self) -> PkI8NUnique<'ctx> { PkI8NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkI8NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_i8"); + let _table = client_cache.get_or_make_table::("pk_i_8"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkI8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_i8QueryTableAccess { +pub trait pk_i_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkI8`. - fn pk_i8(&self) -> __sdk::__query_builder::Table; + fn pk_i_8(&self) -> __sdk::__query_builder::Table; } -impl pk_i8QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_i8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_i8") +impl pk_i_8QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_i_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_i_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs index c7766e76617..4ef0969e695 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_128_table.rs @@ -5,7 +5,7 @@ use super::pk_u_128_type::PkU128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u128`. +/// Table handle for the table `pk_u_128`. /// /// Obtain a handle from the [`PkU128TableAccess::pk_u_128`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_128()`. @@ -19,19 +19,19 @@ pub struct PkU128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u128`. +/// Extension trait for access to the table `pk_u_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU128TableHandle`], which mediates access to the table `pk_u128`. + /// Obtain a [`PkU128TableHandle`], which mediates access to the table `pk_u_128`. fn pk_u_128(&self) -> PkU128TableHandle<'_>; } impl PkU128TableAccess for super::RemoteTables { fn pk_u_128(&self) -> PkU128TableHandle<'_> { PkU128TableHandle { - imp: self.imp.get_table::("pk_u128"), + imp: self.imp.get_table::("pk_u_128"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU128TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u128`, +/// Access to the `n` unique index on the table `pk_u_128`, /// which allows point queries on the field of the same name /// via the [`PkU128NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU128NUnique<'ctx> { } impl<'ctx> PkU128TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u128`. + /// Get a handle on the `n` unique index on the table `pk_u_128`. pub fn n(&self) -> PkU128NUnique<'ctx> { PkU128NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU128NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u128"); + let _table = client_cache.get_or_make_table::("pk_u_128"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u128QueryTableAccess { +pub trait pk_u_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU128`. - fn pk_u128(&self) -> __sdk::__query_builder::Table; + fn pk_u_128(&self) -> __sdk::__query_builder::Table; } -impl pk_u128QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u128") +impl pk_u_128QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs index 7763dbbb916..136479f3749 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_16_table.rs @@ -5,7 +5,7 @@ use super::pk_u_16_type::PkU16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u16`. +/// Table handle for the table `pk_u_16`. /// /// Obtain a handle from the [`PkU16TableAccess::pk_u_16`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_16()`. @@ -19,19 +19,19 @@ pub struct PkU16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u16`. +/// Extension trait for access to the table `pk_u_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU16TableHandle`], which mediates access to the table `pk_u16`. + /// Obtain a [`PkU16TableHandle`], which mediates access to the table `pk_u_16`. fn pk_u_16(&self) -> PkU16TableHandle<'_>; } impl PkU16TableAccess for super::RemoteTables { fn pk_u_16(&self) -> PkU16TableHandle<'_> { PkU16TableHandle { - imp: self.imp.get_table::("pk_u16"), + imp: self.imp.get_table::("pk_u_16"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU16TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u16`, +/// Access to the `n` unique index on the table `pk_u_16`, /// which allows point queries on the field of the same name /// via the [`PkU16NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU16NUnique<'ctx> { } impl<'ctx> PkU16TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u16`. + /// Get a handle on the `n` unique index on the table `pk_u_16`. pub fn n(&self) -> PkU16NUnique<'ctx> { PkU16NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU16NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u16"); + let _table = client_cache.get_or_make_table::("pk_u_16"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u16QueryTableAccess { +pub trait pk_u_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU16`. - fn pk_u16(&self) -> __sdk::__query_builder::Table; + fn pk_u_16(&self) -> __sdk::__query_builder::Table; } -impl pk_u16QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u16") +impl pk_u_16QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs index a32aea3b472..19b6f7c59ba 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_256_table.rs @@ -5,7 +5,7 @@ use super::pk_u_256_type::PkU256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u256`. +/// Table handle for the table `pk_u_256`. /// /// Obtain a handle from the [`PkU256TableAccess::pk_u_256`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_256()`. @@ -19,19 +19,19 @@ pub struct PkU256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u256`. +/// Extension trait for access to the table `pk_u_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU256TableHandle`], which mediates access to the table `pk_u256`. + /// Obtain a [`PkU256TableHandle`], which mediates access to the table `pk_u_256`. fn pk_u_256(&self) -> PkU256TableHandle<'_>; } impl PkU256TableAccess for super::RemoteTables { fn pk_u_256(&self) -> PkU256TableHandle<'_> { PkU256TableHandle { - imp: self.imp.get_table::("pk_u256"), + imp: self.imp.get_table::("pk_u_256"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU256TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u256`, +/// Access to the `n` unique index on the table `pk_u_256`, /// which allows point queries on the field of the same name /// via the [`PkU256NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU256NUnique<'ctx> { } impl<'ctx> PkU256TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u256`. + /// Get a handle on the `n` unique index on the table `pk_u_256`. pub fn n(&self) -> PkU256NUnique<'ctx> { PkU256NUnique { imp: self.imp.get_unique_constraint::<__sats::u256>("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU256NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u256"); + let _table = client_cache.get_or_make_table::("pk_u_256"); _table.add_unique_constraint::<__sats::u256>("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u256QueryTableAccess { +pub trait pk_u_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU256`. - fn pk_u256(&self) -> __sdk::__query_builder::Table; + fn pk_u_256(&self) -> __sdk::__query_builder::Table; } -impl pk_u256QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u256") +impl pk_u_256QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs index aa50934a320..670ccd0ff52 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_table.rs @@ -5,7 +5,7 @@ use super::pk_u_32_type::PkU32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u32`. +/// Table handle for the table `pk_u_32`. /// /// Obtain a handle from the [`PkU32TableAccess::pk_u_32`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_32()`. @@ -19,19 +19,19 @@ pub struct PkU32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u32`. +/// Extension trait for access to the table `pk_u_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU32TableHandle`], which mediates access to the table `pk_u32`. + /// Obtain a [`PkU32TableHandle`], which mediates access to the table `pk_u_32`. fn pk_u_32(&self) -> PkU32TableHandle<'_>; } impl PkU32TableAccess for super::RemoteTables { fn pk_u_32(&self) -> PkU32TableHandle<'_> { PkU32TableHandle { - imp: self.imp.get_table::("pk_u32"), + imp: self.imp.get_table::("pk_u_32"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u32`, +/// Access to the `n` unique index on the table `pk_u_32`, /// which allows point queries on the field of the same name /// via the [`PkU32NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU32NUnique<'ctx> { } impl<'ctx> PkU32TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u32`. + /// Get a handle on the `n` unique index on the table `pk_u_32`. pub fn n(&self) -> PkU32NUnique<'ctx> { PkU32NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU32NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u32"); + let _table = client_cache.get_or_make_table::("pk_u_32"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u32QueryTableAccess { +pub trait pk_u_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU32`. - fn pk_u32(&self) -> __sdk::__query_builder::Table; + fn pk_u_32(&self) -> __sdk::__query_builder::Table; } -impl pk_u32QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u32") +impl pk_u_32QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs index b44e33cd400..176afc27be4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_32_two_table.rs @@ -5,7 +5,7 @@ use super::pk_u_32_two_type::PkU32Two; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u32_two`. +/// Table handle for the table `pk_u_32_two`. /// /// Obtain a handle from the [`PkU32TwoTableAccess::pk_u_32_two`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_32_two()`. @@ -19,19 +19,19 @@ pub struct PkU32TwoTableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u32_two`. +/// Extension trait for access to the table `pk_u_32_two`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU32TwoTableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU32TwoTableHandle`], which mediates access to the table `pk_u32_two`. + /// Obtain a [`PkU32TwoTableHandle`], which mediates access to the table `pk_u_32_two`. fn pk_u_32_two(&self) -> PkU32TwoTableHandle<'_>; } impl PkU32TwoTableAccess for super::RemoteTables { fn pk_u_32_two(&self) -> PkU32TwoTableHandle<'_> { PkU32TwoTableHandle { - imp: self.imp.get_table::("pk_u32_two"), + imp: self.imp.get_table::("pk_u_32_two"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU32TwoTableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u32_two`, +/// Access to the `n` unique index on the table `pk_u_32_two`, /// which allows point queries on the field of the same name /// via the [`PkU32TwoNUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU32TwoNUnique<'ctx> { } impl<'ctx> PkU32TwoTableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u32_two`. + /// Get a handle on the `n` unique index on the table `pk_u_32_two`. pub fn n(&self) -> PkU32TwoNUnique<'ctx> { PkU32TwoNUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU32TwoNUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u32_two"); + let _table = client_cache.get_or_make_table::("pk_u_32_two"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU32Two`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u32_twoQueryTableAccess { +pub trait pk_u_32_twoQueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU32Two`. - fn pk_u32_two(&self) -> __sdk::__query_builder::Table; + fn pk_u_32_two(&self) -> __sdk::__query_builder::Table; } -impl pk_u32_twoQueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u32_two(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u32_two") +impl pk_u_32_twoQueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_32_two(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_32_two") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs index cd00b4d151e..7ebda9ee9b5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_64_table.rs @@ -5,7 +5,7 @@ use super::pk_u_64_type::PkU64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u64`. +/// Table handle for the table `pk_u_64`. /// /// Obtain a handle from the [`PkU64TableAccess::pk_u_64`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_64()`. @@ -19,19 +19,19 @@ pub struct PkU64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u64`. +/// Extension trait for access to the table `pk_u_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU64TableHandle`], which mediates access to the table `pk_u64`. + /// Obtain a [`PkU64TableHandle`], which mediates access to the table `pk_u_64`. fn pk_u_64(&self) -> PkU64TableHandle<'_>; } impl PkU64TableAccess for super::RemoteTables { fn pk_u_64(&self) -> PkU64TableHandle<'_> { PkU64TableHandle { - imp: self.imp.get_table::("pk_u64"), + imp: self.imp.get_table::("pk_u_64"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU64TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u64`, +/// Access to the `n` unique index on the table `pk_u_64`, /// which allows point queries on the field of the same name /// via the [`PkU64NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU64NUnique<'ctx> { } impl<'ctx> PkU64TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u64`. + /// Get a handle on the `n` unique index on the table `pk_u_64`. pub fn n(&self) -> PkU64NUnique<'ctx> { PkU64NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU64NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u64"); + let _table = client_cache.get_or_make_table::("pk_u_64"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u64QueryTableAccess { +pub trait pk_u_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU64`. - fn pk_u64(&self) -> __sdk::__query_builder::Table; + fn pk_u_64(&self) -> __sdk::__query_builder::Table; } -impl pk_u64QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u64") +impl pk_u_64QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs index 183685f62c9..4603dc0295b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/pk_u_8_table.rs @@ -5,7 +5,7 @@ use super::pk_u_8_type::PkU8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `pk_u8`. +/// Table handle for the table `pk_u_8`. /// /// Obtain a handle from the [`PkU8TableAccess::pk_u_8`] method on [`super::RemoteTables`], /// like `ctx.db.pk_u_8()`. @@ -19,19 +19,19 @@ pub struct PkU8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `pk_u8`. +/// Extension trait for access to the table `pk_u_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait PkU8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`PkU8TableHandle`], which mediates access to the table `pk_u8`. + /// Obtain a [`PkU8TableHandle`], which mediates access to the table `pk_u_8`. fn pk_u_8(&self) -> PkU8TableHandle<'_>; } impl PkU8TableAccess for super::RemoteTables { fn pk_u_8(&self) -> PkU8TableHandle<'_> { PkU8TableHandle { - imp: self.imp.get_table::("pk_u8"), + imp: self.imp.get_table::("pk_u_8"), ctx: std::marker::PhantomData, } } @@ -95,7 +95,7 @@ impl<'ctx> __sdk::TableWithPrimaryKey for PkU8TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `pk_u8`, +/// Access to the `n` unique index on the table `pk_u_8`, /// which allows point queries on the field of the same name /// via the [`PkU8NUnique::find`] method. /// @@ -108,7 +108,7 @@ pub struct PkU8NUnique<'ctx> { } impl<'ctx> PkU8TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `pk_u8`. + /// Get a handle on the `n` unique index on the table `pk_u_8`. pub fn n(&self) -> PkU8NUnique<'ctx> { PkU8NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -127,7 +127,7 @@ impl<'ctx> PkU8NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("pk_u8"); + let _table = client_cache.get_or_make_table::("pk_u_8"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -144,14 +144,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `PkU8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait pk_u8QueryTableAccess { +pub trait pk_u_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `PkU8`. - fn pk_u8(&self) -> __sdk::__query_builder::Table; + fn pk_u_8(&self) -> __sdk::__query_builder::Table; } -impl pk_u8QueryTableAccess for __sdk::QueryTableAccessor { - fn pk_u8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("pk_u8") +impl pk_u_8QueryTableAccess for __sdk::QueryTableAccessor { + fn pk_u_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("pk_u_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs index 41980e3867f..991122618d2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_i_32_string_table.rs @@ -5,7 +5,7 @@ use super::result_i_32_string_type::ResultI32String; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `result_i32_string`. +/// Table handle for the table `result_i_32_string`. /// /// Obtain a handle from the [`ResultI32StringTableAccess::result_i_32_string`] method on [`super::RemoteTables`], /// like `ctx.db.result_i_32_string()`. @@ -19,19 +19,19 @@ pub struct ResultI32StringTableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `result_i32_string`. +/// Extension trait for access to the table `result_i_32_string`. /// /// Implemented for [`super::RemoteTables`]. pub trait ResultI32StringTableAccess { #[allow(non_snake_case)] - /// Obtain a [`ResultI32StringTableHandle`], which mediates access to the table `result_i32_string`. + /// Obtain a [`ResultI32StringTableHandle`], which mediates access to the table `result_i_32_string`. fn result_i_32_string(&self) -> ResultI32StringTableHandle<'_>; } impl ResultI32StringTableAccess for super::RemoteTables { fn result_i_32_string(&self) -> ResultI32StringTableHandle<'_> { ResultI32StringTableHandle { - imp: self.imp.get_table::("result_i32_string"), + imp: self.imp.get_table::("result_i_32_string"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for ResultI32StringTableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("result_i32_string"); + let _table = client_cache.get_or_make_table::("result_i_32_string"); } #[doc(hidden)] @@ -98,14 +98,14 @@ pub(super) fn parse_table_update( /// Extension trait for query builder access to the table `ResultI32String`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait result_i32_stringQueryTableAccess { +pub trait result_i_32_stringQueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `ResultI32String`. - fn result_i32_string(&self) -> __sdk::__query_builder::Table; + fn result_i_32_string(&self) -> __sdk::__query_builder::Table; } -impl result_i32_stringQueryTableAccess for __sdk::QueryTableAccessor { - fn result_i32_string(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("result_i32_string") +impl result_i_32_stringQueryTableAccess for __sdk::QueryTableAccessor { + fn result_i_32_string(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("result_i_32_string") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs index cacf4b956b7..b35acf45ecc 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_simple_enum_i_32_table.rs @@ -6,7 +6,7 @@ use super::result_simple_enum_i_32_type::ResultSimpleEnumI32; use super::simple_enum_type::SimpleEnum; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `result_simple_enum_i32`. +/// Table handle for the table `result_simple_enum_i_32`. /// /// Obtain a handle from the [`ResultSimpleEnumI32TableAccess::result_simple_enum_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.result_simple_enum_i_32()`. @@ -20,19 +20,19 @@ pub struct ResultSimpleEnumI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `result_simple_enum_i32`. +/// Extension trait for access to the table `result_simple_enum_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait ResultSimpleEnumI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`ResultSimpleEnumI32TableHandle`], which mediates access to the table `result_simple_enum_i32`. + /// Obtain a [`ResultSimpleEnumI32TableHandle`], which mediates access to the table `result_simple_enum_i_32`. fn result_simple_enum_i_32(&self) -> ResultSimpleEnumI32TableHandle<'_>; } impl ResultSimpleEnumI32TableAccess for super::RemoteTables { fn result_simple_enum_i_32(&self) -> ResultSimpleEnumI32TableHandle<'_> { ResultSimpleEnumI32TableHandle { - imp: self.imp.get_table::("result_simple_enum_i32"), + imp: self.imp.get_table::("result_simple_enum_i_32"), ctx: std::marker::PhantomData, } } @@ -81,7 +81,7 @@ impl<'ctx> __sdk::Table for ResultSimpleEnumI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("result_simple_enum_i32"); + let _table = client_cache.get_or_make_table::("result_simple_enum_i_32"); } #[doc(hidden)] @@ -99,14 +99,14 @@ pub(super) fn parse_table_update( /// Extension trait for query builder access to the table `ResultSimpleEnumI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait result_simple_enum_i32QueryTableAccess { +pub trait result_simple_enum_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `ResultSimpleEnumI32`. - fn result_simple_enum_i32(&self) -> __sdk::__query_builder::Table; + fn result_simple_enum_i_32(&self) -> __sdk::__query_builder::Table; } -impl result_simple_enum_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn result_simple_enum_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("result_simple_enum_i32") +impl result_simple_enum_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn result_simple_enum_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("result_simple_enum_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs index 91a61a7cba8..5d611cd1068 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_string_i_32_table.rs @@ -5,7 +5,7 @@ use super::result_string_i_32_type::ResultStringI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `result_string_i32`. +/// Table handle for the table `result_string_i_32`. /// /// Obtain a handle from the [`ResultStringI32TableAccess::result_string_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.result_string_i_32()`. @@ -19,19 +19,19 @@ pub struct ResultStringI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `result_string_i32`. +/// Extension trait for access to the table `result_string_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait ResultStringI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`ResultStringI32TableHandle`], which mediates access to the table `result_string_i32`. + /// Obtain a [`ResultStringI32TableHandle`], which mediates access to the table `result_string_i_32`. fn result_string_i_32(&self) -> ResultStringI32TableHandle<'_>; } impl ResultStringI32TableAccess for super::RemoteTables { fn result_string_i_32(&self) -> ResultStringI32TableHandle<'_> { ResultStringI32TableHandle { - imp: self.imp.get_table::("result_string_i32"), + imp: self.imp.get_table::("result_string_i_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for ResultStringI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("result_string_i32"); + let _table = client_cache.get_or_make_table::("result_string_i_32"); } #[doc(hidden)] @@ -98,14 +98,14 @@ pub(super) fn parse_table_update( /// Extension trait for query builder access to the table `ResultStringI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait result_string_i32QueryTableAccess { +pub trait result_string_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `ResultStringI32`. - fn result_string_i32(&self) -> __sdk::__query_builder::Table; + fn result_string_i_32(&self) -> __sdk::__query_builder::Table; } -impl result_string_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn result_string_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("result_string_i32") +impl result_string_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn result_string_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("result_string_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs b/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs index b30878dbf64..afd2fea744b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/result_vec_i_32_string_table.rs @@ -5,7 +5,7 @@ use super::result_vec_i_32_string_type::ResultVecI32String; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `result_vec_i32_string`. +/// Table handle for the table `result_vec_i_32_string`. /// /// Obtain a handle from the [`ResultVecI32StringTableAccess::result_vec_i_32_string`] method on [`super::RemoteTables`], /// like `ctx.db.result_vec_i_32_string()`. @@ -19,19 +19,19 @@ pub struct ResultVecI32StringTableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `result_vec_i32_string`. +/// Extension trait for access to the table `result_vec_i_32_string`. /// /// Implemented for [`super::RemoteTables`]. pub trait ResultVecI32StringTableAccess { #[allow(non_snake_case)] - /// Obtain a [`ResultVecI32StringTableHandle`], which mediates access to the table `result_vec_i32_string`. + /// Obtain a [`ResultVecI32StringTableHandle`], which mediates access to the table `result_vec_i_32_string`. fn result_vec_i_32_string(&self) -> ResultVecI32StringTableHandle<'_>; } impl ResultVecI32StringTableAccess for super::RemoteTables { fn result_vec_i_32_string(&self) -> ResultVecI32StringTableHandle<'_> { ResultVecI32StringTableHandle { - imp: self.imp.get_table::("result_vec_i32_string"), + imp: self.imp.get_table::("result_vec_i_32_string"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for ResultVecI32StringTableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("result_vec_i32_string"); + let _table = client_cache.get_or_make_table::("result_vec_i_32_string"); } #[doc(hidden)] @@ -98,14 +98,14 @@ pub(super) fn parse_table_update( /// Extension trait for query builder access to the table `ResultVecI32String`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait result_vec_i32_stringQueryTableAccess { +pub trait result_vec_i_32_stringQueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `ResultVecI32String`. - fn result_vec_i32_string(&self) -> __sdk::__query_builder::Table; + fn result_vec_i_32_string(&self) -> __sdk::__query_builder::Table; } -impl result_vec_i32_stringQueryTableAccess for __sdk::QueryTableAccessor { - fn result_vec_i32_string(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("result_vec_i32_string") +impl result_vec_i_32_stringQueryTableAccess for __sdk::QueryTableAccessor { + fn result_vec_i_32_string(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("result_vec_i_32_string") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs index 7ad9e27176f..8282e5cbccd 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_128_table.rs @@ -5,7 +5,7 @@ use super::unique_i_128_type::UniqueI128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i128`. +/// Table handle for the table `unique_i_128`. /// /// Obtain a handle from the [`UniqueI128TableAccess::unique_i_128`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_128()`. @@ -19,19 +19,19 @@ pub struct UniqueI128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i128`. +/// Extension trait for access to the table `unique_i_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI128TableHandle`], which mediates access to the table `unique_i128`. + /// Obtain a [`UniqueI128TableHandle`], which mediates access to the table `unique_i_128`. fn unique_i_128(&self) -> UniqueI128TableHandle<'_>; } impl UniqueI128TableAccess for super::RemoteTables { fn unique_i_128(&self) -> UniqueI128TableHandle<'_> { UniqueI128TableHandle { - imp: self.imp.get_table::("unique_i128"), + imp: self.imp.get_table::("unique_i_128"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI128TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i128`, +/// Access to the `n` unique index on the table `unique_i_128`, /// which allows point queries on the field of the same name /// via the [`UniqueI128NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI128NUnique<'ctx> { } impl<'ctx> UniqueI128TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i128`. + /// Get a handle on the `n` unique index on the table `unique_i_128`. pub fn n(&self) -> UniqueI128NUnique<'ctx> { UniqueI128NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI128NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i128"); + let _table = client_cache.get_or_make_table::("unique_i_128"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i128QueryTableAccess { +pub trait unique_i_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI128`. - fn unique_i128(&self) -> __sdk::__query_builder::Table; + fn unique_i_128(&self) -> __sdk::__query_builder::Table; } -impl unique_i128QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i128") +impl unique_i_128QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs index a7245d954f3..b89c23ce1c5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_16_table.rs @@ -5,7 +5,7 @@ use super::unique_i_16_type::UniqueI16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i16`. +/// Table handle for the table `unique_i_16`. /// /// Obtain a handle from the [`UniqueI16TableAccess::unique_i_16`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_16()`. @@ -19,19 +19,19 @@ pub struct UniqueI16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i16`. +/// Extension trait for access to the table `unique_i_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI16TableHandle`], which mediates access to the table `unique_i16`. + /// Obtain a [`UniqueI16TableHandle`], which mediates access to the table `unique_i_16`. fn unique_i_16(&self) -> UniqueI16TableHandle<'_>; } impl UniqueI16TableAccess for super::RemoteTables { fn unique_i_16(&self) -> UniqueI16TableHandle<'_> { UniqueI16TableHandle { - imp: self.imp.get_table::("unique_i16"), + imp: self.imp.get_table::("unique_i_16"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI16TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i16`, +/// Access to the `n` unique index on the table `unique_i_16`, /// which allows point queries on the field of the same name /// via the [`UniqueI16NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI16NUnique<'ctx> { } impl<'ctx> UniqueI16TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i16`. + /// Get a handle on the `n` unique index on the table `unique_i_16`. pub fn n(&self) -> UniqueI16NUnique<'ctx> { UniqueI16NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI16NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i16"); + let _table = client_cache.get_or_make_table::("unique_i_16"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i16QueryTableAccess { +pub trait unique_i_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI16`. - fn unique_i16(&self) -> __sdk::__query_builder::Table; + fn unique_i_16(&self) -> __sdk::__query_builder::Table; } -impl unique_i16QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i16") +impl unique_i_16QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs index 03cb0811a6e..33b9d3dfad2 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_256_table.rs @@ -5,7 +5,7 @@ use super::unique_i_256_type::UniqueI256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i256`. +/// Table handle for the table `unique_i_256`. /// /// Obtain a handle from the [`UniqueI256TableAccess::unique_i_256`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_256()`. @@ -19,19 +19,19 @@ pub struct UniqueI256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i256`. +/// Extension trait for access to the table `unique_i_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI256TableHandle`], which mediates access to the table `unique_i256`. + /// Obtain a [`UniqueI256TableHandle`], which mediates access to the table `unique_i_256`. fn unique_i_256(&self) -> UniqueI256TableHandle<'_>; } impl UniqueI256TableAccess for super::RemoteTables { fn unique_i_256(&self) -> UniqueI256TableHandle<'_> { UniqueI256TableHandle { - imp: self.imp.get_table::("unique_i256"), + imp: self.imp.get_table::("unique_i_256"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI256TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i256`, +/// Access to the `n` unique index on the table `unique_i_256`, /// which allows point queries on the field of the same name /// via the [`UniqueI256NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI256NUnique<'ctx> { } impl<'ctx> UniqueI256TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i256`. + /// Get a handle on the `n` unique index on the table `unique_i_256`. pub fn n(&self) -> UniqueI256NUnique<'ctx> { UniqueI256NUnique { imp: self.imp.get_unique_constraint::<__sats::i256>("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI256NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i256"); + let _table = client_cache.get_or_make_table::("unique_i_256"); _table.add_unique_constraint::<__sats::i256>("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i256QueryTableAccess { +pub trait unique_i_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI256`. - fn unique_i256(&self) -> __sdk::__query_builder::Table; + fn unique_i_256(&self) -> __sdk::__query_builder::Table; } -impl unique_i256QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i256") +impl unique_i_256QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs index d292344a203..cead866df5c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_32_table.rs @@ -5,7 +5,7 @@ use super::unique_i_32_type::UniqueI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i32`. +/// Table handle for the table `unique_i_32`. /// /// Obtain a handle from the [`UniqueI32TableAccess::unique_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_32()`. @@ -19,19 +19,19 @@ pub struct UniqueI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i32`. +/// Extension trait for access to the table `unique_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI32TableHandle`], which mediates access to the table `unique_i32`. + /// Obtain a [`UniqueI32TableHandle`], which mediates access to the table `unique_i_32`. fn unique_i_32(&self) -> UniqueI32TableHandle<'_>; } impl UniqueI32TableAccess for super::RemoteTables { fn unique_i_32(&self) -> UniqueI32TableHandle<'_> { UniqueI32TableHandle { - imp: self.imp.get_table::("unique_i32"), + imp: self.imp.get_table::("unique_i_32"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI32TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i32`, +/// Access to the `n` unique index on the table `unique_i_32`, /// which allows point queries on the field of the same name /// via the [`UniqueI32NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI32NUnique<'ctx> { } impl<'ctx> UniqueI32TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i32`. + /// Get a handle on the `n` unique index on the table `unique_i_32`. pub fn n(&self) -> UniqueI32NUnique<'ctx> { UniqueI32NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI32NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i32"); + let _table = client_cache.get_or_make_table::("unique_i_32"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i32QueryTableAccess { +pub trait unique_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI32`. - fn unique_i32(&self) -> __sdk::__query_builder::Table; + fn unique_i_32(&self) -> __sdk::__query_builder::Table; } -impl unique_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i32") +impl unique_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs index 226d6f023c8..514474aa4b1 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_64_table.rs @@ -5,7 +5,7 @@ use super::unique_i_64_type::UniqueI64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i64`. +/// Table handle for the table `unique_i_64`. /// /// Obtain a handle from the [`UniqueI64TableAccess::unique_i_64`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_64()`. @@ -19,19 +19,19 @@ pub struct UniqueI64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i64`. +/// Extension trait for access to the table `unique_i_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI64TableHandle`], which mediates access to the table `unique_i64`. + /// Obtain a [`UniqueI64TableHandle`], which mediates access to the table `unique_i_64`. fn unique_i_64(&self) -> UniqueI64TableHandle<'_>; } impl UniqueI64TableAccess for super::RemoteTables { fn unique_i_64(&self) -> UniqueI64TableHandle<'_> { UniqueI64TableHandle { - imp: self.imp.get_table::("unique_i64"), + imp: self.imp.get_table::("unique_i_64"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI64TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i64`, +/// Access to the `n` unique index on the table `unique_i_64`, /// which allows point queries on the field of the same name /// via the [`UniqueI64NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI64NUnique<'ctx> { } impl<'ctx> UniqueI64TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i64`. + /// Get a handle on the `n` unique index on the table `unique_i_64`. pub fn n(&self) -> UniqueI64NUnique<'ctx> { UniqueI64NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI64NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i64"); + let _table = client_cache.get_or_make_table::("unique_i_64"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i64QueryTableAccess { +pub trait unique_i_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI64`. - fn unique_i64(&self) -> __sdk::__query_builder::Table; + fn unique_i_64(&self) -> __sdk::__query_builder::Table; } -impl unique_i64QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i64") +impl unique_i_64QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs index ed6ba07f2fe..a4a6bef6d5b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_i_8_table.rs @@ -5,7 +5,7 @@ use super::unique_i_8_type::UniqueI8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_i8`. +/// Table handle for the table `unique_i_8`. /// /// Obtain a handle from the [`UniqueI8TableAccess::unique_i_8`] method on [`super::RemoteTables`], /// like `ctx.db.unique_i_8()`. @@ -19,19 +19,19 @@ pub struct UniqueI8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_i8`. +/// Extension trait for access to the table `unique_i_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueI8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueI8TableHandle`], which mediates access to the table `unique_i8`. + /// Obtain a [`UniqueI8TableHandle`], which mediates access to the table `unique_i_8`. fn unique_i_8(&self) -> UniqueI8TableHandle<'_>; } impl UniqueI8TableAccess for super::RemoteTables { fn unique_i_8(&self) -> UniqueI8TableHandle<'_> { UniqueI8TableHandle { - imp: self.imp.get_table::("unique_i8"), + imp: self.imp.get_table::("unique_i_8"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueI8TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_i8`, +/// Access to the `n` unique index on the table `unique_i_8`, /// which allows point queries on the field of the same name /// via the [`UniqueI8NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueI8NUnique<'ctx> { } impl<'ctx> UniqueI8TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_i8`. + /// Get a handle on the `n` unique index on the table `unique_i_8`. pub fn n(&self) -> UniqueI8NUnique<'ctx> { UniqueI8NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueI8NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_i8"); + let _table = client_cache.get_or_make_table::("unique_i_8"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueI8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_i8QueryTableAccess { +pub trait unique_i_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueI8`. - fn unique_i8(&self) -> __sdk::__query_builder::Table; + fn unique_i_8(&self) -> __sdk::__query_builder::Table; } -impl unique_i8QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_i8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_i8") +impl unique_i_8QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_i_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_i_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs index 8a75ea28f5d..4780f357b8b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_128_table.rs @@ -5,7 +5,7 @@ use super::unique_u_128_type::UniqueU128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u128`. +/// Table handle for the table `unique_u_128`. /// /// Obtain a handle from the [`UniqueU128TableAccess::unique_u_128`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_128()`. @@ -19,19 +19,19 @@ pub struct UniqueU128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u128`. +/// Extension trait for access to the table `unique_u_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU128TableHandle`], which mediates access to the table `unique_u128`. + /// Obtain a [`UniqueU128TableHandle`], which mediates access to the table `unique_u_128`. fn unique_u_128(&self) -> UniqueU128TableHandle<'_>; } impl UniqueU128TableAccess for super::RemoteTables { fn unique_u_128(&self) -> UniqueU128TableHandle<'_> { UniqueU128TableHandle { - imp: self.imp.get_table::("unique_u128"), + imp: self.imp.get_table::("unique_u_128"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU128TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u128`, +/// Access to the `n` unique index on the table `unique_u_128`, /// which allows point queries on the field of the same name /// via the [`UniqueU128NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU128NUnique<'ctx> { } impl<'ctx> UniqueU128TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u128`. + /// Get a handle on the `n` unique index on the table `unique_u_128`. pub fn n(&self) -> UniqueU128NUnique<'ctx> { UniqueU128NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU128NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u128"); + let _table = client_cache.get_or_make_table::("unique_u_128"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u128QueryTableAccess { +pub trait unique_u_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU128`. - fn unique_u128(&self) -> __sdk::__query_builder::Table; + fn unique_u_128(&self) -> __sdk::__query_builder::Table; } -impl unique_u128QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u128") +impl unique_u_128QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs index 9cfa0a347ba..f78ed798c9b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_16_table.rs @@ -5,7 +5,7 @@ use super::unique_u_16_type::UniqueU16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u16`. +/// Table handle for the table `unique_u_16`. /// /// Obtain a handle from the [`UniqueU16TableAccess::unique_u_16`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_16()`. @@ -19,19 +19,19 @@ pub struct UniqueU16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u16`. +/// Extension trait for access to the table `unique_u_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU16TableHandle`], which mediates access to the table `unique_u16`. + /// Obtain a [`UniqueU16TableHandle`], which mediates access to the table `unique_u_16`. fn unique_u_16(&self) -> UniqueU16TableHandle<'_>; } impl UniqueU16TableAccess for super::RemoteTables { fn unique_u_16(&self) -> UniqueU16TableHandle<'_> { UniqueU16TableHandle { - imp: self.imp.get_table::("unique_u16"), + imp: self.imp.get_table::("unique_u_16"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU16TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u16`, +/// Access to the `n` unique index on the table `unique_u_16`, /// which allows point queries on the field of the same name /// via the [`UniqueU16NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU16NUnique<'ctx> { } impl<'ctx> UniqueU16TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u16`. + /// Get a handle on the `n` unique index on the table `unique_u_16`. pub fn n(&self) -> UniqueU16NUnique<'ctx> { UniqueU16NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU16NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u16"); + let _table = client_cache.get_or_make_table::("unique_u_16"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u16QueryTableAccess { +pub trait unique_u_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU16`. - fn unique_u16(&self) -> __sdk::__query_builder::Table; + fn unique_u_16(&self) -> __sdk::__query_builder::Table; } -impl unique_u16QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u16") +impl unique_u_16QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs index 788e561b021..289808a8c47 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_256_table.rs @@ -5,7 +5,7 @@ use super::unique_u_256_type::UniqueU256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u256`. +/// Table handle for the table `unique_u_256`. /// /// Obtain a handle from the [`UniqueU256TableAccess::unique_u_256`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_256()`. @@ -19,19 +19,19 @@ pub struct UniqueU256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u256`. +/// Extension trait for access to the table `unique_u_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU256TableHandle`], which mediates access to the table `unique_u256`. + /// Obtain a [`UniqueU256TableHandle`], which mediates access to the table `unique_u_256`. fn unique_u_256(&self) -> UniqueU256TableHandle<'_>; } impl UniqueU256TableAccess for super::RemoteTables { fn unique_u_256(&self) -> UniqueU256TableHandle<'_> { UniqueU256TableHandle { - imp: self.imp.get_table::("unique_u256"), + imp: self.imp.get_table::("unique_u_256"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU256TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u256`, +/// Access to the `n` unique index on the table `unique_u_256`, /// which allows point queries on the field of the same name /// via the [`UniqueU256NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU256NUnique<'ctx> { } impl<'ctx> UniqueU256TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u256`. + /// Get a handle on the `n` unique index on the table `unique_u_256`. pub fn n(&self) -> UniqueU256NUnique<'ctx> { UniqueU256NUnique { imp: self.imp.get_unique_constraint::<__sats::u256>("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU256NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u256"); + let _table = client_cache.get_or_make_table::("unique_u_256"); _table.add_unique_constraint::<__sats::u256>("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u256QueryTableAccess { +pub trait unique_u_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU256`. - fn unique_u256(&self) -> __sdk::__query_builder::Table; + fn unique_u_256(&self) -> __sdk::__query_builder::Table; } -impl unique_u256QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u256") +impl unique_u_256QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs index 07c0825cd16..a07fa51d146 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_32_table.rs @@ -5,7 +5,7 @@ use super::unique_u_32_type::UniqueU32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u32`. +/// Table handle for the table `unique_u_32`. /// /// Obtain a handle from the [`UniqueU32TableAccess::unique_u_32`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_32()`. @@ -19,19 +19,19 @@ pub struct UniqueU32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u32`. +/// Extension trait for access to the table `unique_u_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU32TableHandle`], which mediates access to the table `unique_u32`. + /// Obtain a [`UniqueU32TableHandle`], which mediates access to the table `unique_u_32`. fn unique_u_32(&self) -> UniqueU32TableHandle<'_>; } impl UniqueU32TableAccess for super::RemoteTables { fn unique_u_32(&self) -> UniqueU32TableHandle<'_> { UniqueU32TableHandle { - imp: self.imp.get_table::("unique_u32"), + imp: self.imp.get_table::("unique_u_32"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU32TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u32`, +/// Access to the `n` unique index on the table `unique_u_32`, /// which allows point queries on the field of the same name /// via the [`UniqueU32NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU32NUnique<'ctx> { } impl<'ctx> UniqueU32TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u32`. + /// Get a handle on the `n` unique index on the table `unique_u_32`. pub fn n(&self) -> UniqueU32NUnique<'ctx> { UniqueU32NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU32NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u32"); + let _table = client_cache.get_or_make_table::("unique_u_32"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u32QueryTableAccess { +pub trait unique_u_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU32`. - fn unique_u32(&self) -> __sdk::__query_builder::Table; + fn unique_u_32(&self) -> __sdk::__query_builder::Table; } -impl unique_u32QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u32") +impl unique_u_32QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs index 754067c8f72..032c1032ae9 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_64_table.rs @@ -5,7 +5,7 @@ use super::unique_u_64_type::UniqueU64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u64`. +/// Table handle for the table `unique_u_64`. /// /// Obtain a handle from the [`UniqueU64TableAccess::unique_u_64`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_64()`. @@ -19,19 +19,19 @@ pub struct UniqueU64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u64`. +/// Extension trait for access to the table `unique_u_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU64TableHandle`], which mediates access to the table `unique_u64`. + /// Obtain a [`UniqueU64TableHandle`], which mediates access to the table `unique_u_64`. fn unique_u_64(&self) -> UniqueU64TableHandle<'_>; } impl UniqueU64TableAccess for super::RemoteTables { fn unique_u_64(&self) -> UniqueU64TableHandle<'_> { UniqueU64TableHandle { - imp: self.imp.get_table::("unique_u64"), + imp: self.imp.get_table::("unique_u_64"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU64TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u64`, +/// Access to the `n` unique index on the table `unique_u_64`, /// which allows point queries on the field of the same name /// via the [`UniqueU64NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU64NUnique<'ctx> { } impl<'ctx> UniqueU64TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u64`. + /// Get a handle on the `n` unique index on the table `unique_u_64`. pub fn n(&self) -> UniqueU64NUnique<'ctx> { UniqueU64NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU64NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u64"); + let _table = client_cache.get_or_make_table::("unique_u_64"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u64QueryTableAccess { +pub trait unique_u_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU64`. - fn unique_u64(&self) -> __sdk::__query_builder::Table; + fn unique_u_64(&self) -> __sdk::__query_builder::Table; } -impl unique_u64QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u64") +impl unique_u_64QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs index 7581ffab840..1bceb392864 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/unique_u_8_table.rs @@ -5,7 +5,7 @@ use super::unique_u_8_type::UniqueU8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `unique_u8`. +/// Table handle for the table `unique_u_8`. /// /// Obtain a handle from the [`UniqueU8TableAccess::unique_u_8`] method on [`super::RemoteTables`], /// like `ctx.db.unique_u_8()`. @@ -19,19 +19,19 @@ pub struct UniqueU8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `unique_u8`. +/// Extension trait for access to the table `unique_u_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait UniqueU8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`UniqueU8TableHandle`], which mediates access to the table `unique_u8`. + /// Obtain a [`UniqueU8TableHandle`], which mediates access to the table `unique_u_8`. fn unique_u_8(&self) -> UniqueU8TableHandle<'_>; } impl UniqueU8TableAccess for super::RemoteTables { fn unique_u_8(&self) -> UniqueU8TableHandle<'_> { UniqueU8TableHandle { - imp: self.imp.get_table::("unique_u8"), + imp: self.imp.get_table::("unique_u_8"), ctx: std::marker::PhantomData, } } @@ -78,7 +78,7 @@ impl<'ctx> __sdk::Table for UniqueU8TableHandle<'ctx> { } } -/// Access to the `n` unique index on the table `unique_u8`, +/// Access to the `n` unique index on the table `unique_u_8`, /// which allows point queries on the field of the same name /// via the [`UniqueU8NUnique::find`] method. /// @@ -91,7 +91,7 @@ pub struct UniqueU8NUnique<'ctx> { } impl<'ctx> UniqueU8TableHandle<'ctx> { - /// Get a handle on the `n` unique index on the table `unique_u8`. + /// Get a handle on the `n` unique index on the table `unique_u_8`. pub fn n(&self) -> UniqueU8NUnique<'ctx> { UniqueU8NUnique { imp: self.imp.get_unique_constraint::("n"), @@ -110,7 +110,7 @@ impl<'ctx> UniqueU8NUnique<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("unique_u8"); + let _table = client_cache.get_or_make_table::("unique_u_8"); _table.add_unique_constraint::("n", |row| &row.n); } @@ -127,14 +127,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `UniqueU8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait unique_u8QueryTableAccess { +pub trait unique_u_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `UniqueU8`. - fn unique_u8(&self) -> __sdk::__query_builder::Table; + fn unique_u_8(&self) -> __sdk::__query_builder::Table; } -impl unique_u8QueryTableAccess for __sdk::QueryTableAccessor { - fn unique_u8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("unique_u8") +impl unique_u_8QueryTableAccess for __sdk::QueryTableAccessor { + fn unique_u_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("unique_u_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_128_reducer.rs index 28fe8b0835e..1e8e2535e90 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i128`. +/// Extension trait for access to the reducer `update_pk_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_128 { - /// Request that the remote module invoke the reducer `update_pk_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_128 { self.update_pk_i_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_16_reducer.rs index 0e76980fa47..ae461fb747e 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i16`. +/// Extension trait for access to the reducer `update_pk_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_16 { - /// Request that the remote module invoke the reducer `update_pk_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_16 { self.update_pk_i_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_256_reducer.rs index a16314435c7..ef356225f9a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i256`. +/// Extension trait for access to the reducer `update_pk_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_256 { - /// Request that the remote module invoke the reducer `update_pk_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_256 { self.update_pk_i_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_32_reducer.rs index 82799d8aa43..1066832f11b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i32`. +/// Extension trait for access to the reducer `update_pk_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_32 { - /// Request that the remote module invoke the reducer `update_pk_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_32 { self.update_pk_i_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_64_reducer.rs index e15674e99f6..660cd6e11b7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i64`. +/// Extension trait for access to the reducer `update_pk_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_64 { - /// Request that the remote module invoke the reducer `update_pk_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_64 { self.update_pk_i_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_8_reducer.rs index 8ae0bd69ab7..b5337123863 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_i_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_i8`. +/// Extension trait for access to the reducer `update_pk_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_i_8 { - /// Request that the remote module invoke the reducer `update_pk_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_i_8 { self.update_pk_i_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_128_reducer.rs index 806de32d2ba..c8a740af000 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u128`. +/// Extension trait for access to the reducer `update_pk_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_128 { - /// Request that the remote module invoke the reducer `update_pk_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_128 { self.update_pk_u_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_16_reducer.rs index bde9d958c1c..cac9ebcd8b7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u16`. +/// Extension trait for access to the reducer `update_pk_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_16 { - /// Request that the remote module invoke the reducer `update_pk_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_16 { self.update_pk_u_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_256_reducer.rs index e791d6840e4..194132c02a6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u256`. +/// Extension trait for access to the reducer `update_pk_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_256 { - /// Request that the remote module invoke the reducer `update_pk_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_256 { self.update_pk_u_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_reducer.rs index 134e93f2612..6f29d4e1b7f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u32`. +/// Extension trait for access to the reducer `update_pk_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_32 { - /// Request that the remote module invoke the reducer `update_pk_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_32 { self.update_pk_u_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_two_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_two_reducer.rs index 0ff26c64949..f7d2a868892 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_two_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_32_two_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU32TwoArgs { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u32_two`. +/// Extension trait for access to the reducer `update_pk_u_32_two`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_32_two { - /// Request that the remote module invoke the reducer `update_pk_u32_two` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_32_two` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_32_two { self.update_pk_u_32_two_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u32_two` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_32_two` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_64_reducer.rs index 70c0db34a7e..f0765b6ba76 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u64`. +/// Extension trait for access to the reducer `update_pk_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_64 { - /// Request that the remote module invoke the reducer `update_pk_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_64 { self.update_pk_u_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_8_reducer.rs index cf3ca211296..5f878f520ec 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_pk_u_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdatePkU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_pk_u8`. +/// Extension trait for access to the reducer `update_pk_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_pk_u_8 { - /// Request that the remote module invoke the reducer `update_pk_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_pk_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_pk_u_8 { self.update_pk_u_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_pk_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_pk_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_128_reducer.rs index eb4c150ab1f..9d5e0a18022 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i128`. +/// Extension trait for access to the reducer `update_unique_i_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_128 { - /// Request that the remote module invoke the reducer `update_unique_i128` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_128 { self.update_unique_i_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i128` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_16_reducer.rs index 4db8228a4e9..efa868e5e81 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i16`. +/// Extension trait for access to the reducer `update_unique_i_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_16 { - /// Request that the remote module invoke the reducer `update_unique_i16` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_16 { self.update_unique_i_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i16` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_256_reducer.rs index de9478449c0..3cb6e0a84bf 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i256`. +/// Extension trait for access to the reducer `update_unique_i_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_256 { - /// Request that the remote module invoke the reducer `update_unique_i256` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_256 { self.update_unique_i_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i256` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_32_reducer.rs index ae59bc4626a..dd026538797 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i32`. +/// Extension trait for access to the reducer `update_unique_i_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_32 { - /// Request that the remote module invoke the reducer `update_unique_i32` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_32 { self.update_unique_i_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i32` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_64_reducer.rs index c42db8e2538..5c76ec62b89 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i64`. +/// Extension trait for access to the reducer `update_unique_i_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_64 { - /// Request that the remote module invoke the reducer `update_unique_i64` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_64 { self.update_unique_i_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i64` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_8_reducer.rs index db0c34e020d..83b9ca8ef7f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_i_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueI8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_i8`. +/// Extension trait for access to the reducer `update_unique_i_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_i_8 { - /// Request that the remote module invoke the reducer `update_unique_i8` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_i_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_i_8 { self.update_unique_i_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_i8` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_i_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_128_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_128_reducer.rs index 03b2d2fb75d..a43c5fc1cca 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_128_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_128_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU128Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u128`. +/// Extension trait for access to the reducer `update_unique_u_128`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_128 { - /// Request that the remote module invoke the reducer `update_unique_u128` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_128` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_128 { self.update_unique_u_128_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u128` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_128` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_16_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_16_reducer.rs index 454836ca6d5..ebaa1954361 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_16_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_16_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU16Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u16`. +/// Extension trait for access to the reducer `update_unique_u_16`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_16 { - /// Request that the remote module invoke the reducer `update_unique_u16` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_16` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_16 { self.update_unique_u_16_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u16` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_16` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_256_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_256_reducer.rs index 4e0bd4dbfac..5dcea25d29a 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_256_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_256_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU256Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u256`. +/// Extension trait for access to the reducer `update_unique_u_256`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_256 { - /// Request that the remote module invoke the reducer `update_unique_u256` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_256` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_256 { self.update_unique_u_256_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u256` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_256` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_32_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_32_reducer.rs index dd21c16b274..0c18ef1fcb5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_32_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_32_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU32Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u32`. +/// Extension trait for access to the reducer `update_unique_u_32`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_32 { - /// Request that the remote module invoke the reducer `update_unique_u32` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_32` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_32 { self.update_unique_u_32_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u32` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_32` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_64_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_64_reducer.rs index 28638874e3d..65ba07be372 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_64_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_64_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU64Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u64`. +/// Extension trait for access to the reducer `update_unique_u_64`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_64 { - /// Request that the remote module invoke the reducer `update_unique_u64` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_64` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_64 { self.update_unique_u_64_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u64` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_64` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_8_reducer.rs b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_8_reducer.rs index f599906959c..fde01c71114 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_8_reducer.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/update_unique_u_8_reducer.rs @@ -25,11 +25,11 @@ impl __sdk::InModule for UpdateUniqueU8Args { } #[allow(non_camel_case_types)] -/// Extension trait for access to the reducer `update_unique_u8`. +/// Extension trait for access to the reducer `update_unique_u_8`. /// /// Implemented for [`super::RemoteReducers`]. pub trait update_unique_u_8 { - /// Request that the remote module invoke the reducer `update_unique_u8` to run as soon as possible. + /// Request that the remote module invoke the reducer `update_unique_u_8` to run as soon as possible. /// /// This method returns immediately, and errors only if we are unable to send the request. /// The reducer will run asynchronously in the future, @@ -39,7 +39,7 @@ pub trait update_unique_u_8 { self.update_unique_u_8_then(n, data, |_, _| {}) } - /// Request that the remote module invoke the reducer `update_unique_u8` to run as soon as possible, + /// Request that the remote module invoke the reducer `update_unique_u_8` to run as soon as possible, /// registering `callback` to run when we are notified that the reducer completed. /// /// This method returns immediately, and errors only if we are unable to send the request. diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs index 32d2e642365..470119b3a7f 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_f_32_table.rs @@ -5,7 +5,7 @@ use super::vec_f_32_type::VecF32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_f32`. +/// Table handle for the table `vec_f_32`. /// /// Obtain a handle from the [`VecF32TableAccess::vec_f_32`] method on [`super::RemoteTables`], /// like `ctx.db.vec_f_32()`. @@ -19,19 +19,19 @@ pub struct VecF32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_f32`. +/// Extension trait for access to the table `vec_f_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecF32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecF32TableHandle`], which mediates access to the table `vec_f32`. + /// Obtain a [`VecF32TableHandle`], which mediates access to the table `vec_f_32`. fn vec_f_32(&self) -> VecF32TableHandle<'_>; } impl VecF32TableAccess for super::RemoteTables { fn vec_f_32(&self) -> VecF32TableHandle<'_> { VecF32TableHandle { - imp: self.imp.get_table::("vec_f32"), + imp: self.imp.get_table::("vec_f_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecF32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_f32"); + let _table = client_cache.get_or_make_table::("vec_f_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecF32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_f32QueryTableAccess { +pub trait vec_f_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecF32`. - fn vec_f32(&self) -> __sdk::__query_builder::Table; + fn vec_f_32(&self) -> __sdk::__query_builder::Table; } -impl vec_f32QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_f32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_f32") +impl vec_f_32QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_f_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_f_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs index ac573fa2551..f1d6ff21724 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_f_64_table.rs @@ -5,7 +5,7 @@ use super::vec_f_64_type::VecF64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_f64`. +/// Table handle for the table `vec_f_64`. /// /// Obtain a handle from the [`VecF64TableAccess::vec_f_64`] method on [`super::RemoteTables`], /// like `ctx.db.vec_f_64()`. @@ -19,19 +19,19 @@ pub struct VecF64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_f64`. +/// Extension trait for access to the table `vec_f_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecF64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecF64TableHandle`], which mediates access to the table `vec_f64`. + /// Obtain a [`VecF64TableHandle`], which mediates access to the table `vec_f_64`. fn vec_f_64(&self) -> VecF64TableHandle<'_>; } impl VecF64TableAccess for super::RemoteTables { fn vec_f_64(&self) -> VecF64TableHandle<'_> { VecF64TableHandle { - imp: self.imp.get_table::("vec_f64"), + imp: self.imp.get_table::("vec_f_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecF64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_f64"); + let _table = client_cache.get_or_make_table::("vec_f_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecF64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_f64QueryTableAccess { +pub trait vec_f_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecF64`. - fn vec_f64(&self) -> __sdk::__query_builder::Table; + fn vec_f_64(&self) -> __sdk::__query_builder::Table; } -impl vec_f64QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_f64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_f64") +impl vec_f_64QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_f_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_f_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs index c6c6c645354..110c759278b 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_128_table.rs @@ -5,7 +5,7 @@ use super::vec_i_128_type::VecI128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i128`. +/// Table handle for the table `vec_i_128`. /// /// Obtain a handle from the [`VecI128TableAccess::vec_i_128`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_128()`. @@ -19,19 +19,19 @@ pub struct VecI128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i128`. +/// Extension trait for access to the table `vec_i_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI128TableHandle`], which mediates access to the table `vec_i128`. + /// Obtain a [`VecI128TableHandle`], which mediates access to the table `vec_i_128`. fn vec_i_128(&self) -> VecI128TableHandle<'_>; } impl VecI128TableAccess for super::RemoteTables { fn vec_i_128(&self) -> VecI128TableHandle<'_> { VecI128TableHandle { - imp: self.imp.get_table::("vec_i128"), + imp: self.imp.get_table::("vec_i_128"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI128TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i128"); + let _table = client_cache.get_or_make_table::("vec_i_128"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i128QueryTableAccess { +pub trait vec_i_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI128`. - fn vec_i128(&self) -> __sdk::__query_builder::Table; + fn vec_i_128(&self) -> __sdk::__query_builder::Table; } -impl vec_i128QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i128") +impl vec_i_128QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs index 7d95a345423..76104d0df08 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_16_table.rs @@ -5,7 +5,7 @@ use super::vec_i_16_type::VecI16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i16`. +/// Table handle for the table `vec_i_16`. /// /// Obtain a handle from the [`VecI16TableAccess::vec_i_16`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_16()`. @@ -19,19 +19,19 @@ pub struct VecI16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i16`. +/// Extension trait for access to the table `vec_i_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI16TableHandle`], which mediates access to the table `vec_i16`. + /// Obtain a [`VecI16TableHandle`], which mediates access to the table `vec_i_16`. fn vec_i_16(&self) -> VecI16TableHandle<'_>; } impl VecI16TableAccess for super::RemoteTables { fn vec_i_16(&self) -> VecI16TableHandle<'_> { VecI16TableHandle { - imp: self.imp.get_table::("vec_i16"), + imp: self.imp.get_table::("vec_i_16"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI16TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i16"); + let _table = client_cache.get_or_make_table::("vec_i_16"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i16QueryTableAccess { +pub trait vec_i_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI16`. - fn vec_i16(&self) -> __sdk::__query_builder::Table; + fn vec_i_16(&self) -> __sdk::__query_builder::Table; } -impl vec_i16QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i16") +impl vec_i_16QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs index 48bd2e7ffc4..93b66ec77e7 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_256_table.rs @@ -5,7 +5,7 @@ use super::vec_i_256_type::VecI256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i256`. +/// Table handle for the table `vec_i_256`. /// /// Obtain a handle from the [`VecI256TableAccess::vec_i_256`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_256()`. @@ -19,19 +19,19 @@ pub struct VecI256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i256`. +/// Extension trait for access to the table `vec_i_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI256TableHandle`], which mediates access to the table `vec_i256`. + /// Obtain a [`VecI256TableHandle`], which mediates access to the table `vec_i_256`. fn vec_i_256(&self) -> VecI256TableHandle<'_>; } impl VecI256TableAccess for super::RemoteTables { fn vec_i_256(&self) -> VecI256TableHandle<'_> { VecI256TableHandle { - imp: self.imp.get_table::("vec_i256"), + imp: self.imp.get_table::("vec_i_256"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI256TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i256"); + let _table = client_cache.get_or_make_table::("vec_i_256"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i256QueryTableAccess { +pub trait vec_i_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI256`. - fn vec_i256(&self) -> __sdk::__query_builder::Table; + fn vec_i_256(&self) -> __sdk::__query_builder::Table; } -impl vec_i256QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i256") +impl vec_i_256QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs index da6b9a4b1ce..7adc5dedcb6 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_32_table.rs @@ -5,7 +5,7 @@ use super::vec_i_32_type::VecI32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i32`. +/// Table handle for the table `vec_i_32`. /// /// Obtain a handle from the [`VecI32TableAccess::vec_i_32`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_32()`. @@ -19,19 +19,19 @@ pub struct VecI32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i32`. +/// Extension trait for access to the table `vec_i_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI32TableHandle`], which mediates access to the table `vec_i32`. + /// Obtain a [`VecI32TableHandle`], which mediates access to the table `vec_i_32`. fn vec_i_32(&self) -> VecI32TableHandle<'_>; } impl VecI32TableAccess for super::RemoteTables { fn vec_i_32(&self) -> VecI32TableHandle<'_> { VecI32TableHandle { - imp: self.imp.get_table::("vec_i32"), + imp: self.imp.get_table::("vec_i_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i32"); + let _table = client_cache.get_or_make_table::("vec_i_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i32QueryTableAccess { +pub trait vec_i_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI32`. - fn vec_i32(&self) -> __sdk::__query_builder::Table; + fn vec_i_32(&self) -> __sdk::__query_builder::Table; } -impl vec_i32QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i32") +impl vec_i_32QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs index c3215593093..c1c3d9fe6d4 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_64_table.rs @@ -5,7 +5,7 @@ use super::vec_i_64_type::VecI64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i64`. +/// Table handle for the table `vec_i_64`. /// /// Obtain a handle from the [`VecI64TableAccess::vec_i_64`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_64()`. @@ -19,19 +19,19 @@ pub struct VecI64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i64`. +/// Extension trait for access to the table `vec_i_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI64TableHandle`], which mediates access to the table `vec_i64`. + /// Obtain a [`VecI64TableHandle`], which mediates access to the table `vec_i_64`. fn vec_i_64(&self) -> VecI64TableHandle<'_>; } impl VecI64TableAccess for super::RemoteTables { fn vec_i_64(&self) -> VecI64TableHandle<'_> { VecI64TableHandle { - imp: self.imp.get_table::("vec_i64"), + imp: self.imp.get_table::("vec_i_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i64"); + let _table = client_cache.get_or_make_table::("vec_i_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i64QueryTableAccess { +pub trait vec_i_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI64`. - fn vec_i64(&self) -> __sdk::__query_builder::Table; + fn vec_i_64(&self) -> __sdk::__query_builder::Table; } -impl vec_i64QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i64") +impl vec_i_64QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs index fc82b4f26d7..4485c46b9bf 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_i_8_table.rs @@ -5,7 +5,7 @@ use super::vec_i_8_type::VecI8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_i8`. +/// Table handle for the table `vec_i_8`. /// /// Obtain a handle from the [`VecI8TableAccess::vec_i_8`] method on [`super::RemoteTables`], /// like `ctx.db.vec_i_8()`. @@ -19,19 +19,19 @@ pub struct VecI8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_i8`. +/// Extension trait for access to the table `vec_i_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecI8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecI8TableHandle`], which mediates access to the table `vec_i8`. + /// Obtain a [`VecI8TableHandle`], which mediates access to the table `vec_i_8`. fn vec_i_8(&self) -> VecI8TableHandle<'_>; } impl VecI8TableAccess for super::RemoteTables { fn vec_i_8(&self) -> VecI8TableHandle<'_> { VecI8TableHandle { - imp: self.imp.get_table::("vec_i8"), + imp: self.imp.get_table::("vec_i_8"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecI8TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_i8"); + let _table = client_cache.get_or_make_table::("vec_i_8"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecI8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_i8QueryTableAccess { +pub trait vec_i_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecI8`. - fn vec_i8(&self) -> __sdk::__query_builder::Table; + fn vec_i_8(&self) -> __sdk::__query_builder::Table; } -impl vec_i8QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_i8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_i8") +impl vec_i_8QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_i_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_i_8") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs index 68c23c82a57..8f96d7434eb 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_128_table.rs @@ -5,7 +5,7 @@ use super::vec_u_128_type::VecU128; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u128`. +/// Table handle for the table `vec_u_128`. /// /// Obtain a handle from the [`VecU128TableAccess::vec_u_128`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_128()`. @@ -19,19 +19,19 @@ pub struct VecU128TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u128`. +/// Extension trait for access to the table `vec_u_128`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU128TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU128TableHandle`], which mediates access to the table `vec_u128`. + /// Obtain a [`VecU128TableHandle`], which mediates access to the table `vec_u_128`. fn vec_u_128(&self) -> VecU128TableHandle<'_>; } impl VecU128TableAccess for super::RemoteTables { fn vec_u_128(&self) -> VecU128TableHandle<'_> { VecU128TableHandle { - imp: self.imp.get_table::("vec_u128"), + imp: self.imp.get_table::("vec_u_128"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU128TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u128"); + let _table = client_cache.get_or_make_table::("vec_u_128"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU128`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u128QueryTableAccess { +pub trait vec_u_128QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU128`. - fn vec_u128(&self) -> __sdk::__query_builder::Table; + fn vec_u_128(&self) -> __sdk::__query_builder::Table; } -impl vec_u128QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u128(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u128") +impl vec_u_128QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_128(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_128") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs index 23aeb6fffc8..2cf50b8b026 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_16_table.rs @@ -5,7 +5,7 @@ use super::vec_u_16_type::VecU16; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u16`. +/// Table handle for the table `vec_u_16`. /// /// Obtain a handle from the [`VecU16TableAccess::vec_u_16`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_16()`. @@ -19,19 +19,19 @@ pub struct VecU16TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u16`. +/// Extension trait for access to the table `vec_u_16`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU16TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU16TableHandle`], which mediates access to the table `vec_u16`. + /// Obtain a [`VecU16TableHandle`], which mediates access to the table `vec_u_16`. fn vec_u_16(&self) -> VecU16TableHandle<'_>; } impl VecU16TableAccess for super::RemoteTables { fn vec_u_16(&self) -> VecU16TableHandle<'_> { VecU16TableHandle { - imp: self.imp.get_table::("vec_u16"), + imp: self.imp.get_table::("vec_u_16"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU16TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u16"); + let _table = client_cache.get_or_make_table::("vec_u_16"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU16`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u16QueryTableAccess { +pub trait vec_u_16QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU16`. - fn vec_u16(&self) -> __sdk::__query_builder::Table; + fn vec_u_16(&self) -> __sdk::__query_builder::Table; } -impl vec_u16QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u16(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u16") +impl vec_u_16QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_16(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_16") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs index 4b1ddc07853..2f3c13a0450 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_256_table.rs @@ -5,7 +5,7 @@ use super::vec_u_256_type::VecU256; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u256`. +/// Table handle for the table `vec_u_256`. /// /// Obtain a handle from the [`VecU256TableAccess::vec_u_256`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_256()`. @@ -19,19 +19,19 @@ pub struct VecU256TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u256`. +/// Extension trait for access to the table `vec_u_256`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU256TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU256TableHandle`], which mediates access to the table `vec_u256`. + /// Obtain a [`VecU256TableHandle`], which mediates access to the table `vec_u_256`. fn vec_u_256(&self) -> VecU256TableHandle<'_>; } impl VecU256TableAccess for super::RemoteTables { fn vec_u_256(&self) -> VecU256TableHandle<'_> { VecU256TableHandle { - imp: self.imp.get_table::("vec_u256"), + imp: self.imp.get_table::("vec_u_256"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU256TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u256"); + let _table = client_cache.get_or_make_table::("vec_u_256"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU256`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u256QueryTableAccess { +pub trait vec_u_256QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU256`. - fn vec_u256(&self) -> __sdk::__query_builder::Table; + fn vec_u_256(&self) -> __sdk::__query_builder::Table; } -impl vec_u256QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u256(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u256") +impl vec_u_256QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_256(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_256") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs index 47f8aa32c4c..04fc2d0925c 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_32_table.rs @@ -5,7 +5,7 @@ use super::vec_u_32_type::VecU32; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u32`. +/// Table handle for the table `vec_u_32`. /// /// Obtain a handle from the [`VecU32TableAccess::vec_u_32`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_32()`. @@ -19,19 +19,19 @@ pub struct VecU32TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u32`. +/// Extension trait for access to the table `vec_u_32`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU32TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU32TableHandle`], which mediates access to the table `vec_u32`. + /// Obtain a [`VecU32TableHandle`], which mediates access to the table `vec_u_32`. fn vec_u_32(&self) -> VecU32TableHandle<'_>; } impl VecU32TableAccess for super::RemoteTables { fn vec_u_32(&self) -> VecU32TableHandle<'_> { VecU32TableHandle { - imp: self.imp.get_table::("vec_u32"), + imp: self.imp.get_table::("vec_u_32"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU32TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u32"); + let _table = client_cache.get_or_make_table::("vec_u_32"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU32`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u32QueryTableAccess { +pub trait vec_u_32QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU32`. - fn vec_u32(&self) -> __sdk::__query_builder::Table; + fn vec_u_32(&self) -> __sdk::__query_builder::Table; } -impl vec_u32QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u32(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u32") +impl vec_u_32QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_32(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_32") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs index 83bf117b4a4..cfc64e363d5 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_64_table.rs @@ -5,7 +5,7 @@ use super::vec_u_64_type::VecU64; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u64`. +/// Table handle for the table `vec_u_64`. /// /// Obtain a handle from the [`VecU64TableAccess::vec_u_64`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_64()`. @@ -19,19 +19,19 @@ pub struct VecU64TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u64`. +/// Extension trait for access to the table `vec_u_64`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU64TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU64TableHandle`], which mediates access to the table `vec_u64`. + /// Obtain a [`VecU64TableHandle`], which mediates access to the table `vec_u_64`. fn vec_u_64(&self) -> VecU64TableHandle<'_>; } impl VecU64TableAccess for super::RemoteTables { fn vec_u_64(&self) -> VecU64TableHandle<'_> { VecU64TableHandle { - imp: self.imp.get_table::("vec_u64"), + imp: self.imp.get_table::("vec_u_64"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU64TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u64"); + let _table = client_cache.get_or_make_table::("vec_u_64"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU64`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u64QueryTableAccess { +pub trait vec_u_64QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU64`. - fn vec_u64(&self) -> __sdk::__query_builder::Table; + fn vec_u_64(&self) -> __sdk::__query_builder::Table; } -impl vec_u64QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u64(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u64") +impl vec_u_64QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_64(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_64") } } diff --git a/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs b/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs index 3e6de574b4d..140444f92ed 100644 --- a/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs +++ b/sdks/rust/tests/test-client/src/module_bindings/vec_u_8_table.rs @@ -5,7 +5,7 @@ use super::vec_u_8_type::VecU8; use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; -/// Table handle for the table `vec_u8`. +/// Table handle for the table `vec_u_8`. /// /// Obtain a handle from the [`VecU8TableAccess::vec_u_8`] method on [`super::RemoteTables`], /// like `ctx.db.vec_u_8()`. @@ -19,19 +19,19 @@ pub struct VecU8TableHandle<'ctx> { } #[allow(non_camel_case_types)] -/// Extension trait for access to the table `vec_u8`. +/// Extension trait for access to the table `vec_u_8`. /// /// Implemented for [`super::RemoteTables`]. pub trait VecU8TableAccess { #[allow(non_snake_case)] - /// Obtain a [`VecU8TableHandle`], which mediates access to the table `vec_u8`. + /// Obtain a [`VecU8TableHandle`], which mediates access to the table `vec_u_8`. fn vec_u_8(&self) -> VecU8TableHandle<'_>; } impl VecU8TableAccess for super::RemoteTables { fn vec_u_8(&self) -> VecU8TableHandle<'_> { VecU8TableHandle { - imp: self.imp.get_table::("vec_u8"), + imp: self.imp.get_table::("vec_u_8"), ctx: std::marker::PhantomData, } } @@ -80,7 +80,7 @@ impl<'ctx> __sdk::Table for VecU8TableHandle<'ctx> { #[doc(hidden)] pub(super) fn register_table(client_cache: &mut __sdk::ClientCache) { - let _table = client_cache.get_or_make_table::("vec_u8"); + let _table = client_cache.get_or_make_table::("vec_u_8"); } #[doc(hidden)] @@ -96,14 +96,14 @@ pub(super) fn parse_table_update(raw_updates: __ws::v2::TableUpdate) -> __sdk::R /// Extension trait for query builder access to the table `VecU8`. /// /// Implemented for [`__sdk::QueryTableAccessor`]. -pub trait vec_u8QueryTableAccess { +pub trait vec_u_8QueryTableAccess { #[allow(non_snake_case)] /// Get a query builder for the table `VecU8`. - fn vec_u8(&self) -> __sdk::__query_builder::Table; + fn vec_u_8(&self) -> __sdk::__query_builder::Table; } -impl vec_u8QueryTableAccess for __sdk::QueryTableAccessor { - fn vec_u8(&self) -> __sdk::__query_builder::Table { - __sdk::__query_builder::Table::new("vec_u8") +impl vec_u_8QueryTableAccess for __sdk::QueryTableAccessor { + fn vec_u_8(&self) -> __sdk::__query_builder::Table { + __sdk::__query_builder::Table::new("vec_u_8") } } diff --git a/sdks/rust/tests/test-counter/src/lib.rs b/sdks/rust/tests/test-counter/src/lib.rs index 8f74323ef62..3eb8eb2f305 100644 --- a/sdks/rust/tests/test-counter/src/lib.rs +++ b/sdks/rust/tests/test-counter/src/lib.rs @@ -6,7 +6,7 @@ use std::{ time::Duration, }; -const TEST_TIMEOUT_SECS: u64 = 2 * 60; +const TEST_TIMEOUT_SECS: u64 = 5 * 60; #[derive(Default)] struct TestCounterInner { diff --git a/sdks/rust/tests/test.rs b/sdks/rust/tests/test.rs index d6c5cac38ae..a430382c841 100644 --- a/sdks/rust/tests/test.rs +++ b/sdks/rust/tests/test.rs @@ -314,7 +314,7 @@ declare_tests_with_suffix!(rust, ""); declare_tests_with_suffix!(typescript, "-ts"); // TODO: migrate csharp to snake_case table names declare_tests_with_suffix!(csharp, "-cs"); -declare_tests_with_suffix!(cpp, "-cpp"); +//declare_tests_with_suffix!(cpp, "-cpp"); /// Tests of event table functionality, using <./event-table-client> and <../../../modules/sdk-test>. /// @@ -425,7 +425,7 @@ macro_rules! procedure_tests { procedure_tests!(rust_procedures, ""); procedure_tests!(typescript_procedures, "-ts"); -procedure_tests!(cpp_procedures, "-cpp"); +//procedure_tests!(cpp_procedures, "-cpp"); macro_rules! view_tests { ($mod_name:ident, $suffix:literal) => { @@ -487,4 +487,4 @@ macro_rules! view_tests { } view_tests!(rust_view, ""); -view_tests!(cpp_view, "-cpp"); +//view_tests!(cpp_view, "-cpp"); diff --git a/sdks/rust/tests/view-client/src/module_bindings/mod.rs b/sdks/rust/tests/view-client/src/module_bindings/mod.rs index 3af09da01cb..48c5151eee9 100644 --- a/sdks/rust/tests/view-client/src/module_bindings/mod.rs +++ b/sdks/rust/tests/view-client/src/module_bindings/mod.rs @@ -1,7 +1,7 @@ // 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 cli version 2.0.0 (commit 9e0e81a6aaec6bf3619cfb9f7916743d86ab7ffc). +// This was generated using spacetimedb cli version 2.0.0 (commit e528393902d8cc982769e3b1a0f250d7d53edfa1). #![allow(unused, clippy::all)] use spacetimedb_sdk::__codegen::{self as __sdk, __lib, __sats, __ws}; diff --git a/sdks/unreal/tests/TestClient/Source/TestClient/Private/Tests/SpacetimeFullClientTests.cpp b/sdks/unreal/tests/TestClient/Source/TestClient/Private/Tests/SpacetimeFullClientTests.cpp index 2f9859605d5..4d201baeee3 100644 --- a/sdks/unreal/tests/TestClient/Source/TestClient/Private/Tests/SpacetimeFullClientTests.cpp +++ b/sdks/unreal/tests/TestClient/Source/TestClient/Private/Tests/SpacetimeFullClientTests.cpp @@ -162,7 +162,7 @@ bool FSubscribeAndCancelTest::RunTest(const FString &Parameters) FOnSubscriptionApplied AppliedDelegate; BIND_DELEGATE_SAFE(AppliedDelegate, Helper, UTestHelperDelegates, HandleSubscriptionApplied); FOnSubscriptionError ErrorDelegate; BIND_DELEGATE_SAFE(ErrorDelegate, Helper, UTestHelperDelegates, HandleSubscriptionError); - USubscriptionHandle* Handle = Conn->SubscriptionBuilder()->OnApplied(AppliedDelegate)->OnError(ErrorDelegate)->Subscribe({ TEXT("SELECT * FROM one_u8;") }); + USubscriptionHandle* Handle = Conn->SubscriptionBuilder()->OnApplied(AppliedDelegate)->OnError(ErrorDelegate)->Subscribe({ TEXT("SELECT * FROM one_u_8;") }); UTestHelperDelegates* EndHelper = NewObject(); EndHelper->AddToRoot(); @@ -262,7 +262,7 @@ bool FSubscribeAndUnsubscribeTest::RunTest(const FString &Parameters) FOnSubscriptionError ErrorDelegate; BIND_DELEGATE_SAFE(ErrorDelegate, State->Helper, UTestHelperDelegates, HandleSubscriptionError); // The handle is now stored in the state struct. - State->Handle = Conn->SubscriptionBuilder()->OnApplied(AppliedDelegate)->OnError(ErrorDelegate)->Subscribe({ TEXT("SELECT * FROM one_u8;") }); }); + State->Handle = Conn->SubscriptionBuilder()->OnApplied(AppliedDelegate)->OnError(ErrorDelegate)->Subscribe({ TEXT("SELECT * FROM one_u_8;") }); }); ADD_LATENT_AUTOMATION_COMMAND(FWaitForTestCounter(*this, TestName, Counter, FPlatformTime::Seconds())); return true; @@ -1956,8 +1956,8 @@ bool FRowDeduplicationJoinRAndSTest::RunTest(const FString &Parameters) Conn->Db->UniqueU32->OnDelete.AddDynamic(Handler, &URowDeduplicationJoinHandler::OnDeleteUniqueU32); TArray Queries = { - TEXT("SELECT * FROM pk_u32;"), - TEXT("SELECT unique_u32.* FROM unique_u32 JOIN pk_u32 ON unique_u32.n = pk_u32.n;") + TEXT("SELECT * FROM pk_u_32;"), + TEXT("SELECT unique_u_32.* FROM unique_u_32 JOIN pk_u_32 ON unique_u_32.n = pk_u_32.n;") }; SubscribeTheseThen(Conn, Queries, [Handler](FSubscriptionEventContext Ctx) diff --git a/smoketests/tests/add_remove_index.py b/smoketests/tests/add_remove_index.py index 1848b163a7d..6d06b8a2d54 100644 --- a/smoketests/tests/add_remove_index.py +++ b/smoketests/tests/add_remove_index.py @@ -45,7 +45,7 @@ class AddRemoveIndex(Smoketest): } """ - JOIN_QUERY = "select t1.* from t1 join t2 on t1.id = t2.id where t2.id = 1001" + JOIN_QUERY = "select t_1.* from t_1 join t_2 on t_1.id = t_2.id where t_2.id = 1001" def between_publishes(self): """ diff --git a/smoketests/tests/auto_inc.py b/smoketests/tests/auto_inc.py index 8882c1c5dee..6e243d3e432 100644 --- a/smoketests/tests/auto_inc.py +++ b/smoketests/tests/auto_inc.py @@ -1,3 +1,4 @@ + from .. import Smoketest import string import functools @@ -5,6 +6,12 @@ ints = "u8", "u16", "u32", "u64", "u128", "i8", "i16", "i32", "i64", "i128" + +def reducer_name(int_ty: str) -> str: + # Convert "u8" -> "u_8", "i128" -> "i_128" + return f"{int_ty[0]}_{int_ty[1:]}" + + class IntTests: make_func = lambda int_ty: lambda self: self.do_test_autoinc(int_ty) for int_ty in ints: @@ -12,7 +19,6 @@ class IntTests: del int_ty, make_func - autoinc1_template = string.Template(""" #[spacetimedb::table(accessor = person_$KEY_TY)] pub struct Person_$KEY_TY { @@ -22,13 +28,13 @@ class IntTests: } #[spacetimedb::reducer] -pub fn add_$KEY_TY(ctx: &ReducerContext, name: String, expected_value: $KEY_TY) { +pub fn add_$REDUCER_TY(ctx: &ReducerContext, name: String, expected_value: $KEY_TY) { let value = ctx.db.person_$KEY_TY().insert(Person_$KEY_TY { key_col: 0, name }); assert_eq!(value.key_col, expected_value); } #[spacetimedb::reducer] -pub fn say_hello_$KEY_TY(ctx: &ReducerContext) { +pub fn say_hello_$REDUCER_TY(ctx: &ReducerContext) { for person in ctx.db.person_$KEY_TY().iter() { log::info!("Hello, {}:{}!", person.key_col, person.name); } @@ -37,21 +43,27 @@ class IntTests: """) - class AutoincBasic(IntTests, Smoketest): "This tests the auto_inc functionality" MODULE_CODE = f""" #![allow(non_camel_case_types)] use spacetimedb::{{log, ReducerContext, Table}}; -{"".join(autoinc1_template.substitute(KEY_TY=int_ty) for int_ty in ints)} +{"".join( + autoinc1_template.substitute( + KEY_TY=int_ty, + REDUCER_TY=reducer_name(int_ty), + ) + for int_ty in ints +)} """ def do_test_autoinc(self, int_ty): - self.call(f"add_{int_ty}", "Robert", 1) - self.call(f"add_{int_ty}", "Julie", 2) - self.call(f"add_{int_ty}", "Samantha", 3) - self.call(f"say_hello_{int_ty}") + r = reducer_name(int_ty) + self.call(f"add_{r}", "Robert", 1) + self.call(f"add_{r}", "Julie", 2) + self.call(f"add_{r}", "Samantha", 3) + self.call(f"say_hello_{r}") logs = self.logs(4) self.assertIn("Hello, 3:Samantha!", logs) self.assertIn("Hello, 2:Julie!", logs) @@ -59,7 +71,6 @@ def do_test_autoinc(self, int_ty): self.assertIn("Hello, World!", logs) - autoinc2_template = string.Template(""" #[spacetimedb::table(accessor = person_$KEY_TY)] pub struct Person_$KEY_TY { @@ -71,20 +82,20 @@ def do_test_autoinc(self, int_ty): } #[spacetimedb::reducer] -pub fn add_new_$KEY_TY(ctx: &ReducerContext, name: String) -> Result<(), Box> { +pub fn add_new_$REDUCER_TY(ctx: &ReducerContext, name: String) -> Result<(), Box> { let value = ctx.db.person_$KEY_TY().try_insert(Person_$KEY_TY { key_col: 0, name })?; log::info!("Assigned Value: {} -> {}", value.key_col, value.name); Ok(()) } #[spacetimedb::reducer] -pub fn update_$KEY_TY(ctx: &ReducerContext, name: String, new_id: $KEY_TY) { +pub fn update_$REDUCER_TY(ctx: &ReducerContext, name: String, new_id: $KEY_TY) { ctx.db.person_$KEY_TY().name().delete(&name); let _value = ctx.db.person_$KEY_TY().insert(Person_$KEY_TY { key_col: new_id, name }); } #[spacetimedb::reducer] -pub fn say_hello_$KEY_TY(ctx: &ReducerContext) { +pub fn say_hello_$REDUCER_TY(ctx: &ReducerContext) { for person in ctx.db.person_$KEY_TY().iter() { log::info!("Hello, {}:{}!", person.key_col, person.name); } @@ -100,16 +111,23 @@ class AutoincUnique(IntTests, Smoketest): #![allow(non_camel_case_types)] use std::error::Error; use spacetimedb::{{log, ReducerContext, Table}}; -{"".join(autoinc2_template.substitute(KEY_TY=int_ty) for int_ty in ints)} +{"".join( + autoinc2_template.substitute( + KEY_TY=int_ty, + REDUCER_TY=reducer_name(int_ty), + ) + for int_ty in ints +)} """ def do_test_autoinc(self, int_ty): - self.call(f"update_{int_ty}", "Robert", 2) - self.call(f"add_new_{int_ty}", "Success") + r = reducer_name(int_ty) + self.call(f"update_{r}", "Robert", 2) + self.call(f"add_new_{r}", "Success") with self.assertRaises(Exception): - self.call(f"add_new_{int_ty}", "Failure") + self.call(f"add_new_{r}", "Failure") - self.call(f"say_hello_{int_ty}") + self.call(f"say_hello_{r}") logs = self.logs(4) self.assertIn("Hello, 2:Robert!", logs) self.assertIn("Hello, 1:Success!", logs) diff --git a/smoketests/tests/pg_wire.py b/smoketests/tests/pg_wire.py deleted file mode 100644 index 853d82b523c..00000000000 --- a/smoketests/tests/pg_wire.py +++ /dev/null @@ -1,317 +0,0 @@ -from .. import Smoketest -import subprocess -import os -import tomllib -import psycopg2 - -class SqlFormat(Smoketest): - AUTOPUBLISH = False - MODULE_CODE = """ -use spacetimedb::sats::{i256, u256}; -use spacetimedb::{ConnectionId, Identity, ReducerContext, SpacetimeType, Table, Timestamp, TimeDuration, Uuid}; - -#[derive(Copy, Clone)] -#[spacetimedb::table(accessor = t_ints, public)] -pub struct TInts { - i8: i8, - i16: i16, - i32: i32, - i64: i64, - i128: i128, - i256: i256, -} - -#[spacetimedb::table(accessor = t_ints_tuple, public)] -pub struct TIntsTuple { - tuple: TInts, -} - -#[derive(Copy, Clone)] -#[spacetimedb::table(accessor = t_uints, public)] -pub struct TUints { - u8: u8, - u16: u16, - u32: u32, - u64: u64, - u128: u128, - u256: u256, -} - -#[spacetimedb::table(accessor = t_uints_tuple, public)] -pub struct TUintsTuple { - tuple: TUints, -} - -#[derive(Clone)] -#[spacetimedb::table(accessor = t_others, public)] -pub struct TOthers { - bool: bool, - f32: f32, - f64: f64, - str: String, - bytes: Vec, - identity: Identity, - connection_id: ConnectionId, - timestamp: Timestamp, - duration: TimeDuration, - uuid: Uuid, -} - -#[spacetimedb::table(accessor = t_others_tuple, public)] -pub struct TOthersTuple { - tuple: TOthers -} - -#[derive(SpacetimeType, Debug, Clone, Copy)] -pub enum Action { - Inactive, - Active, -} - -#[derive(SpacetimeType, Debug, Clone, Copy)] -pub enum Color { - Gray(u8), -} - -#[derive(Copy, Clone)] -#[spacetimedb::table(accessor = t_simple_enum, public)] -pub struct TSimpleEnum { - id : u32, - action: Action, -} - -#[spacetimedb::table(accessor = t_enum, public)] -pub struct TEnum { - id : u32, - color: Color, -} - -#[spacetimedb::table(accessor = t_nested, public)] -pub struct TNested { - en: TEnum, - se: TSimpleEnum, - ints: TInts, -} - -#[derive(Clone)] -#[spacetimedb::table(accessor = t_enums)] -pub struct TEnums { - bool_opt: Option, - bool_result: Result, - action: Action, -} - -#[spacetimedb::table(accessor = t_enums_tuple)] -pub struct TEnumsTuple { - tuple: TEnums, -} - -#[spacetimedb::reducer] -pub fn test(ctx: &ReducerContext) { - let tuple = TInts { - i8: -25, - i16: -3224, - i32: -23443, - i64: -2344353, - i128: -234434897853, - i256: (-234434897853i128).into(), - }; - let ints = tuple; - ctx.db.t_ints().insert(tuple); - ctx.db.t_ints_tuple().insert(TIntsTuple { tuple }); - - let tuple = TUints { - u8: 105, - u16: 1050, - u32: 83892, - u64: 48937498, - u128: 4378528978889, - u256: 4378528978889u128.into(), - }; - ctx.db.t_uints().insert(tuple); - ctx.db.t_uints_tuple().insert(TUintsTuple { tuple }); - - let tuple = TOthers { - bool: true, - f32: 594806.58906, - f64: -3454353.345389043278459, - str: "This is spacetimedb".to_string(), - bytes: vec!(1, 2, 3, 4, 5, 6, 7), - identity: Identity::ONE, - connection_id: ConnectionId::ZERO, - timestamp: Timestamp::UNIX_EPOCH, - duration: TimeDuration::from_micros(1000 * 10000), - uuid: Uuid::NIL, - }; - ctx.db.t_others().insert(tuple.clone()); - ctx.db.t_others_tuple().insert(TOthersTuple { tuple }); - - ctx.db.t_simple_enum().insert(TSimpleEnum { id: 1, action: Action::Inactive }); - ctx.db.t_simple_enum().insert(TSimpleEnum { id: 2, action: Action::Active }); - - ctx.db.t_enum().insert(TEnum { id: 1, color: Color::Gray(128) }); - - ctx.db.t_nested().insert(TNested { - en: TEnum { id: 1, color: Color::Gray(128) }, - se: TSimpleEnum { id: 2, action: Action::Active }, - ints, - }); - - let tuple = TEnums { - bool_opt: Some(true), - bool_result: Ok(false), - action: Action::Active, - }; - - ctx.db.t_enums().insert(tuple.clone()); - ctx.db.t_enums_tuple().insert(TEnumsTuple { tuple }); -} -""" - - def psql(self, identity: str, sql: str) -> str: - """Call `psql` and execute the given SQL statement.""" - server = self.get_server_address() - result = subprocess.run( - ["psql", "-h", server["host"], "-p", "5432", "-U", "postgres", "-d", "quickstart", "--quiet", "-c", sql], - encoding="utf8", - env={**os.environ, "PGPASSWORD": identity}, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - text=True, - ) - - if result.stderr: - raise Exception(result.stderr.strip()) - return result.stdout.strip() - - def connect_db(self, identity: str): - """Connect to the database using `psycopg2`.""" - server = self.get_server_address() - conn = psycopg2.connect(host=server["host"], port=5432, user="postgres", password=identity, dbname="quickstart") - conn.set_session(autocommit=True) # Disable automic transaction - return conn - - def assertPsql(self, token: str, sql: str, expected): - """Assert that the output of `psql` matches the expected output.""" - self.maxDiff = None - sql_out = self.psql(token, sql) - sql_out = "\n".join([line.rstrip() for line in sql_out.splitlines()]) - expected = "\n".join([line.rstrip() for line in expected.splitlines()]) - print(sql_out) - self.assertMultiLineEqual(sql_out, expected) - - def read_token(self): - """Read the token from the config file.""" - with open(self.config_path, "rb") as f: - config = tomllib.load(f) - return config['spacetimedb_token'] - - def test_sql_format(self): - """This test is designed to test calling `psql` to execute SQL statements""" - token = self.read_token() - self.publish_module("quickstart", clear=True) - - self.call("test") - - self.assertPsql(token, "SELECT * FROM t_ints", """\ -i8 | i16 | i32 | i64 | i128 | i256 ------+-------+--------+----------+---------------+--------------- - -25 | -3224 | -23443 | -2344353 | -234434897853 | -234434897853 -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_ints_tuple", """\ -tuple ---------------------------------------------------------------------------------------------------------- - {"i8": -25, "i16": -3224, "i32": -23443, "i64": -2344353, "i128": -234434897853, "i256": -234434897853} -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_uints", """\ -u8 | u16 | u32 | u64 | u128 | u256 ------+------+-------+----------+---------------+--------------- - 105 | 1050 | 83892 | 48937498 | 4378528978889 | 4378528978889 -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_uints_tuple", """\ -tuple -------------------------------------------------------------------------------------------------------- - {"u8": 105, "u16": 1050, "u32": 83892, "u64": 48937498, "u128": 4378528978889, "u256": 4378528978889} -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_others", """\ -bool | f32 | f64 | str | bytes | identity | connection_id | timestamp | duration | uuid -------+-----------+---------------------+---------------------+------------------+--------------------------------------------------------------------+------------------------------------+---------------------------+----------+-------------------------------------- - t | 594806.56 | -3454353.3453890434 | This is spacetimedb | \\x01020304050607 | \\x0000000000000000000000000000000000000000000000000000000000000001 | \\x00000000000000000000000000000000 | 1970-01-01T00:00:00+00:00 | PT10S | 00000000-0000-0000-0000-000000000000 -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_others_tuple", """\ -tuple ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - {"bool": true, "f32": 594806.56, "f64": -3454353.3453890434, "str": "This is spacetimedb", "bytes": "0x01020304050607", "identity": "0x0000000000000000000000000000000000000000000000000000000000000001", "connection_id": "0x00000000000000000000000000000000", "timestamp": "1970-01-01T00:00:00+00:00", "duration": "PT10S", "uuid": "00000000-0000-0000-0000-000000000000"} -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_simple_enum", """\ -id | action -----+---------- - 1 | Inactive - 2 | Active -(2 rows)""") - self.assertPsql(token, "SELECT * FROM t_enum", """\ -id | color -----+--------------- - 1 | {"Gray": 128} -(1 row)""") - self.assertPsql(token, "SELECT * FROM t_nested", """\ -en | se | ints ------------------------------------+-------------------------------------+--------------------------------------------------------------------------------------------------------- - {"id": 1, "color": {"Gray": 128}} | {"id": 2, "action": {"Active": {}}} | {"i8": -25, "i16": -3224, "i32": -23443, "i64": -2344353, "i128": -234434897853, "i256": -234434897853} -(1 row)""") - self.assertPsql(token,"SELECT * FROM t_enums", """\ -bool_opt | bool_result | action -----------------+---------------+-------- - {"some": true} | {"ok": false} | Active -(1 row) -""") - self.assertPsql(token,"SELECT * FROM t_enums_tuple", """\ -tuple --------------------------------------------------------------------------------------- - {"bool_opt": {"some": true}, "bool_result": {"ok": false}, "action": {"Active": {}}} -(1 row) -""") - - def test_sql_conn(self): - """This test is designed to test connecting to the database and executing queries using `psycopg2`""" - token = self.read_token() - self.publish_module("quickstart", clear=True) - self.call("test") - - conn = self.connect_db(token) - # Check prepared statements (faked by `psycopg2`) - with conn.cursor() as cur: - cur.execute("select * from t_uints where u8 = %s and u16 = %s", (105, 1050)) - rows = cur.fetchall() - self.assertEqual(rows[0], (105, 1050, 83892, 48937498, 4378528978889, 4378528978889)) - # Check long-lived connection - with conn.cursor() as cur: - for _ in range(10): - cur.execute("select count(*) as t from t_uints") - rows = cur.fetchall() - self.assertEqual(rows[0], (1,)) - conn.close() - - def test_failures(self): - """This test is designed to test failure cases""" - token = self.read_token() - self.publish_module("quickstart", clear=True) - - # Empty query - sql_out = self.psql(token, "") - self.assertEqual(sql_out, "") - - # Connection fails with invalid token - with self.assertRaises(Exception) as cm: - self.psql("invalid_token", "SELECT * FROM t_uints") - self.assertIn("Invalid token", str(cm.exception)) - - # Returns error for unsupported `sql` statements - with self.assertRaises(Exception) as cm: - self.psql(token, "SELECT CASE a WHEN 1 THEN 'one' ELSE 'other' END FROM t_uints") - self.assertIn("Unsupported", str(cm.exception)) - - # And prepared statements - with self.assertRaises(Exception) as cm: - self.psql(token, "SELECT * FROM t_uints where u8 = $1") - self.assertIn("Unsupported", str(cm.exception)) diff --git a/smoketests/tests/sql.py b/smoketests/tests/sql.py index 16aeb82887f..97d3c6da488 100644 --- a/smoketests/tests/sql.py +++ b/smoketests/tests/sql.py @@ -133,42 +133,42 @@ def test_sql_format(self): self.call("test") self.assertSql("SELECT * FROM t_ints", """\ - i8 | i16 | i32 | i64 | i128 | i256 + i_8 | i_16 | i_32 | i_64 | i_128 | i_256 -----+-------+--------+----------+---------------+--------------- -25 | -3224 | -23443 | -2344353 | -234434897853 | -234434897853 """) self.assertSql("SELECT * FROM t_ints_tuple", """\ tuple ---------------------------------------------------------------------------------------------------- - (i8 = -25, i16 = -3224, i32 = -23443, i64 = -2344353, i128 = -234434897853, i256 = -234434897853) +--------------------------------------------------------------------------------------------------------- + (i_8 = -25, i_16 = -3224, i_32 = -23443, i_64 = -2344353, i_128 = -234434897853, i_256 = -234434897853) """) self.assertSql("SELECT * FROM t_uints", """\ - u8 | u16 | u32 | u64 | u128 | u256 + u_8 | u_16 | u_32 | u_64 | u_128 | u_256 -----+------+-------+----------+---------------+--------------- 105 | 1050 | 83892 | 48937498 | 4378528978889 | 4378528978889 """) self.assertSql("SELECT * FROM t_uints_tuple", """\ tuple -------------------------------------------------------------------------------------------------- - (u8 = 105, u16 = 1050, u32 = 83892, u64 = 48937498, u128 = 4378528978889, u256 = 4378528978889) +------------------------------------------------------------------------------------------------------- + (u_8 = 105, u_16 = 1050, u_32 = 83892, u_64 = 48937498, u_128 = 4378528978889, u_256 = 4378528978889) """) self.assertSql("SELECT * FROM t_others", """\ - bool | f32 | f64 | str | bytes | identity | connection_id | timestamp | duration | uuid + bool | f_32 | f_64 | str | bytes | identity | connection_id | timestamp | duration | uuid ------+-----------+--------------------+-----------------------+------------------+--------------------------------------------------------------------+------------------------------------+---------------------------+-----------+---------------------------------------- true | 594806.56 | -3454353.345389043 | "This is spacetimedb" | 0x01020304050607 | 0x0000000000000000000000000000000000000000000000000000000000000001 | 0x00000000000000000000000000000000 | 1970-01-01T00:00:00+00:00 | +0.000000 | "00000000-0000-0000-0000-000000000000" """) self.assertSql("SELECT * FROM t_others_tuple", """\ tuple ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - (bool = true, f32 = 594806.56, f64 = -3454353.345389043, str = "This is spacetimedb", bytes = 0x01020304050607, identity = 0x0000000000000000000000000000000000000000000000000000000000000001, connection_id = 0x00000000000000000000000000000000, timestamp = 1970-01-01T00:00:00+00:00, duration = +0.000000, uuid = "00000000-0000-0000-0000-000000000000") +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + (bool = true, f_32 = 594806.56, f_64 = -3454353.345389043, str = "This is spacetimedb", bytes = 0x01020304050607, identity = 0x0000000000000000000000000000000000000000000000000000000000000001, connection_id = 0x00000000000000000000000000000000, timestamp = 1970-01-01T00:00:00+00:00, duration = +0.000000, uuid = "00000000-0000-0000-0000-000000000000") """) self.assertSql("SELECT * FROM t_enums", """\ bool_opt | bool_result | action ---------------+--------------+--------------- - (some = true) | (ok = false) | (Active = ()) + (some = true) | (ok = false) | (active = ()) """) self.assertSql("SELECT * FROM t_enums_tuple", """\ tuple -------------------------------------------------------------------------------- - (bool_opt = (some = true), bool_result = (ok = false), action = (Active = ())) + (bool_opt = (some = true), bool_result = (ok = false), action = (active = ())) """) diff --git a/templates/chat-react-ts/src/module_bindings/index.ts b/templates/chat-react-ts/src/module_bindings/index.ts index d40713904af..9464aba0d3f 100644 --- a/templates/chat-react-ts/src/module_bindings/index.ts +++ b/templates/chat-react-ts/src/module_bindings/index.ts @@ -59,11 +59,7 @@ const tablesSchema = __schema({ { name: 'user', indexes: [ - { - name: 'user_identity_idx_btree', - algorithm: 'btree', - columns: ['identity'], - }, + { name: 'identity', algorithm: 'btree', columns: ['identity'] }, ], constraints: [ { diff --git a/templates/react-ts/src/module_bindings/pop_table.ts b/templates/react-ts/src/module_bindings/pop_table.ts new file mode 100644 index 00000000000..0f70f74f617 --- /dev/null +++ b/templates/react-ts/src/module_bindings/pop_table.ts @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +/* eslint-disable */ +/* tslint:disable */ +import { + TypeBuilder as __TypeBuilder, + t as __t, + type AlgebraicTypeType as __AlgebraicTypeType, + type Infer as __Infer, +} from 'spacetimedb'; + +export default __t.row({ + name: __t.string(), +}); diff --git a/templates/react-ts/src/module_bindings/pop_type.ts b/templates/react-ts/src/module_bindings/pop_type.ts new file mode 100644 index 00000000000..9c823aeb42b --- /dev/null +++ b/templates/react-ts/src/module_bindings/pop_type.ts @@ -0,0 +1,15 @@ +// THIS FILE IS AUTOMATICALLY GENERATED BY SPACETIMEDB. EDITS TO THIS FILE +// WILL NOT BE SAVED. MODIFY TABLES IN YOUR MODULE SOURCE CODE INSTEAD. + +/* eslint-disable */ +/* tslint:disable */ +import { + TypeBuilder as __TypeBuilder, + t as __t, + type AlgebraicTypeType as __AlgebraicTypeType, + type Infer as __Infer, +} from 'spacetimedb'; + +export default __t.object('Pop', { + name: __t.string(), +});