Skip to content

Commit

Permalink
[SQLLINE-424] Release 1.10
Browse files Browse the repository at this point in the history
Don't use 'pom.xml' to illustrate file name completion in
CompletionTest, because during release there is also a
'pom.xml.releaseBackup' file.
  • Loading branch information
julianhyde committed Feb 18, 2021
1 parent 4d49789 commit eaedfb1
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 11 deletions.
83 changes: 83 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,89 @@

For a full list of releases, see <a href="https://github.com/julianhyde/sqlline/releases">github</a>.

## <a href="https://github.com/julianhyde/sqlline/releases/tag/sqlline-1.10.0">1.10.0</a> (2021-02-17)

Pluggable [scripting engines](https://github.com/julianhyde/sqlline/issues/394) (to accommodate JDK 15)

This release requires Java version 8 or higher.

Bugs and functional changes:

* [<a href="https://github.com/julianhyde/sqlline/issues/394">SQLLINE-394</a>]
Make script engine configurable via new `scriptEngine` property;
compensates for the fact that Nashorn is not available on JDK 15 and above
* [<a href="https://github.com/julianhyde/sqlline/issues/419">SQLLINE-419</a>]
Allow empty string after connection name in config
* [<a href="https://github.com/julianhyde/sqlline/issues/386">SQLLINE-386</a>]
Support saved connections
* [<a href="https://github.com/julianhyde/sqlline/issues/415">SQLLINE-415</a>]
Switch off highlighting in manual; ignore case while searching through manual
* [<a href="https://github.com/julianhyde/sqlline/issues/254">SQLLINE-254</a>]
Live templates support
* [<a href="https://github.com/julianhyde/sqlline/issues/412">SQLLINE-412</a>]
Autocompletion for all properties with FILE_PATH type
* [<a href="https://github.com/julianhyde/sqlline/issues/410">SQLLINE-410</a>]
Respect line separator while column size calculations
* [<a href="https://github.com/julianhyde/sqlline/issues/157">SQLLINE-157</a>]
Column types in header
* [<a href="https://github.com/julianhyde/sqlline/issues/391">SQLLINE-391</a>]
Set error code when `-e` command fails
* [<a href="https://github.com/julianhyde/sqlline/issues/407">SQLLINE-407</a>]
Autocompletion for `!help` command
* [<a href="https://github.com/julianhyde/sqlline/issues/336">SQLLINE-336</a>] and
* [<a href="https://github.com/julianhyde/sqlline/issues/376">SQLLINE-376</a>]
Support PL/SQL and PL/pgSQL queries, and ability to add similar support
for other dialects
* [<a href="https://github.com/julianhyde/sqlline/issues/402">SQLLINE-402</a>]
Table styles for table output format
* [<a href="https://github.com/julianhyde/sqlline/issues/361">SQLLINE-361</a>]
Support patterns for tables, columns, procedures; add parameter support for
`!tables`, `!columns`, `!indexes`, `!primarykeys`, and `!procedures`
commands
* [<a href="https://github.com/julianhyde/sqlline/issues/378">SQLLINE-378</a>]
Check for silent property before outputting info message; `--no-` prefix for
string properties is handled as empty if empty value is allowed for that
property; `--silent` as input parameter makes prompts empty
* [<a href="https://github.com/julianhyde/sqlline/issues/389">SQLLINE-389</a>]
Respect all properties from properties file
* [<a href="https://github.com/julianhyde/sqlline/issues/395">SQLLINE-395</a>]
Enable autopairing JLine feature
* [<a href="https://github.com/julianhyde/sqlline/issues/355">SQLLINE-355</a>]
Colours in default and script prompts
* [<a href="https://github.com/julianhyde/sqlline/issues/388">SQLLINE-388</a>]
Use `outputstream` instead of `System.out`
* [<a href="https://github.com/julianhyde/sqlline/issues/379">SQLLINE-379</a>]
DB2 JDBC driver throws if SQLLine attempts to call `ResultSet.next` after
last row
* [<a href="https://github.com/julianhyde/sqlline/issues/362">SQLLINE-362</a>]
Add completion for `!go` command
* [<a href="https://github.com/julianhyde/sqlline/issues/367">SQLLINE-367</a>]
`!resize` command and `autoResize` property

Build and tests:
* Make `SqlLineParserTest` using parameterized tests
* Make tests for
[<a href="https://github.com/julianhyde/sqlline/issues/354">SQLLINE-354</a>]
work on Windows

Other:
* Document that the `promptscript` property is broken in JDK 15, per
[<a href="https://github.com/julianhyde/sqlline/issues/394">SQLLINE-394</a>]
(but see the new `scriptEngine` property)
* [<a href="https://github.com/julianhyde/sqlline/issues/392">SQLLINE-392</a>]
Add JDBC url templates for Hiveserver2
* Regenerate web site for sqlline-1.9.0
* [<a href="https://github.com/julianhyde/sqlline/issues/380">SQLLINE-380</a>]
Add Maven wrapper, so that people may build using "./mvnw"
* Upgrades:
* [<a href="https://github.com/julianhyde/sqlline/issues/417">SQLLINE-417</a>]
Update JLine to 3.18.0, add geshi color scheme
* [<a href="https://github.com/julianhyde/sqlline/issues/421">SQLLINE-421</a>]
Require Maven 3.2.3 or higher
* [<a href="https://github.com/julianhyde/sqlline/issues/382">SQLLINE-382</a>]
Update JLine3 to 3.16.0
* Bump checkstyle from 8.23 to 8.29

## <a href="https://github.com/julianhyde/sqlline/releases/tag/sqlline-1.9.0">1.9.0</a> (2019-10-16)

There are several improvements regarding user interaction, such as
Expand Down
4 changes: 2 additions & 2 deletions HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Capitalization is tricky:

Make sure `mvn clean install`, `mvn site`, and
`mvn javadoc:javadoc javadoc:test-javadoc` pass under JDK 8, 9, 10,
11, 12, and 13.
11, 12, 13, 14, and 15.

Write release notes. Run the
[relNotes](https://github.com/julianhyde/share/blob/master/tools/relNotes)
Expand All @@ -21,7 +21,7 @@ script and append the output to [HISTORY.md](HISTORY.md).
Update version numbers in README, README.md, src/docbkx/manual.xml,
and the copyright date in NOTICE.

Switch to JDK 13.
Switch to JDK 15.

Check that the sandbox is clean:

Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SQLLine - Shell for issuing SQL to relational databases via JDBC

Copyright (c) 2002,2003,2004,2005,2006,2007 Marc Prud'hommeaux
Copyright (c) 2004-2010 The Eigenbase Project
Copyright (c) 2013-2019 Julian Hyde
Copyright (c) 2013-2021 Julian Hyde
All rights reserved.

===============================================================================
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SQLLine release 1.9.0
SQLLine release 1.10.0

This is a source or binary distribution of SQLLine.

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you have [Coursier](https://github.com/coursier/coursier) installed, you
can quickly connect to a [demo Hypersonic database](https://github.com/julianhyde/foodmart-data-hsqldb) with:

```
$ coursier launch sqlline:sqlline:1.9.0 org.hsqldb:hsqldb:2.5.0 net.hydromatic:foodmart-data-hsqldb:0.4 -M sqlline.SqlLine -- -u jdbc:hsqldb:res:foodmart -n FOODMART -p FOODMART -d org.hsqldb.jdbcDriver
$ coursier launch sqlline:sqlline:1.10.0 org.hsqldb:hsqldb:2.5.0 net.hydromatic:foodmart-data-hsqldb:0.4 -M sqlline.SqlLine -- -u jdbc:hsqldb:res:foodmart -n FOODMART -p FOODMART -d org.hsqldb.jdbcDriver
0: jdbc:hsqldb:res:foodmart> select avg("shelf_height" * "shelf_width" * "shelf_depth") as "avg_volume" from "product";
+-------------------------+
| avg_volume |
Expand Down Expand Up @@ -119,22 +119,22 @@ Use the following definition to use `sqlline` in your maven project:
<dependency>
<groupId>sqlline</groupId>
<artifactId>sqlline</artifactId>
<version>1.9.0</version>
<version>1.10.0</version>
</dependency>
```

## Building

To build or run SQLLine, you need Java 8 or higher.
(When running on Java 15 and higher, the
[`promptscript` property is broken](https://github.com/julianhyde/sqlline/issues/394).)
(When running on Java 15 and higher, you will need to
[set `scriptEngine` before you use `promptscript`](https://github.com/julianhyde/sqlline/issues/394).)

Check out and build:

```bash
git clone git://github.com/julianhyde/sqlline.git
cd sqlline
./mvn package
./mvnw package
```

## Committers
Expand Down
2 changes: 1 addition & 1 deletion src/docbkx/manual.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[
<!-- "http://www.docbook.org/xml/4.2/docbookx.dtd" -->
<!-- "file:/sw/share/xml/dtd/docbookx/4.2.0/docbookx.dtd" -->
<!ENTITY VERSION "1.9.0">
<!ENTITY VERSION "1.10.0">
]>
<book>
<bookinfo>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/sqlline/CompletionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static Stream<Arguments> propertyCompletionProvider() {
of("!set colorScheme che", "!set colorScheme chester"),
of("!set colorScheme sol", "!set colorScheme solarized"),
// file completer should return file names
of("!set historyFile pom.", "!set historyFile pom.xml"),
of("!set historyFile README.", "!set historyFile README.md"),
of("!set historyFile sr", "!set historyFile src" + File.separator)
);
}
Expand Down

0 comments on commit eaedfb1

Please sign in to comment.