Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 11, 2024
1 parent a0fe2f2 commit ae19b7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/unity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ jobs:
echo "branch=$branch" >> $GITHUB_OUTPUT
echo "Final branch name: $branch"
- name: Replace com.clockworklabs.spacetimedbsdk in manifest.json
run: |
# Get the branch name from the environment variable
branch_name="${{ github.head_ref }}"
# Replace any reference to com.clockworklabs.spacetimedbsdk with the correct GitHub URL using the current branch
sed -i "s|\"com.clockworklabs.spacetimedbsdk\":.*|\"com.clockworklabs.spacetimedbsdk\": \"https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk.git#$branch_name\",|" unity-tests~/client/Packages/manifest.json
cat unity-tests~/client/Packages/manifest.json
- name: Replace spacetimedb dependency in Cargo.toml
run: |
# Get the branch name from the environment variable
Expand Down
8 changes: 4 additions & 4 deletions src/SpacetimeDBClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DbConnection Build()
#if UNITY_5_3_OR_NEWER
if (SpacetimeDBNetworkManager._instance != null)
{
SpacetimeDBNetworkManager._instance.AddConnection(conn);
SpacetimeDBNetworkManager._instance.AddConnection(conn);
}
#endif
return conn;
Expand Down Expand Up @@ -177,8 +177,8 @@ protected DbConnectionBase()
{
if (SpacetimeDBNetworkManager._instance != null)
{
SpacetimeDBNetworkManager._instance.RemoveConnection(this);
}
SpacetimeDBNetworkManager._instance.RemoveConnection(this);
}
};
#endif

Expand Down Expand Up @@ -903,7 +903,7 @@ void IDbConnection.Subscribe(ISubscriptionHandle handle, string[] querySqls)
}

/// Usage: SpacetimeDBClientBase.instance.OneOffQuery<Message>("SELECT * FROM table WHERE sender = \"bob\"");
[Obsolete("This is replaced by ctx.Db.TableName.OneOffQuery(\"WHERE ...\")", false)]
[Obsolete("This is replaced by ctx.Db.TableName.RemoteQuery(\"WHERE ...\")", false)]
public Task<T[]> OneOffQuery<T>(string query) where T : IDatabaseRow, new() =>
((IDbConnection)this).RemoteQuery<T>(query);

Expand Down

0 comments on commit ae19b7b

Please sign in to comment.