Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Connect / Disconnect commands via msg #107

Draft
wants to merge 4 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/locales/en-US/mssql.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ <h3>Foreword</h3>
<dl class="message-properties">
Examples have been included to help you do some common tasks.
<a onclick="RED.actions.invoke('core:show-examples-import-dialog')" href="#">Click here</a> to import an example or press the hamburger menu <a class="button" href="#"><i class="fa fa-bars"></i></a> select <b>import</b> then <b>examples</b> or press <kbd>ctrl+i</kbd>
</dl>
</dl>

<h3>Commands...</h3>
<div style="padding-left: 15px;">
<p>The connection to the database can be manually controlled by sending a <code>topic</code> containing <code>command</code> and a <code>payload</code> containing either <code>connect</code> or <code>disconnect</code>. This can be useful for forcing connection state at runtime.</p>
<div class="form-tips" style="width: 100%">
The result of this operation can be determined by adding a <code>complete</code> node or a <code>catch</code> node pointed at the MSSQL node.
</div>
</div>
<h3>Query Mode...</h3>
<div style="padding-left: 15px;">
<p>Select the execution mode, this can be "Query", "Stored procedure" or "Bulk Insert"</p>
Expand All @@ -32,7 +39,7 @@ <h3>Query Mode...</h3>
<p>INFO: TVP variables are only supported in stored procedures. Some variable types are not supported by the underlying SQL driver.
</p>
</div>

<h3>Query...</h3>
<div style="padding-left: 15px;">
<p>Enter the query or stored procedure name to execute. It is possible to use <i><a href="http://mustache.github.io/mustache.5.html" target="_new">mustache</a></i> format to access properties of the msg, flow context and global context.</p>
Expand Down Expand Up @@ -88,7 +95,7 @@ <h3>Query...</h3>
</ul>
</p>
</div>

<h3>Parameters...</h3>
<div style="padding-left: 15px;">
<p>Input and Output Parameters can be specified for a query or procedure. In bulk mode, the parameters represent the columns of the table</p>
Expand Down Expand Up @@ -118,8 +125,8 @@ <h3>Parameters...</h3>
</div>
<div style="padding-left: 15px;">
<code style="font-weight: bold;">Parameters</code>
<ul>
<li>
<ul>
<li>
<span>In/Out </span><code style="white-space: normal;">input</code>
<span>, Name </span><code style="white-space: normal;">name</code>
<span>, Type </span><code style="white-space: normal;">varchar(20)</code>
Expand All @@ -135,7 +142,7 @@ <h3>Parameters...</h3>
</div>
</p>
</div>

<h3>Output options...</h3>
<div style="padding-left: 15px;">
<h4>Output property</h4>
Expand Down
8 changes: 7 additions & 1 deletion src/locales/zh-TW/mssql.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ <h3>Foreword</h3>
Examples have been included to help you do some common tasks.
<a onclick="RED.actions.invoke('core:show-examples-import-dialog')" href="#">Click here</a> to import an example or press the hamburger menu <a class="button" href="#"><i class="fa fa-bars"></i></a> select <b>import</b> then <b>examples</b> or press <kbd>ctrl+i</kbd>
</dl>

<h3>Commands...</h3>
<div style="padding-left: 15px;">
<p>可以透過發送包含 <code>command</code> 的 <code>topic</code> 和包含 <code>connect</code> 的 <code>payload</code> 來手動控制與資料庫的連接代碼> 或<代碼>斷開</代碼>。這對於在運行時強制連線狀態很有用。</p>
<div class="form-tips" style="width: 100%">
可以透過新增指向MSSQL節點的<code>complete</code>節點或<code>catch</code>節點來確定此操作的結果
</div>
</div>
Steve-Mcl marked this conversation as resolved.
Show resolved Hide resolved
<h3>查詢模式...</h3>
<div style="padding-left: 15px;">
<p>選擇查詢模式, 可以為 "Query" 或是 "Stored procedure"</p>
Expand Down
Loading
Loading