Variable: sql-send-terminator

sql-send-terminator is a customizable variable defined in sql.el.gz.

Value

nil

Documentation

When non-nil, add a terminator to text sent to the SQL interpreter.

When text is sent to the SQL interpreter (via sql-send-string, sql-send-region, sql-send-paragraph or sql-send-buffer), a command terminator can be automatically sent as well. The terminator is not sent, if the string sent already ends with the terminator.

If this value is t, then the default command terminator for the SQL interpreter is sent. If this value is a string, then the string is sent.

If the value is a cons cell of the form (PAT . TERM), then PAT is a regexp used to match the terminator in the string and TERM is the terminator to be sent. This form is useful if the SQL interpreter has more than one way of submitting a SQL command. The PAT regexp can match any of them, and TERM is the way we do it automatically.

This variable was added, or its default value changed, in Emacs 22.2.

Probably introduced at or before Emacs version 24.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
(defcustom sql-send-terminator nil
  "When non-nil, add a terminator to text sent to the SQL interpreter.

When text is sent to the SQL interpreter (via `sql-send-string',
`sql-send-region', `sql-send-paragraph' or `sql-send-buffer'), a
command terminator can be automatically sent as well.  The
terminator is not sent, if the string sent already ends with the
terminator.

If this value is t, then the default command terminator for the
SQL interpreter is sent.  If this value is a string, then the
string is sent.

If the value is a cons cell of the form (PAT . TERM), then PAT is
a regexp used to match the terminator in the string and TERM is
the terminator to be sent.  This form is useful if the SQL
interpreter has more than one way of submitting a SQL command.
The PAT regexp can match any of them, and TERM is the way we do
it automatically."

  :type '(choice (const  :tag "No Terminator" nil)
		 (const  :tag "Default Terminator" t)
		 (string :tag "Terminator String")
		 (cons   :tag "Terminator Pattern and String"
			 (regexp :tag "Terminator Pattern")
			 (string :tag "Terminator String")))
  :version "22.2")