Skip to content

Commit

Permalink
Rename Chinook to Look
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Aug 1, 2024
1 parent 1cbe0e9 commit 38fa361
Show file tree
Hide file tree
Showing 11 changed files with 15,704 additions and 15,704 deletions.
10 changes: 5 additions & 5 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Chinook data for hsqldb release history and change log
# Look data for hsqldb release history and change log

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

## <a href="https://github.com/julianhyde/chinook-data-hsqldb/releases/tag/chinook-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.2">0.2</a> / 2022-03-10

* 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
Expand All @@ -12,7 +12,7 @@ For a full list of releases, see
* Add Apache Maven wrapper
* Enable Dependabot

## <a href="https://github.com/julianhyde/chinook-data-hsqldb/releases/tag/chinook-data-hsqldb-0.1">0.1</a> / 2018-01-12
## <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 Chinook database version 1.4 and [foodmart-data-hsqldb](github.com/julianhyde/foodmart-data-hsqldb)
* Create, based upon Look database version 1.4 and [foodmart-data-hsqldb](github.com/julianhyde/foodmart-data-hsqldb)
* Add history, howto
8 changes: 4 additions & 4 deletions HOWTO.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Chinook-data-hsqldb HOWTO
# Look-data-hsqldb HOWTO

Here's some miscellaneous documentation about using and developing
Chinook Data Hsqldb.
Look Data Hsqldb.

# Release

