Function: sql-linter
sql-linter is an autoloaded, interactive and byte-compiled function
defined in sql.el.gz.
Signature
(sql-linter &optional BUFFER)
Documentation
Run inl by RELEX as an inferior process.
If buffer *SQL* exists but no process is running, make a new process.
If buffer exists and a process is running, just switch to buffer
*SQL*.
Interpreter used comes from variable sql-linter-program - usually inl.
Login uses the variables sql-user, sql-password, sql-database and
sql-server as defaults, if set. Additional command line parameters
can be stored in the list sql-linter-options. Run inl -h to get help on
parameters.
sql-database is used to set the LINTER_MBX environment variable for
local connections, sql-server refers to the server name from the
nodetab file for the network connection (dbc_tcp or friends must run
for this to work). If sql-password is an empty string, inl will use
an empty password.
The buffer is put in SQL interactive mode, giving commands for sending
input. See sql-interactive-mode.
To set the buffer name directly, use C-u (universal-argument)
before M-x sql-linter (sql-linter). Once session has started,
M-x sql-rename-buffer (sql-rename-buffer) can be called separately to rename the
buffer.
(Type C-h m (describe-mode) in the SQL buffer for a list of commands.)
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
;;;###autoload
(defun sql-linter (&optional buffer)
"Run inl by RELEX as an inferior process.
If buffer `*SQL*' exists but no process is running, make a new process.
If buffer exists and a process is running, just switch to buffer
`*SQL*'.
Interpreter used comes from variable `sql-linter-program' - usually `inl'.
Login uses the variables `sql-user', `sql-password', `sql-database' and
`sql-server' as defaults, if set. Additional command line parameters
can be stored in the list `sql-linter-options'. Run inl -h to get help on
parameters.
`sql-database' is used to set the LINTER_MBX environment variable for
local connections, `sql-server' refers to the server name from the
`nodetab' file for the network connection (dbc_tcp or friends must run
for this to work). If `sql-password' is an empty string, inl will use
an empty password.
The buffer is put in SQL interactive mode, giving commands for sending
input. See `sql-interactive-mode'.
To set the buffer name directly, use \\[universal-argument]
before \\[sql-linter]. Once session has started,
\\[sql-rename-buffer] can be called separately to rename the
buffer.
\(Type \\[describe-mode] in the SQL buffer for a list of commands.)"
(interactive "P")
(sql-product-interactive 'linter buffer))