Skip to content

Commit 72b68c0

Browse files
authored
feat: add docs for readonly application intent in mssql + database pinning (windmill-labs#593)
1 parent 1aa038f commit 72b68c0

File tree

1 file changed

+10
-0
lines changed
  • docs/getting_started/0_scripts_quickstart/5_sql_quickstart

1 file changed

+10
-0
lines changed

docs/getting_started/0_scripts_quickstart/5_sql_quickstart/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ You can find a list of all the officially supported Resource Types on
4848

4949
:::
5050

51+
:::tip
52+
53+
You can pin a resource to an SQL query by adding a `-- database resource_path` line to your script. The query will automatically use the resource without having to specify it in the autogenerated user interface.
54+
55+
:::
56+
5157
### PostgreSQL
5258

5359
To be able to connect to a [PostgreSQL](https://www.postgresql.org/) instance ([Supabase](../../../integrations/supabase.md), [Neon.tech](../../../integrations/neon.md), etc.), we'll need to define a Resource with the `PostgreSQL` Resource Type first.
@@ -137,6 +143,10 @@ Fill out the form with the information of your MySQL instance and "Test connecti
137143
| dbname | string | Database name | | true | Created in MS SQL (e.g., via SQL Server Management Studio) or provided by your hosting |
138144
| password | string | User's password | | true | Created in MS SQL (e.g., via SQL Server Management Studio) or provided by your hosting |
139145

146+
147+
To specify the application intent for read-only requests, add `-- ApplicationIntent=ReadOnly` to the script.
148+
149+
140150
### BigQuery
141151

142152
To be able to connect to a [BigQuery](https://cloud.google.com/bigquery) instance, we'll need to define a Resource with the `BigQuery` Resource Type first.

0 commit comments

Comments
 (0)