Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One-off query support #49

Merged
merged 1 commit into from
Oct 10, 2023
Merged

One-off query support #49

merged 1 commit into from
Oct 10, 2023

Conversation

kazimuth
Copy link
Contributor

Description of Changes

Adds an async one-off-query method to SpacetimeDBClient.

API

Adds:

public async Task<T[]> SpacetimeDBClient.OneOffQuery<T>(string query) where T : IDatabaseTable;

Requires SpacetimeDB PRs

clockworklabs/SpacetimeDB#198

@kazimuth kazimuth requested a review from jdetter August 29, 2023 20:03
@@ -7,6 +7,7 @@
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Channels;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add a nuget package in order to get this working, did you not have to do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not with dotnet build, but it's possible that pulled in some floating dependency from my system?

Copy link
Collaborator

@jdetter jdetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at my comment before merging, but I was able to get this working.

@jdetter
Copy link
Collaborator

jdetter commented Oct 10, 2023

Merging this into staging, this will go into v0.7.0-beta

@jdetter jdetter merged commit b6d8ad2 into staging Oct 10, 2023
jdetter pushed a commit that referenced this pull request Oct 12, 2023
jdetter added a commit that referenced this pull request Oct 12, 2023
* One-off query support (#49)

* SpacetimeDBURI argument in place of host and ssl enabled bool (#52)

* SpacetimeDBURI argument in place of host and ssl enabled bool

* Small cleanup

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>

* Add support for client address; re-run `spacetime generate` for quickstart client (#54)

* README.md and License.txt updates (#53)

* Update README.md

* Add license.txt

* Rename

* Add LICENSE.txt with proper case

---------

Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>

* Add support for client address; re-run `spacetime generate` for quickstart client

Re: clockworklabs/SpacetimeDB#299

---------

Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>

* Making Quickstart Work Again (#57)

* Packaged nuget package, quickstart is now working again

* Reset DBNAME

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>

* OnUnhandledReducerError (#31)

Co-authored-by: Steve <steve@codefics.com>
Co-authored-by: Boppy <no-reply@boppygames.gg>

---------

Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>
Co-authored-by: SteveBoytsun <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve <steve@codefics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants