summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Mauger <mmaug@yahoo.com>2010-07-18 14:44:32 -0400
committerMichael Mauger <mmaug@yahoo.com>2010-07-18 14:44:32 -0400
commit30c4d8dcb8354549c7de86a827427d0fe96d508e (patch)
treea24206e399c061d34f819067a0f1b4ecfde10d57 /etc
parent8d16a259868cba3703a696bfced3e224ccc43f36 (diff)
downloademacs-30c4d8dcb8354549c7de86a827427d0fe96d508e.tar.gz
SQL Mode V2.2 - Added sql-connect and sql-connection-alist
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS41
1 files changed, 34 insertions, 7 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bf60bcb31aa..8ea0b61c05b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -42,7 +42,7 @@ lib-src/Makefile by hand in order to use the associated features.
This is only useful if your crt*.o files are in a non-standard location.
---
-** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
+** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
to configure. Note that other libraries used by Emacs, RSVG and GConf,
also depend on Gtk+. You can disable them with --without-rsvg and
--without-gconf.
@@ -256,9 +256,9 @@ For example, adding "(diff-mode . ((mode . whitespace)))" to your
** SQL Mode enhancements.
-*** Several variables have been marked as safe local variables.
-The variables `sql-product', `sql-user', `sql-server', and
-`sql-database' can now be safely used as local variables.
+*** Several variables have been marked as safe local variables. The
+variables `sql-product', `sql-user', `sql-server', `sql-database' and
+`sql-port' can now be safely used as local variables.
*** Added ability to login with a port on MySQL.
The custom variable `sql-port' can be specified for connection to
@@ -269,15 +269,42 @@ Each supported product has a custom variable `sql-*-login-params'
which is a list of the parameters to be prompted for before a
connection is established.
+*** Added `sql-connection-alist' to record login parameter values.
+An alist for recording different username, database and server
+values. If there are multiple databases that you connect to the
+parameters needed can be stored in this alist.
+
+For example, the following might be set in the user's init.el:
+
+ (setq sql-connection-alist
+ '((dev (sql-product 'sqlite)
+ (sql-database "/home/mmaug/dev.db"))
+ (prd (sql-product 'oracle)
+ (sql-user "mmaug")
+ (sql-database "iprd2a"))))
+
+This defines two connections named "dev" and "prd".
+
+*** Added `sql-connect' to use predefined connections.
+Sets the login parameters based on the values in the
+`sql-connection-alist' and start a SQL interactive session. Any
+values specified in the connection will not be prompted for.
+
+In the example above, if the user were to invoke M-x sql-connect, they
+would be prompted for the connection. The user can respond with
+either "dev" or "prd". The "dev" connection would connect to the
+SQLite database without prompting; the "prd" connection would prompt
+for the users password and then connect to the Oracle database.
+
*** Added option `sql-send-terminator'.
When set makes sure that each command sent with `sql-send-*' commands
are properly terminated and submitted to the SQL processor.
*** Added option `sql-oracle-scan-on'.
When set commands sent to Oracle's SQL*Plus are scanned for strings
-starting with an ampersand and the user is asked for replacement
-text. In general, the SQL*Plus option SCAN should be set OFF under
-SQL interactive mode.
+starting with an ampersand and the user is asked for replacement text.
+In general, the SQL*Plus option SCAN should always be set OFF under
+SQL interactive mode and this option used in its place.
*** SQL interactive mode will replace tabs with spaces.
This prevents the comand interpretter for MySQL and Postgres from