diff options
| author | Michael Mauger | 2010-07-22 20:59:43 -0400 |
|---|---|---|
| committer | Michael Mauger | 2010-07-22 20:59:43 -0400 |
| commit | 5474c40f3e461db95068a918c02b7fdf56ae7f0f (patch) | |
| tree | 8fe03e17eeb08f9b6b5046a42a6955b017ccdc6d /etc | |
| parent | 9c0deccb84b7e02e2bda1ab5f85f912bd6099a07 (diff) | |
| download | emacs-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/NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -269,6 +269,22 @@ Each supported product has a custom variable `sql-*-login-params' | |||
| 269 | which is a list of the parameters to be prompted for before a | 269 | which is a list of the parameters to be prompted for before a |
| 270 | connection is established. | 270 | connection is established. |
| 271 | 271 | ||
| 272 | By default, the value of the parameter is simply prompted for. For | ||
| 273 | `server' and `database', they can be specified in a list as shown | ||
| 274 | below: | ||
| 275 | |||
| 276 | (server :file ARG) | ||
| 277 | (database :file ARG) | ||
| 278 | (server :completion ARG) | ||
| 279 | (database :completion ARG) | ||
| 280 | |||
| 281 | The ARG when :file is specified is a regexp that will match valid file | ||
| 282 | names (without the directory portion). Generally these strings will | ||
| 283 | be of the form ".+\.SUF" where SUF is the desired file suffix. | ||
| 284 | |||
| 285 | When :completion is specified, the ARG corresponds to the PREDICATE | ||
| 286 | argument 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. |
| 273 | An alist for recording different username, database and server | 289 | An alist for recording different username, database and server |
| 274 | values. If there are multiple databases that you connect to the | 290 | values. If there are multiple databases that you connect to the |