Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following table defines pre-set variables and their function.

CONNECTIONSProvides the directory name for "Local Database Servers" folder.
DATABASEContains database name which will be used by \connect and \reconnect commands.
DATABASEUSERNAMEThis variable contains the current database user name, when connected.
HISTCONTROLThis variable allows control over how FluidShell stores the command history.
HISTFILEProvides the location of the command buffer file.
HISTFILESIZEThis variable defines the maximum number of commands that will be retained (in the physical file) by FluidShell when it exits.
HISTSAVEDetermines whether the command history should be saved on disk or not.
HISTSIZENumber of lines to be kept in the command history buffer.
HOMEHome directory of the current user.
IS_CONNECTEDThis variable stores the connection status of the FluidShell.
LINENOAn internal variable which contains the current line number within the SQL buffer.
MAX_ROWSDetermines the maximum number of rows returned by the \go command.
PROMPTAllows changing the command prompt.
SERVERNAMEThis variable contains the current connection server name, when connected.
SHELL_VERSIONContains the FluidShell version number.
SQL_VARIABLESDetermines whether the variables should be expanded in SQL statements or not.
USERThis variable contains the name of user currently logged-in (to this machine).
USERNAMEThis variable contains the current connection user name, when connected.

CLI Settings

The following are the default settings for the Command Line Shell mode. These determine how \cli shell interprets sql statements and commands. See the \cli page for more on the three available modes ( \cli fluid, \cli shell, \cli sql). By default, the FluidShell is in \cli fluid mode.

...

Furthermore, the behavior of CLI_SHELL_LINE_INTERPRETER_EVAL_EXPLICIT_CMD and CLI_SHELL_LINE_INTERPRETER_EVAL_IMPLICIT_CMD variables is dependent on the CLI_SHELL_LINE_INTERPRETER_IMPLICIT_BEHAVIOR variable (which defines the mode in which the FluidShell interpreter is operating). The following table outlines the aforementioned behavior;

CLI...IMPLICIT_BEHAVIORCLI..._EVAL_EXPLICIT_CMDCLI..._EVAL_IMPLICIT_CMDSample command
sqlTRUETRUE

ls command gets executed.

\ls command gets executed.

sqlTRUEFALSE

ls command is not executed and is stored in the SQL Buffer.

\ls command gets executed.

sqlFALSETRUE

ls command gets executed.

\ls command gets executed.

sqlFALSEFALSE

ls command is not executed and is stored in the SQL Buffer.

\ls command is not executed and is stored in the SQL Buffer.

\declare and go are the only two commands which are executed under this configuration.

shellTRUE/FALSETRUE/FALSE

All commands are executed.

SQL Results Options

You can set your preferences on how SQL results are displayed in Fluidshell using the \set command.

To display SQL Statement, use the command\set CMD_GO_SHOW_SQL
Display column headers\set CMD_GO_SHOW_COLUMNHEADERS
Display query statistics\set CMD_GO_SHOW_QUERYSTATS
Display warnings\set CMD_GO_SHOW_WARNINGS
Display warnings headers\set CMD_GO_SHOW_WARNINGHEADERS
Always display 'records affected' count\set CMD_GO_SHOW_ALWAYSDISPLAYSUCCESS
Display only the total number of affected records\set CMD_GO_SHOW_SUM
Margin character length\set CMD_GO_SHOW_MARGINCHARLENGTH
Display client statistics\set CMD_GO_SHOW_CLIENTSTATS
Display SQL results as form entries\set CMD_GO_SHOW_RESULTSASFORM
Display when execution stops on an error\set CMD_GO_SHOW_EXEC_STOPONERROR

Aliases

The following table lists command aliases defined in the FluidShell:

AliasCommand
go\go
GO\go
ls\ls -l
man\help
set\declare