graphql-engine/scripts/make
Samir Talwar 15ac52ded4 server: Fix the Analyze feature for SQL Server.
The "Analyze" feature for SQL Server only partially worked. It would show the SQL generated, but not the execution plan. This is because SQL Server doesn't support generating a plan for prepared statements with parameters.

To work around this, we restructure the query as one without parameters. Instead, we replace each parameter with a variable. We declare the variables but don't set values. We then plan _that_, which works.

We run all this in a single query because local variables only last for a single transaction/batch.

This feature does not work for stored procedures.

[NDAT-582]: https://hasurahq.atlassian.net/browse/NDAT-582?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10125
GitOrigin-RevId: a4b45b9b207456ff4fbd1b69b008e93f87346342
2023-08-17 12:51:57 +00:00
..
build.mk chore: remove Postgres data connector 2023-07-26 15:24:00 +00:00
ci.mk [ci] split out api-tests runs by backend 2022-11-30 16:23:03 +00:00
frontend.mk frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
ghcid.mk chore: remove Postgres data connector 2023-07-26 15:24:00 +00:00
legacy-tests.mk server/tests-py: Move installing node_modules to the makefile. 2022-08-16 09:27:04 +00:00
lint.mk server: add support for redis clusters 2023-06-05 12:11:59 +00:00
metadata-api.mk server: commit Metadata OpenAPI spec with CI check, add Typescript client scaffolding 2023-02-15 18:38:38 +00:00
repl.mk chore(tooling): add make repl-postgres command 2023-04-05 13:24:04 +00:00
run.mk chore: Small dev improvements 2023-06-23 20:22:59 +00:00
test-infrastructure.mk server: Fix the Analyze feature for SQL Server. 2023-08-17 12:51:57 +00:00
tests.mk chore: remove Postgres data connector 2023-07-26 15:24:00 +00:00