You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We're using this table as a singleton, so in this table// there only be one element where the `id` is 0.[Table(Name="config",Public=true)]publicpartialstructConfig{[PrimaryKey][Column(Name="id")]publicuintId;[Column(Name="world_size")]publiculongWorldSize;}
// We're using this table as a singleton, so in this table// there only be one element where the `id` is 0.#[spacetimedb::table(name = config, public)]pubstructConfig{#[primary_key]pubid:u32,#[column(name = "foobar")]pubfoobar:u64,}
Exactly spelling not proposed. Needs design work. This is a common feature in ORMs:
FWIW we already use the standard [DataMember(Name = "...")] attribute in autogenerated C# code to preserve column names for JSON representation (which was important for BitCraft):
In C# it might make sense to reuse the same attribute for server-side as well, instead of introducing a separate one, since DataMember can be reused by various serializers.
We'd like to be able to do something like this:
Exactly spelling not proposed. Needs design work. This is a common feature in ORMs:
https://orm.drizzle.team/docs/sql-schema-declaration#tables-and-columns-declaration
The text was updated successfully, but these errors were encountered: