Skip to content

Commit 846b296

Browse files
authored
Merge pull request #73 from codefori/feature/examples-view
Add docs on custom examples support in db2i extension
2 parents 6ebad5f + 17c375a commit 846b296

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.astro/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"_variables": {
3-
"lastUpdateCheck": 1752178270354
3+
"lastUpdateCheck": 1756490224047
44
}
55
}
487 KB
Loading
743 KB
Loading
73.6 KB
Loading

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,21 @@ The Db2 for i extension adds a view called Schema Browser which allows the user
135135

136136
If you are using the Schema Browser to browse objects, you are able to use the 'View contents' icon when hovering over a table, view, or alias to cause a basic SQL select statement to be generated and executed.
137137

138+
139+
## Using Examples
140+
141+
The Examples view provides users with a set of SQL example scripts that can be used as a learning tool or as a starting point for their own SQL scripts. These examples are grouped into categories to make it easy to find what you are looking for. You can hover over any example to get a preview of the SQL script or click on it to open a copy which you can freely edit.
142+
143+
![](./images/examplesPreview.png)
144+
145+
On top of the built-in examples, users can also add specific directories containing their own SQL examples using the `Add...` button under the `Custom Examples Directories` submenu on the Examples view. All SQL files in the specified directories and at most one subdirectory level deeper will be picked up. By default, the folder name will be the category and the file name will be the name of the example. This can be customized by optionally including a comment in the file with the tags `category` and `description`.
146+
147+
![](./images/examplesAdd.png)
148+
149+
Once you have added a custom examples directory, you can quickly save new examples to that directory using the `Save As New Example` button in the Examples view.
150+
151+
![](./images/examplesSave.png)
152+
138153
## SQL Error Logging Facility (SELF)
139154

140155
SQL Error Logging Facility (SELF) offers a comprehensive view that can help users understand specific SQL errors or warnings. The SELF view can be accessed through the IBM i panel next to the Results View.

0 commit comments

Comments
 (0)