aboutsummaryrefslogtreecommitdiffstats
path: root/etc/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'etc/NEWS')
-rw-r--r--etc/NEWS48
1 files changed, 33 insertions, 15 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 0cafbaae96c..253da499899 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
519This package support sophisticated rules for properly indenting SQL 519
520statements. SQL is not like other programming languages like C, Java, 520SQL Mode now supports the ELPA 'sql-indent' package for assisting
521or Python where code is sparse and rules for formatting are fairly 521sophisticated SQL indenting rules. Note, however, that SQL is not
522well established. Instead SQL is more like COBOL (from which it came) 522like other programming languages like C, Java, or Python where code is
523and code tends to be very dense and line ending decisions driven by 523sparse and rules for formatting are fairly well established. Instead
524syntax and line length considerations to make readable code. 524SQL is more like COBOL (from which it came) and code tends to be very
525Experienced SQL developers may prefer to rely upon existing Emacs 525dense and line ending decisions driven by syntax and line length
526facilities for formatting code but the 'sql-indent' package provides 526considerations to make readable code. Experienced SQL developers may
527facilities to aid more casual SQL developers layout queries and 527prefer to rely upon existing Emacs facilities for formatting code but
528complex expressions. 528the 'sql-indent' package provides facilities to aid more casual SQL
529 529developers 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.
531The 'sql-indent' package from ELPA must be installed to get the 532The 'sql-indent' package from ELPA must be installed to get the
532indentation support in 'sql-mode' and 'sql-interactive-mode'. 533indentation 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.
535Both hook variables have had 'sql-indent-enable' added to their 536Both hook variables have had 'sql-indent-enable' added to their
536default values. If youhave existing customizations to these variables, 537default values. If you have existing customizations to these variables,
537you should make sure that the new default entry is included. 538you should make sure that the new default entry is included.
538 539
540*** Connection Wallet
541
542Database passwords can now by stored in NETRC or JSON data files that
543may optionally be encrypted. When establishing an interactive session
544with the database via 'sql-connect' or a product specific function,
545like 'sql-mysql' or 'my-postgres', the password wallet will be
546searched for the password. The 'sql-product', 'sql-server',
547'sql-database', and the 'sql-username' will be used to identify the
548appropriate authorization. This eliminates the discouraged practice of
549embedding database passwords in your Emacs initialization.
550
551See the `auth-source' module for complete documentation on the file
552formats. 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
555be encrypted with GPG by adding an additional '.gpg' suffix.
556
539** Term 557** Term
540 558
541--- 559---