diff --git a/HISTORY.md b/HISTORY.md index a582314..b057c2d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 github. -## 0.2 / 2022-03-10 +## 0.1 / 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 - -## 0.1 / 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 diff --git a/README b/README index 56191e4..693e988 100644 --- a/README +++ b/README @@ -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. diff --git a/README.md b/README.md index 9cf0322..9b467cb 100644 --- a/README.md +++ b/README.md @@ -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. @@ -63,7 +54,7 @@ add the artifact to your project's dependencies: net.hydromatic look-data-hsqldb - 0.2 + 0.1 ``` @@ -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()) { @@ -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) diff --git a/pom.xml b/pom.xml index 7338470..1fc566e 100644 --- a/pom.xml +++ b/pom.xml @@ -25,13 +25,13 @@ limitations under the License. look-data-hsqldb - 0.3-SNAPSHOT + 0.1-SNAPSHOT jar look-data-hsqldb Look data set in hsqldb format http://github.com/julianhyde/look-data-hsqldb - 2018 + 2024 Julian Hyde http://www.hydromatic.net