Make sure that `mvn clean install site` runs on JDK 7, 8, 9, 10,
on Linux and Windows.
Also check [Travis CI](https://travis-ci.org/julianhyde/chinook-data-hsqldb).
Also check [Travis CI](https://travis-ci.org/julianhyde/look-data-hsqldb).

Update the [release history](HISTORY.md),
the version number at the bottom of [README](README.md),
Expand All @@ -28,6 +28,6 @@ mvn -Prelease -Dgpg.passphrase=${GPG_PASSPHRASE} release:perform
Then go to [Sonatype](https://oss.sonatype.org/#stagingRepositories),
log in, close the repository, and release.

Make sure that the [site](http://www.hydromatic.net/chinook-data-hsqldb/) has been updated.
Make sure that the [site](http://www.hydromatic.net/look-data-hsqldb/) has been updated.

[Announce the release](https://twitter.com/julianhyde/status/622842100736856064).
8 changes: 4 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@
The MIT License
-----------------------------------------------------------------------

The chinook-data-hsqldb bundles the following files under the MIT License:
The look-data-hsqldb bundles the following files under the MIT License:

- chinook.script, schema.png
The data set (from which chinook.script is derived) and schema diagram
from Chinook Database (https://github.com/lerocha/chinook-database)
- look.script, schema.png
The data set (from which look.script is derived) and schema diagram
from Look Database (https://github.com/lerocha/look-database)
Copyright (c) 2008-2017 Luis Rocha

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
8 changes: 4 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
chinook-data-hsqldb
Chinook data set in hsqldb format
look-data-hsqldb
Look data set in hsqldb format

Copyright (C) 2018-2022 Julian Hyde
All Rights Reserved.

Based upon the Chinook data set,
https://github.com/lerocha/chinook-database
Based upon the Look data set,
https://github.com/lerocha/look-database

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
chinook-data-hsqldb release 0.2
look-data-hsqldb release 0.2

This is a source or binary distribution of chinook-data-hsqldb.
This is a source or binary distribution of look-data-hsqldb.

Changes since the previous release are described in the
HISTORY.md file.
Expand All @@ -10,5 +10,5 @@ The LICENSE and NOTICE files contain license information.
If this is a source distribution, you can find instructions how to
build the release in the "Download and build" section in README.md.

Further information about chinook-data-hsqldb is available at its web
site, https://github.com/julianhyde/chinook-data-hsqldb.
Further information about look-data-hsqldb is available at its web
site, https://github.com/julianhyde/look-data-hsqldb.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ language governing permissions and limitations under the
License.
{% endcomment %}
-->
[![Build Status](https://github.com/julianhyde/chinook-data-hsqldb/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/julianhyde/chinook-data-hsqldb/actions?query=branch%3Amain)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.hydromatic/chinook-data-hsqldb/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.hydromatic/chinook-data-hsqldb)
[![Build Status](https://github.com/julianhyde/look-data-hsqldb/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/julianhyde/look-data-hsqldb/actions?query=branch%3Amain)
[![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)

# chinook-data-hsqldb
Chinook data set in hsqldb format
# look-data-hsqldb
Look data set in hsqldb format

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

It originated as the
[Chinook database](https://github.com/lerocha/chinook-database)
[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).

# Schema

Chinook's schema consists of 11 tables:
Look's schema consists of 11 tables:

| Table | Row count |
| :------------ | --------: |
Expand All @@ -55,14 +55,14 @@ Its size is about 900 KB uncompressed, 160 KB compressed.
# Using the data set

The data set is packaged as a jar file that is published to
[Maven Central](https://search.maven.org/#search%7Cga%7C1%7Ca%3Achinook-data-hsqldb)
[Maven Central](https://search.maven.org/#search%7Cga%7C1%7Ca%3Alook-data-hsqldb)
as a Maven artifact. To use the data in your Java application,
add the artifact to your project's dependencies:

```xml
<dependency>
<groupId>net.hydromatic</groupId>
<artifactId>chinook-data-hsqldb</artifactId>
<artifactId>look-data-hsqldb</artifactId>
<version>0.2</version>
</dependency>
```
Expand All @@ -74,7 +74,7 @@ import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;

final String url = "jdbc:hsqldb:res:chinook";
final String url = "jdbc:hsqldb:res:look";
final String sql = "select \"EmployeeId\", \"LastName\" from \"Employee\"";
try (Connection c = DriverManager.getConnection(url, "sa", "");
Statement s = c.createStatement();
Expand All @@ -86,50 +86,50 @@ try (Connection c = DriverManager.getConnection(url, "sa", "");
```

You can also connect using a JDBC interface such as [sqlline](https://github.com/julianhyde/sqlline).
Make sure that `chinook-data-hsqldb.jar` is on the class path, and start `sqlline`:
Make sure that `look-data-hsqldb.jar` is on the class path, and start `sqlline`:

```sql
$ ./sqlline
sqlline version 1.12.0
sqlline> !connect jdbc:hsqldb:res:chinook sa ""
0: jdbc:hsqldb:res:chinook> select count(*) from "chinook"."Track";
sqlline> !connect jdbc:hsqldb:res:look sa ""
0: jdbc:hsqldb:res:look> select count(*) from "look"."Track";
+----------------------+
| C1 |
+----------------------+
| 3503 |
+----------------------+
1 row selected (0.004 seconds)
0: jdbc:hsqldb:res:chinook> !quit
0: jdbc:hsqldb:res:look> !quit
```

If you use username and password "CHINOOK" and "CHINOOK", the default
schema is "chinook", so you can omit the table prefix, if you wish:
If you use username and password "LOOK" and "LOOK", the default
schema is "look", so you can omit the table prefix, if you wish:

```sql
$ ./sqlline
sqlline version 1.12.0
sqlline> !connect jdbc:hsqldb:res:chinook CHINOOK CHINOOK
0: jdbc:hsqldb:res:chinook> select count(*) from "Track";
sqlline> !connect jdbc:hsqldb:res:look LOOK LOOK
0: jdbc:hsqldb:res:look> select count(*) from "Track";
+----------------------+
| C1 |
+----------------------+
| 3503 |
+----------------------+
1 row selected (0.004 seconds)
0: jdbc:hsqldb:res:chinook> !quit
0: jdbc:hsqldb:res:look> !quit
```

## Get chinook-data-hsqldb
## Get look-data-hsqldb

### From Maven

Get chinook-data-hsqldb from
<a href="https://search.maven.org/#search%7Cga%7C1%7Cg%3Anet.hydromatic%20a%3Achinook-data-hsqldb">Maven Central</a>:
Get look-data-hsqldb from
<a href="https://search.maven.org/#search%7Cga%7C1%7Cg%3Anet.hydromatic%20a%3Alook-data-hsqldb">Maven Central</a>:

```xml
<dependency>
<groupId>net.hydromatic</groupId>
<artifactId>chinook-data-hsqldb</artifactId>
<artifactId>look-data-hsqldb</artifactId>
<version>0.2</version>
</dependency>
```
Expand All @@ -139,8 +139,8 @@ Get chinook-data-hsqldb from
Java version 8 or higher.

```bash
$ git clone git://github.com/julianhyde/chinook-data-hsqldb.git
$ cd chinook-data-hsqldb
$ git clone git://github.com/julianhyde/look-data-hsqldb.git
$ cd look-data-hsqldb
$ ./mvnw install
```

Expand All @@ -163,12 +163,12 @@ Similar data sets:
* License: Apache License, Version 2.0
* Author: Julian Hyde
* Blog: http://blog.hydromatic.net
* Project page: http://www.hydromatic.net/chinook-data-hsqldb
* Source code: https://github.com/julianhyde/chinook-data-hsqldb
* Distribution: <a href="https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22chinook-data-hsqldb%22">Maven Central</a>
* Project page: http://www.hydromatic.net/look-data-hsqldb
* Source code: https://github.com/julianhyde/look-data-hsqldb
* Distribution: <a href="https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22look-data-hsqldb%22">Maven Central</a>
* Developers list:
<a href="mailto:[email protected]">dev at calcite.apache.org</a>
(<a href="https://mail-archives.apache.org/mod_mbox/calcite-dev/">archive</a>,
<a href="mailto:[email protected]">subscribe</a>)
* Issues: https://github.com/julianhyde/chinook-data-hsqldb/issues
* Issues: https://github.com/julianhyde/look-data-hsqldb/issues
* <a href="HISTORY.md">Release notes and history</a>
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ limitations under the License.
<version>0.1</version>
</parent>

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

<name>chinook-data-hsqldb</name>
<description>Chinook data set in hsqldb format</description>
<url>http://github.com/julianhyde/chinook-data-hsqldb</url>
<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>
<organization>
<name>Julian Hyde</name>
Expand Down Expand Up @@ -81,21 +81,21 @@ limitations under the License.
<!-- Environment settings. -->
<distributionManagement>
<site>
<id>chinook-data-hsqldb.website</id>
<name>Chinook data for hsqldb Website</name>
<url>file:/home/jhyde/web2/chinook-data-hsqldb</url>
<id>look-data-hsqldb.website</id>
<name>Look data for hsqldb Website</name>
<url>file:/home/jhyde/web2/look-data-hsqldb</url>
</site>
</distributionManagement>

<issueManagement>
<system>github</system>
<url>https://github.com/julianhyde/chinook-data-hsqldb/issues</url>
<url>https://github.com/julianhyde/look-data-hsqldb/issues</url>
</issueManagement>

<scm>
<connection>scm:git:git://github.com/julianhyde/chinook-data-hsqldb.git</connection>
<developerConnection>scm:git:[email protected]:julianhyde/chinook-data-hsqldb.git</developerConnection>
<url>scm:git:git://github.com/julianhyde/chinook-data-hsqldb.git</url>
<connection>scm:git:git://github.com/julianhyde/look-data-hsqldb.git</connection>
<developerConnection>scm:git:[email protected]:julianhyde/look-data-hsqldb.git</developerConnection>
<url>scm:git:git://github.com/julianhyde/look-data-hsqldb.git</url>
<tag>HEAD</tag>
</scm>

Expand Down
16 changes: 8 additions & 8 deletions src/main/java/net/hydromatic/look/data/hsqldb/LookHsqldb.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.hydromatic.chinook.data.hsqldb;
package net.hydromatic.look.data.hsqldb;

/** Chinook data set in hsqldb format. */
public class ChinookHsqldb {
/** Look data set in hsqldb format. */
public class LookHsqldb {
/** URI of the hsqldb database. */
public static final String URI = "jdbc:hsqldb:res:chinook";
public static final String USER = "CHINOOK";
public static final String PASSWORD = "CHINOOK";
public static final String SCHEMA = "chinook";
public static final String URI = "jdbc:hsqldb:res:look";
public static final String USER = "LOOK";
public static final String PASSWORD = "LOOK";
public static final String SCHEMA = "look";
}

// End ChinookHsqldb.java
// End LookHsqldb.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

/** Contains the "Chinook" data set in hsqldb format.
/** Contains the "Look" data set in hsqldb format.
*
* <p>Tables:
* <ul>
Expand All @@ -32,6 +32,6 @@
* <li>Track
* </ul>
*/
package net.hydromatic.chinook.data.hsqldb;
package net.hydromatic.look.data.hsqldb;

// End package-info.java
Loading

0 comments on commit 38fa361

Please sign in to comment.