Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public partial struct Score
public int Left;
public int Right;
}

[Table(Name = "Result")]
[Table(Name = "Result", Public = true)]
public partial struct Result
{
[PrimaryKey] public int Id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct Score {
pub right: i32,
}

#[table(name = results)]
#[table(name = results, public)]
pub struct ResultRow {
#[primary_key]
pub id: i32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TYPES
- Right: int

TABLE
- Result
- Result (public)
- Struct: Result
- Fields:
- Id: int (primary key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ TYPES
- right: i32

TABLE
- results
- Struct: ResultRow
- results (public)
- Struct: ResultRow
- Fields:
- id: i32 (primary key)
- value: Score
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial struct Position
public int Y;
}

[Table(Name = "Profile")]
[Table(Name = "Profile", Public = true)]
public partial struct Profile
{
[PrimaryKey] public int Id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct Position {
pub y: i32,
}

#[table(name = profiles)]
#[table(name = profiles, public)]
pub struct Profile {
#[primary_key]
pub id: i32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TYPES
- Y: int

TABLE
- Profile
- Profile (public)
- Struct: Profile
- Fields:
- Id: int (primary key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TYPES
- y: i32

TABLE
- profiles
- profiles (public)
- Struct: Profile
- Fields:
- id: i32 (primary key)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use spacetimedb::{reducer, table, ReducerContext, Table};

#[table(
name = accounts,
index(name = by_name, btree(columns = [name]))
index(name = by_name, btree(columns = [name])),
public
)]
pub struct Account {
#[primary_key]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Write a SpacetimeDB backend module in C# that defines one table and seeds two rows.

TABLE
- Account
- Account (public)
- Struct: Account
- Fields:
- Id: int (primary key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Write a SpacetimeDB backend module in Rust that defines one table and seeds two rows.

TABLE
- accounts
- accounts (public)
- Struct: Account
- Columns:
- id: i32 (primary key)
Expand Down