aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Mauger2010-07-18 14:44:32 -0400
committerMichael Mauger2010-07-18 14:44:32 -0400
commit30c4d8dcb8354549c7de86a827427d0fe96d508e (patch)
treea24206e399c061d34f819067a0f1b4ecfde10d57 /etc
parent8d16a259868cba3703a696bfced3e224ccc43f36 (diff)
downloademacs-30c4d8dcb8354549c7de86a827427d0fe96d508e.tar.gz
emacs-30c4d8dcb8354549c7de86a827427d0fe96d508e.zip
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.
42This is only useful if your crt*.o files are in a non-standard location. 42This is only useful if your crt*.o files are in a non-standard location.
43 43
44--- 44---
45** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3 45** Emacs can be compiled against Gtk+ 3.0 if you pass --with-x-toolkit=gtk3
46to configure. Note that other libraries used by Emacs, RSVG and GConf, 46to configure. Note that other libraries used by Emacs, RSVG and GConf,
47also depend on Gtk+. You can disable them with --without-rsvg and 47also depend on Gtk+. You can disable them with --without-rsvg and
48--without-gconf. 48--without-gconf.
@@ -256,9 +256,9 @@ For example, adding "(diff-mode . ((mode . whitespace)))" to your
256 256
257** SQL Mode enhancements. 257** SQL Mode enhancements.
258 258
259*** Several variables have been marked as safe local variables. 259*** Several variables have been marked as safe local variables. The
260The variables `sql-product', `sql-user', `sql-server', and 260variables `sql-product', `sql-user', `sql-server', `sql-database' and
261`sql-database' can now be safely used as local variables. 261`sql-port' can now be safely used as local variables.
262 262
263*** Added ability to login with a port on MySQL. 263*** Added ability to login with a port on MySQL.
264The custom variable `sql-port' can be specified for connection to 264The custom variable `sql-port' can be specified for connection to
@@ -269,15 +269,42 @@ Each supported product has a custom variable `sql-*-login-params'
269which is a list of the parameters to be prompted for before a 269which is a list of the parameters to be prompted for before a
270connection is established. 270connection is established.
271 271
272*** Added `sql-connection-alist' to record login parameter values.
273An alist for recording different username, database and server
274values. If there are multiple databases that you connect to the
275parameters needed can be stored in this alist.
276
277For example, the following might be set in the user's init.el:
278
279 (setq sql-connection-alist
280 '((dev (sql-product 'sqlite)
281 (sql-database "/home/mmaug/dev.db"))
282 (prd (sql-product 'oracle)
283 (sql-user "mmaug")
284 (sql-database "iprd2a"))))
285
286This defines two connections named "dev" and "prd".
287
288*** Added `sql-connect' to use predefined connections.
289Sets the login parameters based on the values in the
290`sql-connection-alist' and start a SQL interactive session. Any
291values specified in the connection will not be prompted for.
292
293In the example above, if the user were to invoke M-x sql-connect, they
294would be prompted for the connection. The user can respond with
295either "dev" or "prd". The "dev" connection would connect to the
296SQLite database without prompting; the "prd" connection would prompt
297for the users password and then connect to the Oracle database.
298
272*** Added option `sql-send-terminator'. 299*** Added option `sql-send-terminator'.
273When set makes sure that each command sent with `sql-send-*' commands 300When set makes sure that each command sent with `sql-send-*' commands
274are properly terminated and submitted to the SQL processor. 301are properly terminated and submitted to the SQL processor.
275 302
276*** Added option `sql-oracle-scan-on'. 303*** Added option `sql-oracle-scan-on'.
277When set commands sent to Oracle's SQL*Plus are scanned for strings 304When set commands sent to Oracle's SQL*Plus are scanned for strings
278starting with an ampersand and the user is asked for replacement 305starting with an ampersand and the user is asked for replacement text.
279text. In general, the SQL*Plus option SCAN should be set OFF under 306In general, the SQL*Plus option SCAN should always be set OFF under
280SQL interactive mode. 307SQL interactive mode and this option used in its place.
281 308
282*** SQL interactive mode will replace tabs with spaces. 309*** SQL interactive mode will replace tabs with spaces.
283This prevents the comand interpretter for MySQL and Postgres from 310This prevents the comand interpretter for MySQL and Postgres from