Skip to content

Commit a54fa7b

Browse files
committed
Add support for SQL syntax highlighting
1 parent 38b82cd commit a54fa7b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/srde/02_user_guide/03_data_transfers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Once in BigQuery, on the Explorer tab on the left, click on the corresponding pr
107107
![Big Query exporter tab](./static/big_query_exporter_tab.png)
108108

109109
Select “Query > In new tab” to examine the results. The following default query will return a sample of 1000 results:
110-
```sh
110+
```sql
111111
SELECT * FROM “table_id” LIMIT 1000
112112
```
113113
For more information on querying the DLP report, see the DLP Interpretation Guide (TODO Add section on DLP Interp. guide!)

docs/srde/03_dlp/dlp.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The DLP scan is triggered by the Egress_2 script as part of the [data egress pro
1414
## Viewing results from the DLP report
1515

1616
This query, the most basic, fetches the first 100 flagged items in the report.
17-
```sh
17+
```sql
1818
SELECT
1919
quote,
2020
info_type.name,
@@ -37,15 +37,15 @@ To see more results, you can adjust the value of the `LIMIT` clause or remove it
3737
## Sample Queries: selecting a subset of flagged items
3838

3939
Select only high-sensitivity items
40-
```sh
40+
```sql
4141
SELECT quote, info_type.name, info_type.sensitivity_score.score, likelihood
4242
FROM `your_table_name`
4343
WHERE info_type.sensitivity_score.score = "SENSITIVITY_HIGH"
4444
LIMIT 100
4545
```
4646

4747
Select only items that are high-sensitivity and have a likelihood higher than “possible”
48-
```sh
48+
```sql
4949
SELECT quote, info_type.name, info_type.sensitivity_score.score, likelihood
5050
FROM `your_table_name`
5151
WHERE info_type.sensitivity_score.score = "SENSITIVITY_HIGH"
@@ -54,14 +54,14 @@ LIMIT 100
5454
```
5555

5656
Select all items, sorted by type
57-
```sh
57+
```sql
5858
SELECT quote, info_type.name, info_type.sensitivity_score.score, likelihood
5959
FROM `your_table_name`
6060
ORDER BY info_type.name
6161
```
6262

6363
Select all items of type PERSON_NAME, ordered alphabetically
64-
```sh
64+
```sql
6565
SELECT quote, info_type.name, info_type.sensitivity_score.score, likelihood
6666
FROM `your_table_name`
6767
WHERE info_type.name = "PERSON_NAME"

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const config: Config = {
146146
prism: {
147147
theme: prismThemes.oneLight,
148148
darkTheme: prismThemes.palenight,
149-
additionalLanguages: ['bash', 'shell-session', 'lua'],
149+
additionalLanguages: ['bash', 'shell-session', 'lua', 'sql'],
150150
},
151151
} satisfies Preset.ThemeConfig,
152152
};

0 commit comments

Comments
 (0)