-
Notifications
You must be signed in to change notification settings - Fork 0
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
Tevon/add query params #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple console logs to remove. Also, I think we should merge in master and make sure everything still works as expected
const matches = sql.match(/{{(.*?)}}/g); | ||
let paramIndex = 1; | ||
const params: any[] = []; | ||
console.log("Matches", matches); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm
@@ -71,6 +78,7 @@ const Page: React.FC<UserQueryPageProps> = ({ params: { userQueryId } }) => { | |||
return ( | |||
<div className="flex flex-col h-full"> | |||
<QueryHeader query={userQuery} /> | |||
<QueryParameters parameters={parameters} setParameters={setParameters} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to merge master into this branch to see how this component interacts with the Pipelin/SQL tabs
Adding parameters to queries.
These can be added at the top of the query page, including a description, name, default value.
Then these are saved to the query when they user selects save and run.
These are passed into the query/run method as query params, which are then added to the query via prepared statements.