-
Notifications
You must be signed in to change notification settings - Fork 53
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
Queries as an API #164
Comments
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We want to launch a feature where users can create RESTful endpoints based on queries. This is an enhancement of "saved queries".
I have started this work in a branch: https://github.com/scratchdata/scratchdata/pull/163/files
This is roughly how I propose building it:
SELECT * FROM events WHERE user = @user
GET /user_events?user=alice
api_key_1
with theuser
parameter set toalice
.?user=alice
. If they do, then the parameter will be overwritten by the defaultFinally, there should be a UI for creating these queries.
If we have time:
DESCRIBE (select * from events where user = @user)
to get the output type.The text was updated successfully, but these errors were encountered: