SpacetimeDB
SpacetimeDB copied to clipboard
Typo in "C# Module Quickstart" page
Please, see:
- https://spacetimedb.com/docs/modules/c-sharp/quickstart
It defined Message partial class as database table:
[Table(Name = "message", Public = true)] // NOTE: the table name is 'message' as lower case
public partial class Message
{
public Identity Sender;
public Timestamp Sent;
public string Text = "";
}
So, when we query a table, it should use lower case as its name like:
spacetime sql quickstart-chat "SELECT * FROM message"
But the page uses upper case as:
spacetime sql quickstart-chat "SELECT * FROM Message"
It happens 'Message' is not a valid table error.
Good catch, thank you for reporting! We'll fix this.
This has been fixed!