From 7b6e386401a2ef5a5f7840d98bcd36f1f33f3402 Mon Sep 17 00:00:00 2001 From: Cosmin Popescu Date: Tue, 3 Apr 2018 08:02:51 +0200 Subject: [PATCH] resolve #33 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index c8c2c9a..f93620d 100644 --- a/README.md +++ b/README.md @@ -688,6 +688,16 @@ SWSqlReferencedBy employees(departmentId)=departments(id) You will get a resultset with the employee with the `id` 1. + +## Including a file + +If you want to create a stored procedure, you might want to execute the current +file. For this you have `SWInclude`. The command will execute the entire file +using the `WbInclude` command from `SQL Workbench/J`. If you follow the command +by a `!`, then the alternate delimiter is used. Otherwise the standard `;` +delimiter is used. The command can also take one argument, which could be the +file to be included, if you don't want it to be the current file. + SQL commands ======================================== @@ -1178,6 +1188,17 @@ If you activated the integration with `CtrlP`, then this will open up directly This will reset the profiles cache. Next time when you will access the `CtrlP` workbench tab, the profiles will be read again. +## SWInclude + +*Parameters*: + +* the file to include (optional, default the current file) + +The command will include a given file or the current file. It will execute +`wbinclude -file=;`. If you follow the command by a `!`, +then the alternate delimiter is used. + + Settings ======================================== -- GitLab