sql-mode-map
sql-mode-map is a variable defined in `
sql.el
'.
Its value is shown
below.
- This variable may be risky if used as a file-local variable.
Documentation:
Mode map used for `sql-mode'.
Value:
(keymap
(menu-bar keymap
(SQL menu-item "SQL"
(keymap "SQL"
(Send\ Paragraph menu-item "Send Paragraph" sql-send-paragraph :enable
(sql-buffer-live-p sql-buffer))
(Send\ Region menu-item "Send Region" sql-send-region :enable
(and mark-active
(sql-buffer-live-p sql-buffer)))
(Send\ Buffer menu-item "Send Buffer" sql-send-buffer :enable
(sql-buffer-live-p sql-buffer))
(Send\ String menu-item "Send String" sql-send-string :enable
(sql-buffer-live-p sql-buffer))
(nil-7 menu-item "--")
(List\ all\ objects menu-item "List all objects" sql-list-all :enable
(and
(sql-buffer-live-p sql-buffer)
(sql-get-product-feature sql-product :list-all)))
(List\ table\ details menu-item "List table details" sql-list-table :enable
(and
(sql-buffer-live-p sql-buffer)
(sql-get-product-feature sql-product :list-table)))
(nil-7-7 menu-item "--")
(Start\ SQLi\ session menu-item "Start SQLi session" sql-product-interactive :enable
(sql-get-product-feature sql-product :sqli-comint-func)
:visible
(not sql-connection-alist))
(Start\.\.\. menu-item "Start..."
("--"
["New SQLi Session" sql-product-interactive
(sql-get-product-feature sql-product :sqli-comint-func)])
:filter
#[257 "\302\301!\300\"\207"
["Start..." sql-connection-menu-filter easy-menu-filter-return]
4 "\n\n(fn MENU)"]
:visible sql-connection-alist)
(-- menu-item "--" :visible :enable sql-connection-alist)
(Show\ SQLi\ buffer menu-item "Show SQLi buffer" sql-show-sqli-buffer)
(Set\ SQLi\ buffer menu-item "Set SQLi buffer" sql-set-sqli-buffer)
(Pop\ to\ SQLi\ buffer\ after\ send menu-item "Pop to SQLi buffer after send" sql-toggle-pop-to-buffer-after-send-region :button
(:toggle . sql-pop-to-buffer-after-send-region))
(---14 menu-item "--" nil :enable 'nil)
(Product menu-item "Product"
(keymap "Product"
(ANSI menu-item "ANSI" sql-highlight-ansi-keywords :button
(:radio eq sql-product 'ansi))
(DB2 menu-item "DB2" sql-highlight-db2-keywords :button
(:radio eq sql-product 'db2))
(Informix menu-item "Informix" sql-highlight-informix-keywords :button
(:radio eq sql-product 'informix))
(Ingres menu-item "Ingres" sql-highlight-ingres-keywords :button
(:radio eq sql-product 'ingres))
(Interbase menu-item "Interbase" sql-highlight-interbase-keywords :button
(:radio eq sql-product 'interbase))
(Linter menu-item "Linter" sql-highlight-linter-keywords :button
(:radio eq sql-product 'linter))
(Microsoft menu-item "Microsoft" sql-highlight-ms-keywords :button
(:radio eq sql-product 'ms))
(MySQL menu-item "MySQL" sql-highlight-mysql-keywords :button
(:radio eq sql-product 'mysql))
(Oracle menu-item "Oracle" sql-highlight-oracle-keywords :button
(:radio eq sql-product 'oracle))
(Postgres menu-item "Postgres" sql-highlight-postgres-keywords :button
(:radio eq sql-product 'postgres))
(Solid menu-item "Solid" sql-highlight-solid-keywords :button
(:radio eq sql-product 'solid))
(SQLite menu-item "SQLite" sql-highlight-sqlite-keywords :button
(:radio eq sql-product 'sqlite))
(Sybase menu-item "Sybase" sql-highlight-sybase-keywords :button
(:radio eq sql-product 'sybase))
(Vertica menu-item "Vertica" sql-highlight-vertica-keywords :button
(:radio eq sql-product 'vertica)))))))
(remap keymap
(end-of-defun . sql-end-of-statement)
(beginning-of-defun . sql-beginning-of-statement))
(3 keymap
(12 keymap
(116 . sql-list-table)
(97 . sql-list-all))
(26 . sql-show-sqli-buffer)
(9 . sql-product-interactive)
(14 . sql-send-line-and-next)
(2 . sql-send-buffer)
(19 . sql-send-string)
(18 . sql-send-region)
(3 . sql-send-paragraph)))