aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Mauger <[email protected]>2010-07-22 20:59:43 -0400
committerMichael Mauger <[email protected]>2010-07-22 20:59:43 -0400
commit5474c40f3e461db95068a918c02b7fdf56ae7f0f (patch)
tree8fe03e17eeb08f9b6b5046a42a6955b017ccdc6d /etc
parent9c0deccb84b7e02e2bda1ab5f85f912bd6099a07 (diff)
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 cf5e73ef36..31dd69d5b4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -269,6 +269,22 @@ 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.
+By default, the value of the parameter is simply prompted for. For
+`server' and `database', they can be specified in a list as shown
+below:
+
+ (server :file ARG)
+ (database :file ARG)
+ (server :completion ARG)
+ (database :completion ARG)
+
+The ARG when :file is specified is a regexp that will match valid file
+names (without the directory portion). Generally these strings will
+be of the form ".+\.SUF" where SUF is the desired file suffix.
+
+When :completion is specified, the ARG corresponds to the PREDICATE
+argument to the `completing-read' function.
+
*** 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