diff options
| author | Michael R. Mauger | 2019-02-18 23:15:54 -0500 |
|---|---|---|
| committer | Michael R. Mauger | 2019-02-18 23:15:54 -0500 |
| commit | 1a6bcc91e3e468e5a6d3e0b121bb675b576d3362 (patch) | |
| tree | ca325907ed02edcd6a463b5f5e5482bbc6f81ab9 /etc/NEWS | |
| parent | ed1e805af7d4892e7354e8c9e2246d5017d4ff52 (diff) | |
| download | emacs-wallet.tar.gz emacs-wallet.zip | |
* lisp/progmodes/sql.el: Added password wallet usingwallet
`auth-source' package.
(sql-auth-source-search-wallet): New function.
(sql-password-wallet): New variable.
(sql-password-search-wallet-function): New variable.
(sql-get-login): Handle password wallet search.
(sql-product-interactive): Handle password function.
* test/lisp/progmodes/sql-test.el: Test wallet changes.
(sql-test-login-params): New test variable.
(with-sql-test-connect-harness): New macro to wrap test
configuration around calls to `sql-connect'.
(sql-test-connect, sql-test-connect-password-func)
(sql-test-connect-wallet-server-database)
(sql-test-connect-wallet-database)
(sql-test-connect-wallet-server): New ERT tests.
* etc/NEWS: Updated SQL Mode descriptions.
Diffstat (limited to 'etc/NEWS')
| -rw-r--r-- | etc/NEWS | 48 |
1 files changed, 33 insertions, 15 deletions
| @@ -515,27 +515,45 @@ end. | |||
| 515 | 515 | ||
| 516 | ** SQL | 516 | ** SQL |
| 517 | 517 | ||
| 518 | *** Installation of 'sql-indent' from ELPA is strongly encouraged. | 518 | *** SQL Indent Minor Mode |
| 519 | This package support sophisticated rules for properly indenting SQL | 519 | |
| 520 | statements. SQL is not like other programming languages like C, Java, | 520 | SQL Mode now supports the ELPA 'sql-indent' package for assisting |
| 521 | or Python where code is sparse and rules for formatting are fairly | 521 | sophisticated SQL indenting rules. Note, however, that SQL is not |
| 522 | well established. Instead SQL is more like COBOL (from which it came) | 522 | like other programming languages like C, Java, or Python where code is |
| 523 | and code tends to be very dense and line ending decisions driven by | 523 | sparse and rules for formatting are fairly well established. Instead |
| 524 | syntax and line length considerations to make readable code. | 524 | SQL is more like COBOL (from which it came) and code tends to be very |
| 525 | Experienced SQL developers may prefer to rely upon existing Emacs | 525 | dense and line ending decisions driven by syntax and line length |
| 526 | facilities for formatting code but the 'sql-indent' package provides | 526 | considerations to make readable code. Experienced SQL developers may |
| 527 | facilities to aid more casual SQL developers layout queries and | 527 | prefer to rely upon existing Emacs facilities for formatting code but |
| 528 | complex expressions. | 528 | the 'sql-indent' package provides facilities to aid more casual SQL |
| 529 | 529 | developers layout queries and complex expressions. | |
| 530 | *** 'sql-use-indent-support' (default t) enables SQL indention support. | 530 | |
| 531 | **** 'sql-use-indent-support' (default t) enables SQL indention support. | ||
| 531 | The 'sql-indent' package from ELPA must be installed to get the | 532 | The 'sql-indent' package from ELPA must be installed to get the |
| 532 | indentation support in 'sql-mode' and 'sql-interactive-mode'. | 533 | indentation support in 'sql-mode' and 'sql-interactive-mode'. |
| 533 | 534 | ||
| 534 | *** 'sql-mode-hook' and 'sql-interactive-mode-hook' changed. | 535 | **** 'sql-mode-hook' and 'sql-interactive-mode-hook' changed. |
| 535 | Both hook variables have had 'sql-indent-enable' added to their | 536 | Both hook variables have had 'sql-indent-enable' added to their |
| 536 | default values. If youhave existing customizations to these variables, | 537 | default values. If you have existing customizations to these variables, |
| 537 | you should make sure that the new default entry is included. | 538 | you should make sure that the new default entry is included. |
| 538 | 539 | ||
| 540 | *** Connection Wallet | ||
| 541 | |||
| 542 | Database passwords can now by stored in NETRC or JSON data files that | ||
| 543 | may optionally be encrypted. When establishing an interactive session | ||
| 544 | with the database via 'sql-connect' or a product specific function, | ||
| 545 | like 'sql-mysql' or 'my-postgres', the password wallet will be | ||
| 546 | searched for the password. The 'sql-product', 'sql-server', | ||
| 547 | 'sql-database', and the 'sql-username' will be used to identify the | ||
| 548 | appropriate authorization. This eliminates the discouraged practice of | ||
| 549 | embedding database passwords in your Emacs initialization. | ||
| 550 | |||
| 551 | See the `auth-source' module for complete documentation on the file | ||
| 552 | formats. By default, the wallet file is expected to be in the | ||
| 553 | `user-emacs-directory', named 'sql-wallet' or '.sql-wallet', with | ||
| 554 | '.json' (JSON) or no (NETRC) suffix. Both file formats can optionally | ||
| 555 | be encrypted with GPG by adding an additional '.gpg' suffix. | ||
| 556 | |||
| 539 | ** Term | 557 | ** Term |
| 540 | 558 | ||
| 541 | --- | 559 | --- |