This extension provides syntax highlighting and snippets for Db2 embedded SQL statements in C/C++ code.
Automatic language mode detection for C/C++ files with embedded SQL
Some snippets for SQL statements added
Initial release with basic syntax highlighting for embedded SQL keywords, types and functions
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
| Trigger | Content |
|---|---|
db2declhv→ |
Declare host variables section |
db2declcur→ |
Declare cursor |
db2opencur→ |
Open cursor |
db2fetch→ |
Fetch from cursor |
db2closecur→ |
Close currsor |
db2inc→ |
Include member (SQLCA, SQLDA or custom) |
db2select→ |
Select |
db2commit→ |
Commit |
