Skip to content

Commit 6df782a

Browse files
committed
Prefix example and notes
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
1 parent 5007fcb commit 6df782a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/content/docs/extensions/db2i/index.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This view allows users to manage different SQL jobs, each with their own unique
6464

6565
![](./sqlJobManager-newJob.png)
6666

67-
Your active job will be marked with a highlighted icon. **The active job is used for all SQL statement execution, ** including SQL that powers the Schema Browser, user-executed SQL statements, etc. You can change the active job by simply clicking the job you choose to use. You will see the highlighted icon change to indicate the active job.
67+
Your active job will be marked with a highlighted icon. **The active job is used for all SQL statement execution**, including SQL that powers the Schema Browser, user-executed SQL statements, etc. You can change the active job by simply clicking the job you choose to use. You will see the highlighted icon change to indicate the active job.
6868

6969
### Editing job configuration
7070

@@ -106,6 +106,8 @@ There are a few ways to create an IBM i Notebook:
106106
2. You can find 'IBMi i: New Notebook' in the command palette.
107107
3. Open a `.inb` file (which stands for 'i Notebook')
108108

109+
**You can also find Notebook samples from the Examples view, under Notebooks.**
110+
109111
### The life of a Notebook
110112

111113
A notebook is made up of cells. A cell is asscociated with a language (for example, `sql`, `cl`, or `markdown`). Cells (other than `markdown`) can be executed. Each cell has a result and typically gets rendered below the cell input after execution.
@@ -133,7 +135,7 @@ To render a chart using SQL in a Notebook, two rules must be met:
133135
1. You must provide the chart type (via comment tag or statement prefix)
134136
2. There must be a `LABEL` column for the X axis.
135137
3. One or more numeric columns for the plotted data
136-
* You can also provide a `_description` string column for each numeric column to provide additional information in the tooltip
138+
* You can also provide a `_desc` string column for each numeric column to provide additional information in the tooltip
137139
* For numeric columns to use formatted names, provide a fixed column name: `salary as "Salary"`
138140

139141
Optional tags as comments can also be provided. Optional tags are formatted as so:
@@ -143,6 +145,17 @@ Optional tags as comments can also be provided. Optional tags are formatted as s
143145
* `y` - for a title to appear on the Y axis
144146

145147
<Tabs>
148+
<TabItem label="Prefix">
149+
150+
```sql
151+
bar: select
152+
empno as label,
153+
salary
154+
from sample.employee limit 10
155+
```
156+
157+
</TabItem>
158+
146159
<TabItem label="Tags">
147160

148161
```sql

0 commit comments

Comments
 (0)