Skip to content

Commit ed568f9

Browse files
committed
insta tests
1 parent 973a7dd commit ed568f9

4 files changed

Lines changed: 35 additions & 3910 deletions

File tree

crates/codegen/tests/snapshots/codegen__codegen_csharp.snap

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,38 +1858,38 @@ namespace SpacetimeDB
18581858
{
18591859
protected override string RemoteTableName => "logged_out_player";
18601860

1861-
public sealed class IdentityUniqueIndex : UniqueIndexBase<SpacetimeDB.Identity>
1861+
public sealed class LoggedOutPlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase<SpacetimeDB.Identity>
18621862
{
18631863
protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity;
18641864

1865-
public IdentityUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
1865+
public LoggedOutPlayerIdentityIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
18661866
}
18671867

1868-
public readonly IdentityUniqueIndex Identity;
1868+
public readonly LoggedOutPlayerIdentityIdxBtreeUniqueIndex LoggedOutPlayerIdentityIdxBtree;
18691869

1870-
public sealed class NameUniqueIndex : UniqueIndexBase<string>
1870+
public sealed class LoggedOutPlayerNameIdxBtreeUniqueIndex : UniqueIndexBase<string>
18711871
{
18721872
protected override string GetKey(Player row) => row.Name;
18731873

1874-
public NameUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
1874+
public LoggedOutPlayerNameIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
18751875
}
18761876

1877-
public readonly NameUniqueIndex Name;
1877+
public readonly LoggedOutPlayerNameIdxBtreeUniqueIndex LoggedOutPlayerNameIdxBtree;
18781878

1879-
public sealed class PlayerIdUniqueIndex : UniqueIndexBase<ulong>
1879+
public sealed class LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase<ulong>
18801880
{
18811881
protected override ulong GetKey(Player row) => row.PlayerId;
18821882

1883-
public PlayerIdUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
1883+
public LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex(LoggedOutPlayerHandle table) : base(table) { }
18841884
}
18851885

1886-
public readonly PlayerIdUniqueIndex PlayerId;
1886+
public readonly LoggedOutPlayerPlayerIdIdxBtreeUniqueIndex LoggedOutPlayerPlayerIdIdxBtree;
18871887

18881888
internal LoggedOutPlayerHandle(DbConnection conn) : base(conn)
18891889
{
1890-
Identity = new(this);
1891-
Name = new(this);
1892-
PlayerId = new(this);
1890+
LoggedOutPlayerIdentityIdxBtree = new(this);
1891+
LoggedOutPlayerNameIdxBtree = new(this);
1892+
LoggedOutPlayerPlayerIdIdxBtree = new(this);
18931893
}
18941894

18951895
protected override object GetPrimaryKey(Player row) => row.Identity;
@@ -2007,19 +2007,19 @@ namespace SpacetimeDB
20072007

20082008
public readonly AgeIndex Age;
20092009

2010-
public sealed class IdUniqueIndex : UniqueIndexBase<uint>
2010+
public sealed class PersonIdIdxBtreeUniqueIndex : UniqueIndexBase<uint>
20112011
{
20122012
protected override uint GetKey(Person row) => row.Id;
20132013

2014-
public IdUniqueIndex(PersonHandle table) : base(table) { }
2014+
public PersonIdIdxBtreeUniqueIndex(PersonHandle table) : base(table) { }
20152015
}
20162016

2017-
public readonly IdUniqueIndex Id;
2017+
public readonly PersonIdIdxBtreeUniqueIndex PersonIdIdxBtree;
20182018

20192019
internal PersonHandle(DbConnection conn) : base(conn)
20202020
{
20212021
Age = new(this);
2022-
Id = new(this);
2022+
PersonIdIdxBtree = new(this);
20232023
}
20242024

20252025
protected override object GetPrimaryKey(Person row) => row.Id;
@@ -2075,38 +2075,38 @@ namespace SpacetimeDB
20752075
{
20762076
protected override string RemoteTableName => "player";
20772077

2078-
public sealed class IdentityUniqueIndex : UniqueIndexBase<SpacetimeDB.Identity>
2078+
public sealed class PlayerIdentityIdxBtreeUniqueIndex : UniqueIndexBase<SpacetimeDB.Identity>
20792079
{
20802080
protected override SpacetimeDB.Identity GetKey(Player row) => row.Identity;
20812081

2082-
public IdentityUniqueIndex(PlayerHandle table) : base(table) { }
2082+
public PlayerIdentityIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { }
20832083
}
20842084

2085-
public readonly IdentityUniqueIndex Identity;
2085+
public readonly PlayerIdentityIdxBtreeUniqueIndex PlayerIdentityIdxBtree;
20862086

2087-
public sealed class NameUniqueIndex : UniqueIndexBase<string>
2087+
public sealed class PlayerNameIdxBtreeUniqueIndex : UniqueIndexBase<string>
20882088
{
20892089
protected override string GetKey(Player row) => row.Name;
20902090

2091-
public NameUniqueIndex(PlayerHandle table) : base(table) { }
2091+
public PlayerNameIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { }
20922092
}
20932093

2094-
public readonly NameUniqueIndex Name;
2094+
public readonly PlayerNameIdxBtreeUniqueIndex PlayerNameIdxBtree;
20952095

2096-
public sealed class PlayerIdUniqueIndex : UniqueIndexBase<ulong>
2096+
public sealed class PlayerPlayerIdIdxBtreeUniqueIndex : UniqueIndexBase<ulong>
20972097
{
20982098
protected override ulong GetKey(Player row) => row.PlayerId;
20992099

2100-
public PlayerIdUniqueIndex(PlayerHandle table) : base(table) { }
2100+
public PlayerPlayerIdIdxBtreeUniqueIndex(PlayerHandle table) : base(table) { }
21012101
}
21022102

2103-
public readonly PlayerIdUniqueIndex PlayerId;
2103+
public readonly PlayerPlayerIdIdxBtreeUniqueIndex PlayerPlayerIdIdxBtree;
21042104

21052105
internal PlayerHandle(DbConnection conn) : base(conn)
21062106
{
2107-
Identity = new(this);
2108-
Name = new(this);
2109-
PlayerId = new(this);
2107+
PlayerIdentityIdxBtree = new(this);
2108+
PlayerNameIdxBtree = new(this);
2109+
PlayerPlayerIdIdxBtree = new(this);
21102110
}
21112111

21122112
protected override object GetPrimaryKey(Player row) => row.Identity;

0 commit comments

Comments
 (0)