Toolset for making it easier to convert SQL scripts to dynamic sql including parameter extraction and replacements.
This extension contributes the following settings:
makedynsql.makeDynamic
: Replaces and makes dynsqlmakedynsql.unJoinLines
: Splits lines into rows and preserve indentation. Reverse of join, thus unjoinmakedynsql.unJoinLinesAnd
: Splits lines into rows and preserve indentation. Reverse of join, thus unjoinmakedynsql.unJoinLinesOR
: Splits lines into rows and preserve indentation. Reverse of join, thus unjoin
// Example keybindings.json
[
{
"key": "ctrl+u",
"command": "makedynsql.unJoinLines"
},
{
"key": "ctrl+alt+u",
"command": "makedynsql.unJoinLines",
"args": {
"delimiter": "and",
"padding": true,
"reapplyPadding": true,
}
},
{
"key": "ctrl+alt+p",
"command": "makedynsql.unJoinLines",
"args": {
"delimiter": "and",
"delimiterNewline": false,
"padding": true,
"ignoreParentheses": false,
"reapplyPadding": true,
}
},
{
"key": "ctrl+alt+o",
"command": "makedynsql.unJoinLines",
"args": {
"delimiter": "or",
"padding": true,
"reapplyPadding": true,
"caseSensitive": true,
}
},
{
"key": "ctrl+alt+l",
"command": "makedynsql.unJoinLines",
"args": {
"delimiter": " ",
"padding": false,
"reapplyPadding": false,
}
},
]