diff options
| author | Michael Mauger | 2010-07-18 14:44:32 -0400 |
|---|---|---|
| committer | Michael Mauger | 2010-07-18 14:44:32 -0400 |
| commit | 30c4d8dcb8354549c7de86a827427d0fe96d508e (patch) | |
| tree | a24206e399c061d34f819067a0f1b4ecfde10d57 /etc | |
| parent | 8d16a259868cba3703a696bfced3e224ccc43f36 (diff) | |
| download | emacs-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/NEWS | 41 |
1 files changed, 34 insertions, 7 deletions
| @@ -42,7 +42,7 @@ lib-src/Makefile by hand in order to use the associated features. | |||
| 42 | This is only useful if your crt*.o files are in a non-standard location. | 42 | This 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 |
| 46 | to configure. Note that other libraries used by Emacs, RSVG and GConf, | 46 | to configure. Note that other libraries used by Emacs, RSVG and GConf, |
| 47 | also depend on Gtk+. You can disable them with --without-rsvg and | 47 | also 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 |
| 260 | The variables `sql-product', `sql-user', `sql-server', and | 260 | variables `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. |
| 264 | The custom variable `sql-port' can be specified for connection to | 264 | 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' | |||
| 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 | *** Added `sql-connection-alist' to record login parameter values. | ||
| 273 | An alist for recording different username, database and server | ||
| 274 | values. If there are multiple databases that you connect to the | ||
| 275 | parameters needed can be stored in this alist. | ||
| 276 | |||
| 277 | For 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 | |||
| 286 | This defines two connections named "dev" and "prd". | ||
| 287 | |||
| 288 | *** Added `sql-connect' to use predefined connections. | ||
| 289 | Sets the login parameters based on the values in the | ||
| 290 | `sql-connection-alist' and start a SQL interactive session. Any | ||
| 291 | values specified in the connection will not be prompted for. | ||
| 292 | |||
| 293 | In the example above, if the user were to invoke M-x sql-connect, they | ||
| 294 | would be prompted for the connection. The user can respond with | ||
| 295 | either "dev" or "prd". The "dev" connection would connect to the | ||
| 296 | SQLite database without prompting; the "prd" connection would prompt | ||
| 297 | for the users password and then connect to the Oracle database. | ||
| 298 | |||
| 272 | *** Added option `sql-send-terminator'. | 299 | *** Added option `sql-send-terminator'. |
| 273 | When set makes sure that each command sent with `sql-send-*' commands | 300 | When set makes sure that each command sent with `sql-send-*' commands |
| 274 | are properly terminated and submitted to the SQL processor. | 301 | are properly terminated and submitted to the SQL processor. |
| 275 | 302 | ||
| 276 | *** Added option `sql-oracle-scan-on'. | 303 | *** Added option `sql-oracle-scan-on'. |
| 277 | When set commands sent to Oracle's SQL*Plus are scanned for strings | 304 | When set commands sent to Oracle's SQL*Plus are scanned for strings |
| 278 | starting with an ampersand and the user is asked for replacement | 305 | starting with an ampersand and the user is asked for replacement text. |
| 279 | text. In general, the SQL*Plus option SCAN should be set OFF under | 306 | In general, the SQL*Plus option SCAN should always be set OFF under |
| 280 | SQL interactive mode. | 307 | SQL 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. |
| 283 | This prevents the comand interpretter for MySQL and Postgres from | 310 | This prevents the comand interpretter for MySQL and Postgres from |