graphql-engine/scripts
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
..
coalesce_run_sql [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
containers Upgrade Citus to v11.3.0 in tests. 2023-05-04 11:40:10 +00:00
edit-pg-dump Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
ekg server: add support for tagged and dynamic metrics 2021-08-05 21:08:17 +00:00
make server: Fix the Analyze feature for SQL Server. 2023-08-17 12:51:57 +00:00
bigquery.sh server/tests: unify HASURA_BIGQUERY_SERVICE_KEY and HASURA_BIGQUERY_SERVICE_ACCOUNT env vars 2022-03-14 07:50:35 +00:00
cabal-freeze-update.sh ghc 9.2.5 2022-11-15 11:26:42 +00:00
cabal-run.sh multitenant tests: reduce reliance on env vars, use fake cabal run 2022-01-24 18:15:25 +00:00
cleanup-bigquery.js Clean up leftover bigquery datasets 2023-03-28 15:43:08 +00:00
cleanup-bigquery.sh Clean up leftover bigquery datasets 2023-03-28 15:43:08 +00:00
data-sources-util.sh server: migrate to aeson-2 in preparation for ghc 9.2 upgrade 2022-06-08 15:32:27 +00:00
dev.sh Jberryman/07 11 2023 new cabal workarounds 2023-07-12 08:30:35 +00:00
dump-remote-schema.js Remote Joins: Create relationships across database and remote schemas (#2392) 2020-05-27 20:32:58 +05:30
extract-notes.sh Stable sort of extracted notes 2022-02-03 13:33:09 +00:00
generate_brand_assets_readme.sh update brand assets (#2062) 2019-04-26 10:05:52 +05:30
get-version.sh CI: Use "12345" for the server version instead of generating one. 2023-04-28 18:19:40 +00:00
hoogle.sh server/gardening: move local hoogle setup from Makefile to bash script 2022-03-16 10:44:01 +00:00
parse-pytest-backend server/tests: unify HASURA_BIGQUERY_SERVICE_KEY and HASURA_BIGQUERY_SERVICE_ACCOUNT env vars 2022-03-14 07:50:35 +00:00
performance_report.sh utils: fix scripts/performance_report.sh 2021-12-20 12:03:33 +00:00
post-release.sh ci: update latest stable release as v2.31.0 2023-08-02 16:37:45 +00:00
probe-pg-compatibility.sh server/tests: Integrated tool to probe pg compatibility 2022-11-14 22:01:37 +00:00
tag-release.sh ci: tag release v2.11.2 and v2.12.0 2022-09-12 07:19:23 +00:00
verify-bigquery-creds.sh Extract the test harness from the Hspec tests 2022-10-04 08:31:26 +00:00