aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Mauger2010-07-22 20:59:43 -0400
committerMichael Mauger2010-07-22 20:59:43 -0400
commit5474c40f3e461db95068a918c02b7fdf56ae7f0f (patch)
tree8fe03e17eeb08f9b6b5046a42a6955b017ccdc6d /etc
parent9c0deccb84b7e02e2bda1ab5f85f912bd6099a07 (diff)
downloademacs-5474c40f3e461db95068a918c02b7fdf56ae7f0f.tar.gz
emacs-5474c40f3e461db95068a918c02b7fdf56ae7f0f.zip
SQL Mode Version2.4 - Improved login prompting
* progmodes/sql.el: Version 2.4. Improved Login prompting. (sql-login-params): New widget definition. (sql-oracle-login-params, sql-mysql-login-params) (sql-solid-login-params, sql-sybase-login-params) (sql-informix-login-params, sql-ingres-login-params) (sql-ms-login-params, sql-postgres-login-params) (sql-interbase-login-params, sql-db2-login-params) (sql-linter-login-params): Use it. (sql-sqlite-login-params): Use it; Define "database" parameter as a file name. (sql-sqlite-program): Change to "sqlite3" (sql-comint-sqlite): Make sure database name is complete. (sql-for-each-login): New function. (sql-connect, sql-save-connection): Use it. (sql-get-login-ext): New function. (sql-get-login): Use it. (sql-make-alternate-buffer-name): Handle :file parameters.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index cf5e73ef36b..31dd69d5b4c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -269,6 +269,22 @@ 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
272By default, the value of the parameter is simply prompted for. For
273`server' and `database', they can be specified in a list as shown
274below:
275
276 (server :file ARG)
277 (database :file ARG)
278 (server :completion ARG)
279 (database :completion ARG)
280
281The ARG when :file is specified is a regexp that will match valid file
282names (without the directory portion). Generally these strings will
283be of the form ".+\.SUF" where SUF is the desired file suffix.
284
285When :completion is specified, the ARG corresponds to the PREDICATE
286argument to the `completing-read' function.
287
272*** Added `sql-connection-alist' to record login parameter values. 288*** Added `sql-connection-alist' to record login parameter values.
273An alist for recording different username, database and server 289An alist for recording different username, database and server
274values. If there are multiple databases that you connect to the 290values. If there are multiple databases that you connect to the