Skip to content

Commit

Permalink
Change version number, and fix some content
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Aug 1, 2024
1 parent 38fa361 commit c3f4acb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 39 deletions.
15 changes: 3 additions & 12 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# Look data for hsqldb release history and change log
# 'The Look' data set for hsqldb - release history and change log

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

## <a href="https://github.com/julianhyde/look-data-hsqldb/releases/tag/look-data-hsqldb-0.2">0.2</a> / 2022-03-10
## <a href="https://github.com/julianhyde/look-data-hsqldb/releases/tag/look-data-hsqldb-0.1">0.1</a> / xxxx-xx-xx

* Convert schema name to lower-case, table and column names to upper-camel-case
* Bump HSQLDB from 2.3.1 to 2.5.1, and change HSQLDB file format from 1.8 to 2.0
* Add a unit test
* Add a GitHub workflow to build and test
* Add Apache Maven wrapper
* Enable Dependabot

## <a href="https://github.com/julianhyde/look-data-hsqldb/releases/tag/look-data-hsqldb-0.1">0.1</a> / 2018-01-12

* Create, based upon Look database version 1.4 and [foodmart-data-hsqldb](github.com/julianhyde/foodmart-data-hsqldb)
* Create, based upon 'The Look' database and [chinook-data-hsqldb](github.com/julianhyde/chinook-data-hsqldb)
* Add history, howto
5 changes: 3 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
look-data-hsqldb release 0.2
look-data-hsqldb release 0.1

This is a source or binary distribution of look-data-hsqldb.
This is a source or binary distribution of look-data-hsqldb,
'The Look' data set for hsqldb.

Changes since the previous release are described in the
HISTORY.md file.
Expand Down
38 changes: 15 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,24 @@ License.
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.hydromatic/look-data-hsqldb/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.hydromatic/look-data-hsqldb)

# look-data-hsqldb
Look data set in hsqldb format
'The Look' data set for hsqldb

This project contains the Look data set as an embedded
This project contains the 'The Look' data set as an embedded
HSQLDB database.

It originated as the
[Look database](https://github.com/lerocha/look-database)
version 1.4, which itself is an alternative to the
[Northwind database](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql/linq/downloading-sample-databases).
It originated as an internal test data set for the Looker business
intelligence (BI) tool, modeling a fictitious fashion business.

# Schema

Look's schema consists of 11 tables:

| Table | Row count |
| :------------ | --------: |
| Album | 347 |
| Artist | 275 |
| Customer | 59 |
| Employee | 8 |
| Genre | 25 |
| Invoice | 412 |
| InvoiceLine | 2,240 |
| MediaType | 5 |
| Playlist | 18 |
| PlaylistTrack | 8,715 |
| Track | 3,503 |
The Look's schema consists of 4 tables:

| Table | Row count |
| :------------------ | --------: |
| nested_and_repeated | 2 |
| orders | 59 |
| order_items | 8 |
| users | 275 |

Its size is about 900 KB uncompressed, 160 KB compressed.

Expand All @@ -63,7 +54,7 @@ add the artifact to your project's dependencies:
<dependency>
<groupId>net.hydromatic</groupId>
<artifactId>look-data-hsqldb</artifactId>
<version>0.2</version>
<version>0.1</version>
</dependency>
```

Expand All @@ -76,7 +67,7 @@ import java.sql.ResultSet;

final String url = "jdbc:hsqldb:res:look";
final String sql = "select \"EmployeeId\", \"LastName\" from \"Employee\"";
try (Connection c = DriverManager.getConnection(url, "sa", "");
try (Connection c = DriverManager.getConnection(url, "look", "look");
Statement s = c.createStatement();
ResultSet r = s.executeQuery(sql)) {
while (r.next()) {
Expand Down Expand Up @@ -153,6 +144,7 @@ On Windows, the last line is
## See also

Similar data sets:
* [chinook-data-hsqldb](https://github.com/julianhyde/chinook-data-hsqldb)
* [flight-data-hsqldb](https://github.com/julianhyde/flight-data-hsqldb)
* [foodmart-data-hsqldb](https://github.com/julianhyde/foodmart-data-hsqldb)
* [scott-data-hsqldb](https://github.com/julianhyde/scott-data-hsqldb)
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ limitations under the License.
</parent>

<artifactId>look-data-hsqldb</artifactId>
<version>0.3-SNAPSHOT</version>
<version>0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>look-data-hsqldb</name>
<description>Look data set in hsqldb format</description>
<url>http://github.com/julianhyde/look-data-hsqldb</url>
<inceptionYear>2018</inceptionYear>
<inceptionYear>2024</inceptionYear>
<organization>
<name>Julian Hyde</name>
<url>http://www.hydromatic.net</url>
Expand Down

0 comments on commit c3f4acb

Please sign in to comment.