HSQLDB (HyperSQL Database) is a relational
- database management system written in Java. Now in its 23rd year,
- HSQLDB version 2.7.2 is the result of 12 years
- improvements since version 2.0. It offers many features and
- adheres closely to the latest SQL and JDBC 4.2 standards.
-
This release should be used in preference to earlier 2.x
- releases, as it fixes a number of bugs and regressions, as well as
- improving functionality and adding new features.
-
The main jars in this package are Java module jars and compatible
- with Java 11 and later. The alternative jars are compatible with
- Java 8 and later. The jars have been tested with JRE 8, 11 and 17.
- A separate jar from the web site has the same functionality as
- version 2.7.2 minus the java.time features and can be used with Java 6 and 7.
-
-
SUPPORTWARE
-
The development and maintenance of HyperSQL has been
- possible
- because of financial contributions by business users. We need
- renewed
- contributions. Please subscribe to SupportWare at http://hsqldb.org/web/supportware
- . Especially if you include HSQLDB as part of an applications that
- you sell,
- or use it in production, you are expected to subscribe to
- SupportWare at the appropriate level. Subscribers get priority for
- support and feature requests.
-
COMMERCIAL SUPPORT
-
Hourly paid support for HyperSQL is available
- from http://hyperxtreme.co.uk.
- This service provides all the help needed to use or integrate
- HSQLDB with your application.
-
SCALABILITY UPGRADES
-
For applications that require more speed with very large data
- sets, or need to store more data in a memory database, the
- commercial product, HyperXtremeSQL is available
- from http://hyperxtreme.co.uk.
- This product is fully compatible with HSQLDB SQL queries and JDBC
- calls. It also has
- extensive SQL OLAP and procedural language features, together with
- extra crash-recovery and database management capabilities.
-
PACKAGE CONTENTS
-
This download contains the following files and directories:
-
bin
-
This directory contains some Windows utility wrapper scripts.
-
build
-
This directory contains the ant
- build.xml script and Gradle build files. See the Building HyperSQL Jars
- appendix of the HyperSQL User Guide for details.
-
classes
-
When the jar is rebuilt, this
- directory contains the *.class files generated by the ANT build
- tool.
- It does not exist in the distribution zip.
-
doc
-
A set of HTML, PDF and text
- documents covering different aspects of HSQLDB and some of its
- utilities.
The JavaDoc
- for public classes, including the JDBC documentation.
-
Chronological list of
- minor changes and bug fixes since the release of version 2.0 changelist_2_0.txt
-
-
HyperSQL source and binaries are released under the 3-clause BSD
- license. The license text hsqldb_lic.txt
- is for sources developed entirely by the HSQL Development Group.
- The hypersonic_lic.txt
- is for the few sources that contain code from the closed
- HypersonicSQL project.
-
lib
-
The jar needed for running HyperSQL
- and its GUI utilities (hsqldb.jar) has been pre-built in this
- directory. The jar for SqlTool (sqltool.jar) is
- also in this directory. The jars are
- compatible with Java version 8 and above. The extra zip file in
- the directory is needed
- only for
- recompiling hsqldb and is not required for deployment.
-
src
-
All source code is in this directory.
-
testrun
-
Contains test scripts for the
- database engine and SqlTool. These scripts are run by separate
- test
- utilities for the engine and SqlTool
-
doc-src
-
All source code for documentation is in this directory.
-
CHANGES
-
-
Versions 2.x have evolved over twelve years since 2010. This
- version is the most stable version in the 2.x series.
-
Compared to earlier versions, there are many new features and
- changes. Most of these do not affect compatibility.
-
Differences are detailed in the Guide. The main differences in
- version 2.7.2 are as follows:
-
Transaction management has been improved to allow creation and
- alteration of database objects such as tables
- while other transactions are active. This applies to the default
- LOCKS transaction model.
-
Support for Java 8 java.time package classes has been added to
- JDBC classes. This allows accessing TIME ZONE information in
- timestamps and all INTERVAL values.
-
Support for Java modules with Java 11.
-
-
UPDATES
-
We constantly fix reported issues. Please check the web site
- regularly
- for latest updated version and latest information. Follow us
- on Twitter @hypersql for updates.
-
RESOURCES
-
Support documentation for HyperSQL including the FAQ and links to
- resources are available
- from http://hsqldb.org/support
- in various forms, including user forums. Support is given to open
- source developers for using HSQLDB in their products.
-
NOTE
- The highly configurable java source code formatter Jindent is used to format the HSQLDB
- source code.
-
This Software is developed and published by the HSQL Development
- Group
-
-
diff --git a/database/hsqldb/integration/ant/preprocessor/build.cmd b/database/hsqldb/integration/ant/preprocessor/build.cmd
deleted file mode 100644
index 654a7be3..00000000
--- a/database/hsqldb/integration/ant/preprocessor/build.cmd
+++ /dev/null
@@ -1,5 +0,0 @@
-@echo off
-@setlocal
-..\..\..\build\setenv.cmd
-ant
-@endlocal
diff --git a/database/hsqldb/integration/ant/preprocessor/build.xml b/database/hsqldb/integration/ant/preprocessor/build.xml
deleted file mode 100644
index 7c41ecaf..00000000
--- a/database/hsqldb/integration/ant/preprocessor/build.xml
+++ /dev/null
@@ -1,215 +0,0 @@
-
-
- Builds the Ant preprocessor integration jar
-
- Ant version: ${ant.version}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/ATest.exp b/database/hsqldb/integration/ant/preprocessor/sample/ATest.exp
deleted file mode 100644
index c3aad2e6..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/ATest.exp
+++ /dev/null
@@ -1,13 +0,0 @@
-class ATest {
-// JDBC Version is GTE 4:
-String msg4 = "I was included because jdbc_version was GTE 4";
-// JDBC Version is GTE 3 and LT 4:
-String msg3 = "I was included because jdbc_version was GTE 3 and LT 4";
-// JDBC Version is GTE 2 and LT 3:
-String msg2 = "I was included because jdbc_version was GTE 2 and LT 3";
-String s1 = "v1 was defined";
-String s2 = "v2 was defined";
-String s3 = "v1 was \"happy\"";
-String s4 = "v2 was \"sad\"";
-String s5 = "v1 was less than or equal to v2";
-}
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/ATest.src b/database/hsqldb/integration/ant/preprocessor/sample/ATest.src
deleted file mode 100644
index 6a1b0bc0..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/ATest.src
+++ /dev/null
@@ -1,41 +0,0 @@
-class ATest {
-//#ifndef jdbc_version
-// jdbc_version was not defined:
-//#else
-//#include Main.inc
-//#endinclude
-//#endif
-//#define jdbc_version 3
-//#include Main.inc
-//#endinclude
-//#define jdbc_version 2
-//#include Main.inc
-//#endinclude
-//#define v1 "happy"
-//#define v2 "sad"
-//#ifdef v1
-String s1 = "v1 was defined";
- //#ifdef v2
-String s2 = "v2 was defined";
- //#if (v1 == "happy")
-String s3 = "v1 was \"happy\"";
- //#if (v2 == "sad")
-String s4 = "v2 was \"sad\"";
- //#if (v1 <= v2)
-String s5 = "v1 was less than or equal to v2";
- //#else
-String s5 = "v1 was greater than v2";
- //#endif (v1 <= v2)
- //#else
-String s4 = "v2 was not \"sad\"";
- //#endif (v2 == "sad")
- //#else
-String s3 = "v2 was not defined or v1 was not \"happy\"";
- //#endif (v1 == "happy")
- //#else
-String s2 = "v2 was not defined";
- //#endif v1
-//#else
-String s1 = "v1 was not defined";
-//#endif v1
-}
\ No newline at end of file
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc2.inc b/database/hsqldb/integration/ant/preprocessor/sample/Jdbc2.inc
deleted file mode 100644
index 4157c15f..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc2.inc
+++ /dev/null
@@ -1 +0,0 @@
-String msg2 = "I was included because jdbc_version was GTE 2 and LT 3";
\ No newline at end of file
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc3.inc b/database/hsqldb/integration/ant/preprocessor/sample/Jdbc3.inc
deleted file mode 100644
index 35127c9b..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc3.inc
+++ /dev/null
@@ -1 +0,0 @@
-String msg3 = "I was included because jdbc_version was GTE 3 and LT 4";
\ No newline at end of file
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc4.inc b/database/hsqldb/integration/ant/preprocessor/sample/Jdbc4.inc
deleted file mode 100644
index ed2651cd..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/Jdbc4.inc
+++ /dev/null
@@ -1 +0,0 @@
-String msg4 = "I was included because jdbc_version was GTE 4";
\ No newline at end of file
diff --git a/database/hsqldb/integration/ant/preprocessor/sample/Main.inc b/database/hsqldb/integration/ant/preprocessor/sample/Main.inc
deleted file mode 100644
index 1a38d52b..00000000
--- a/database/hsqldb/integration/ant/preprocessor/sample/Main.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-//#if (jdbc_version >= 4)
-// JDBC Version is GTE 4:
- //#include Jdbc4.inc
- // This is where the JDBC 4 stuff will go...
- //#endinclude
-//#elif (jdbc_version >= 3)
-// JDBC Version is GTE 3 and LT 4:
- //#include Jdbc3.inc
- // This is where the JDBC 3 stuff will go...
- //#endinclude
-//#elif (jdbc_version >= 2)
-// JDBC Version is GTE 2 and LT 3:
- //#include Jdbc2.inc
- // This is where the JDBC 2 stuff will go...
- //#endinclude
-//#elif (jdbc_version >= 1)
-// JDBC Version is GTE 1 and LT 2:
-//#else
-// JDBC Version is LT 1:
-//#endif
\ No newline at end of file
diff --git a/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/AntResolver.java b/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/AntResolver.java
deleted file mode 100644
index 1797ca45..00000000
--- a/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/AntResolver.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Copyright (c) 2001-2007, The HSQL Development Group
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither the name of the HSQL Development Group nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-package org.hsqldb.util.preprocessor.ant;
-
-import java.io.File;
-import org.apache.tools.ant.Project;
-import org.hsqldb.util.preprocessor.IResolver;
-
-
-/**
- * Resolves properties and paths using an ANT Project.
- *
- * @author Campbell Burnet (campbell-burnet@users dot sourceforge.net)
- * @version 2.6.2
- * @since 1.8.1
- */
-public class AntResolver implements IResolver {
-
- private final Project project;
-
- public AntResolver(final Project project) {
- this.project = project;
- }
-
- @Override
- public String resolveProperties(String expression) {
- return this.project.replaceProperties(expression);
- }
-
- @Override
- public File resolveFile(String path) {
- return this.project.resolveFile(path);
- }
-}
diff --git a/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/PreprocessorAntTask.java b/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/PreprocessorAntTask.java
deleted file mode 100644
index a47f7ce5..00000000
--- a/database/hsqldb/integration/ant/preprocessor/src/org/hsqldb/util/preprocessor/ant/PreprocessorAntTask.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/* Copyright (c) 2001-2022, The HSQL Development Group
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither the name of the HSQL Development Group nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-package org.hsqldb.util.preprocessor.ant;
-
-import java.io.File;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.taskdefs.MatchingTask;
-import org.hsqldb.util.preprocessor.IResolver;
-import org.hsqldb.util.preprocessor.Option;
-import org.hsqldb.util.preprocessor.Preprocessor;
-
-/**
- *
Provides a facility for invoking the Preprocessor from ANT.
- *
Example ANT target:
{@code
- *
- *
- *
- *
- *
- *
- * }
Task Attributes
- *
- *
- *
Name
Description
- *
- *
- *
- *
srcdir (required)
- *
file - directory under which input files are located
- *
- *
- *
targetdir (required)
- *
file - directory under which output files are to be written
- *
- *
- *
altext (optional)
- *
string - alternate extension to use for output file names.
- * If needed, leading dot should be provided
- *
- *
- *
backup (optional - default: false)
- *
boolean - whether to back up pre-existing target files.
- * When true, pre-existing target files are preserved by renaming with
- * postfix "~"
- *
- *
- *
encoding (optional)
- *
string - the encoding with which to read and write file content.
- * If specified, must be a valid Java encoding identifier, such as "UTF8".
- * When unspecified, the default Java platformn encoding is used.
- *
- *
- *
filter (optional - default: false)
- *
boolean - whether to exclude directive lines from output.
- *
- *
- *
indent (optional - default: false)
- *
boolean - whether to indent directive lines in output.
- *
- *
- *
symbols (optional)
- *
string - CSV list of preprocessor symbols to predefine.
- * When specified, each list element must be of the form:
- * {@code IDENT (ASSIGN? (STRING | NUMBER | IDENT) )?}
- * Note that forward assignments are illegal.
- * See {@link Preprocessor Preprocessor} for details
- *
- *
- *
testonly (optional - default: false)
- *
boolean - whether to omit writing output files.
- *
- *
- *
verbose (optional - default: false)
- *
boolean - whether to log detailed information.
- *
- *
- *
- *
- * @author Campbell Burnet (campbell-burnet@users dot sourceforge.net)
- * @version 2.6.2
- * @since 1.8.1
- */
-public class PreprocessorAntTask extends MatchingTask {
-
- private String ifExpr;
- private String unlessExpr;
- private File sourceDir;
- private File targetDir;
- private String defines;
- private String altExt;
- private String encoding;
- private int options = Option.INDENT;
-
- public void init() {
- super.init();
- }
-
- public void setSrcdir(final File value) {
- sourceDir = value;
- }
-
- public void setTargetdir(final File value) {
- targetDir = value;
- }
-
- public void setSymbols(final String value) {
- defines = value;
- }
-
- public void setVerbose(final boolean verbose) {
- options = Option.setVerbose(options, verbose);
- }
-
- public void setBackup(final boolean backup) {
- options = Option.setBackup(options, backup);
- }
-
- public void setIndent(final boolean indent) {
- options = Option.setIndent(options, indent);
- }
-
- public void setTestonly(final boolean testOnly) {
- options = Option.setTestOnly(options, testOnly);
- }
-
- public void setFilter(final boolean filter) {
- options = Option.setFilter(options, filter);
- }
-
- public void setAltext(final String ext) {
- this.altExt = ext;
- }
-
- public void setEncoding(final String encoding) {
- this.encoding = encoding;
- }
-
- public void setIf(final String expr) {
- this.ifExpr = expr;
- }
-
- public void setUnless(final String expr) {
- this.unlessExpr = expr;
- }
-
- public boolean isActive() {
- return (this.ifExpr == null
- || getProject().getProperty(this.ifExpr) != null
- || this.unlessExpr == null
- || getProject().getProperty(this.unlessExpr) == null);
- }
-
- public void execute() throws BuildException {
-
- if (!isActive()) {
- return;
- }
-
- checkSourceDir();
- checkTargetDir();
-
- this.sourceDir = getProject().resolveFile("" + this.sourceDir);
-
- IResolver resolver = new AntResolver(getProject());
- String[] files = getFiles();
-
- log("Preprocessing " + files.length + " file(s)");
-
- try {
- Preprocessor.preprocessBatch(this.sourceDir, this.targetDir, files,
- this.altExt, this.encoding, this.options, this.defines,
- resolver);
- } catch (Exception ex) {
- ex.printStackTrace();
-
- throw new BuildException("Preprocessing failed: " + ex,
- ex);
- }
- }
-
- private String[] getFiles() {
- return getDirectoryScanner(sourceDir).getIncludedFiles();
- }
-
- private void checkSourceDir() throws BuildException {
- if (this.sourceDir == null) {
- throw new BuildException("Source directory is required.");
- }
- }
-
- private void checkTargetDir() throws BuildException {
- if (targetDir == null) {
- throw new BuildException("Target directory is required.");
- }
- }
-}
diff --git a/database/hsqldb/integration/extAuthWithSpring/build.xml b/database/hsqldb/integration/extAuthWithSpring/build.xml
deleted file mode 100644
index 17c56c5c..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/build.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You must set Ant property 'authentication.mode' to either
- "LDAP" or "JAAS" or "HsqldbSlave" or "JAAS_LDAP".
-
- Ant property 'hsqldb.jarfile' is required.
- To get it using Ivy, SEE COMMENTS THE BUILD FILE.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/ivy-projsetup.xml b/database/hsqldb/integration/extAuthWithSpring/ivy-projsetup.xml
deleted file mode 100644
index 77d5b5ec..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/ivy-projsetup.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Add Ivy jar file to Ant CLASSPATH.
-Copy-and-paste this for any Bourne shell (inc. Bash):
-
- export ANT_ARGS; ANT_ARGS='-lib ${basedir}/../../build/ivy-2.2.0.jar -noclasspath'
-
-OR copy-and-paste this for any CMD-like Windows shell:
-
- SET ANT_ARGS=-lib "${basedir}/../../build/ivy-2.2.0.jar" -noclasspath
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/ivy.xml b/database/hsqldb/integration/extAuthWithSpring/ivy.xml
deleted file mode 100644
index 1c8cb6e0..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/ivy.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/ivysettings.xml b/database/hsqldb/integration/extAuthWithSpring/ivysettings.xml
deleted file mode 100644
index 0b94e7c4..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/ivysettings.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/jul.properties b/database/hsqldb/integration/extAuthWithSpring/jul.properties
deleted file mode 100644
index 279bd895..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/jul.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-# $Id: jul.properties 3914 2010-11-26 22:11:10Z unsaved $
-
-# As this is a Java .properties file, use ISO-8859-1 encoding for any
-# extended characters.
-
-# See http://java.sun.com/javase/6/docs/technotes/guides/logging/overview.html
-# for an overview of the JDK logging system, aka the Java Logging API or
-# java.util.logging.
-# If you want more, and easier, control, particularly over the format of
-# output records, use Log4J instead.
-
-# This is different from the default logging file provided by HyperSQL.
-# Here, we purposefully turn up verbosity of the org.hsqldb.sample classes so
-# the user can see what is going in the examples.
-
-handlers=java.util.logging.ConsoleHandler
-.level=WARNING
-
-java.util.logging.ConsoleHandler.level=INFO
-java.util.logging.ConsoleHandler.formatter=org.hsqldb.lib.BasicTextJdkLogFormatter
-org.hsqldb.sample.level=INFO
diff --git a/database/hsqldb/integration/extAuthWithSpring/readme.txt b/database/hsqldb/integration/extAuthWithSpring/readme.txt
deleted file mode 100644
index 4d8f02be..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/readme.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-$Id: readme.txt 3931 2010-12-06 05:10:50Z unsaved $
-
-This is the home directory of the extAuthWithSpring sample.
-
-It uses Spring to declaratively configure external authentication with a
-master HyperSQL catalog, or with an LDAP server.
-
-You will need Ant and a Java JDK installed. To get started, invoke
-
- ant -Dauthentication.mode=HsqldbSlave
-
-from this directory to run a JDBC app backed by an application database, with
-authentication to the application database through another embedded master
-database. Play with the Spring bean files in the resources subdirectory to
-switch the application database or the masterdatabase, or anything else.
-
-To play with a JAAS module, run
-
- ant -Dauthentication.mode=JAAS
-
-The file resources/jaas.cfg will be generated the first time that you run
-anything with Ant. With mode set to "JAAS", the "demo" application
-configuration in jaas.cfg will be used.
-
-If you have an LDAP server, edit "resources/ldapbeans.xml" to set settings
-according to your LDAP server then run ant with the authentication.mode set to
-"LDAP".
-To help determine and test the settings that will work with your LDAP server, I
-recommend that you use the program org.hsqldb.auth.LdapAuthBean. See the
-HyperSQL API Spec for org.hsqldb.auth.LdapAuthBean and the sample properties
-file for it at "sample/ldap-exerciser.properties" in your HyperSQL distribution.
-
-As an alternative to LDAP mode, you can use JAAS_LDAP mode. That works very
-similarly, but uses Sun's JAAS LDAP module and suffers from its limitations.
-It should be easy to figure out how to use by looking over the "sunLdap"
-application settings in jaas.cfg, and the Spring bean definitions in
-resources/jaasldapbeans.xml.
diff --git a/database/hsqldb/integration/extAuthWithSpring/resources/beandefs.xml b/database/hsqldb/integration/extAuthWithSpring/resources/beandefs.xml
deleted file mode 100644
index 72dc8ac2..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/resources/beandefs.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/resources/jaasbeans.xml b/database/hsqldb/integration/extAuthWithSpring/resources/jaasbeans.xml
deleted file mode 100644
index 7dfc310a..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/resources/jaasbeans.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/resources/jaasldapbeans.xml b/database/hsqldb/integration/extAuthWithSpring/resources/jaasldapbeans.xml
deleted file mode 100644
index ec865386..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/resources/jaasldapbeans.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/resources/ldapbeans.xml b/database/hsqldb/integration/extAuthWithSpring/resources/ldapbeans.xml
deleted file mode 100644
index dcd9278f..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/resources/ldapbeans.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/resources/slavebeans.xml b/database/hsqldb/integration/extAuthWithSpring/resources/slavebeans.xml
deleted file mode 100644
index d41ea009..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/resources/slavebeans.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/JdbcAppClass.java b/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/JdbcAppClass.java
deleted file mode 100644
index 252f1870..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/JdbcAppClass.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/* Copyright (c) 2001-2010, The HSQL Development Group
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither the name of the HSQL Development Group nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-package org.hsqldb.sample;
-
-import java.sql.SQLException;
-import java.sql.ResultSet;
-import java.sql.Connection;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import javax.sql.DataSource;
-
-/**
- * An application class that performs some simple JDBC work.
- *
- * This class is purposefully not Spring-aware.
- */
-public class JdbcAppClass {
- private static Log log = LogFactory.getLog(JdbcAppClass.class);
-
- private boolean initialized;
- private DataSource ds;
-
- public void init() {
- if (ds == null) throw new IllegalStateException(
- "Required property 'dataSource' not set");
- initialized = true;
- }
-
- public void setDataSource(DataSource ds) {
- this.ds = ds;
- }
-
- public void doJdbcWork() throws SQLException {
- if (!initialized)
- throw new IllegalStateException(JdbcAppClass.class.getName()
- + " instance not initialized");
- Connection c = null;
- ResultSet rs = null;
- try {
- c = ds.getConnection();
- rs = c.createStatement().executeQuery("SELECT * FROM t1");
- if (!rs.next()) {
- log.error("App class failed to retrieve data from catalog");
- return;
- }
- if (rs.getInt(1) != 456) {
- log.error("App class retrieved wrong value: " + rs.getInt(1));
- return;
- }
- if (rs.next()) {
- log.error("App class failed too much data from catalog");
- return;
- }
- } finally {
- if (c != null) try {
- c.rollback();
- } catch (SQLException se) {
- // Intentionally empty.
- // We have done nothing that we want to commit, but want to
- // aggressively free transactional resources.
- }
- if (rs != null) try {
- rs.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- rs = null; // Encourage GC
- }
- if (c != null) try {
- c.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- c = null; // Encourage GC
- }
- }
- log.info("Application Success");
- }
-}
diff --git a/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/SpringExtAuth.java b/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/SpringExtAuth.java
deleted file mode 100644
index 44c40413..00000000
--- a/database/hsqldb/integration/extAuthWithSpring/src/org/hsqldb/sample/SpringExtAuth.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/* Copyright (c) 2001-2010, The HSQL Development Group
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * Neither the name of the HSQL Development Group nor the names of its
- * contributors may be used to endorse or promote products derived from this
- * software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-package org.hsqldb.sample;
-
-import java.sql.Connection;
-import java.sql.Statement;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import org.springframework.beans.factory.ListableBeanFactory;
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-import org.springframework.context.ApplicationContext;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * As you can tell by the class name, this class is purposefully Spring-aware,
- * as it initiates the Spring Spring context load.
- * In a web application, a lifecycle lister or other
- * mechanism would eliminate the need for any custom Java code to load the
- * context (like what we have here).
- */
-public class SpringExtAuth {
- private static Log log = LogFactory.getLog(SpringExtAuth.class);
-
- private static final String SYNTAX_MSG = "SYNTAX: "
- + SpringExtAuth.class.getName()
- + " {LDAP|HsqldbSlave|JAAS|JAAS_LDAP}";
-
- /**
- * @throws SQLException If Setup of emulation database failed, or if the
- * application JDBC work fails.
- */
- static public void main(String[] sa) throws SQLException {
- if (sa.length != 1) throw new IllegalArgumentException(SYNTAX_MSG);
- String authSpringFile = null;
- if (sa[0].equals("LDAP")) {
- authSpringFile = "ldapbeans.xml";
- } else if (sa[0].equals("JAAS")) {
- authSpringFile = "jaasbeans.xml";
- } else if (sa[0].equals("HsqldbSlave")) {
- authSpringFile = "slavebeans.xml";
- } else if (sa[0].equals("JAAS_LDAP")) {
- authSpringFile = "jaasldapbeans.xml";
- }
- if (authSpringFile == null)
- throw new IllegalArgumentException(SYNTAX_MSG);
-
- SpringExtAuth.prepMemoryDatabases(!sa[0].equals("HsqldbSlave"));
- ApplicationContext ctx =
- new ClassPathXmlApplicationContext("beandefs.xml", authSpringFile);
- ListableBeanFactory bf = (ListableBeanFactory) ctx;
- JdbcAppClass appBean = bf.getBean("appBean", JdbcAppClass.class);
- appBean.doJdbcWork();
- }
-
- /**
- * This method prepares a memory-only catalog.
- * After this method runs, a new Connection using the same JDBC URL will
- * behave just like connecting to a populated, persistent catalog.
- *
- * Purposefully not using declarative settings here because this is purely
- * emulation setup.
- * A real application won't have any method corresponding to this method.
- *
- * @throws SQLException if setup failed
- */
- private static void prepMemoryDatabases(boolean doLdap)
- throws SQLException {
- Connection c = null;
- Statement st = null;
- try {
- c = DriverManager.getConnection(
- "jdbc:hsqldb:mem:localDb", "SA", "");
- // JDBC URL here must match that configured within the bean
- // 'appBean' in "beandefs.xml" file
- c.setAutoCommit(false);
- st = c.createStatement();
- st.executeUpdate("SET DATABASE UNIQUE NAME \"AUTHSAMPLEDBNAME\"");
- st.executeUpdate(
- "SET DATABASE AUTHENTICATION FUNCTION EXTERNAL NAME "
- + "'CLASSPATH:"
- + "org.hsqldb.auth.AuthBeanMultiplexer.authenticate'");
- // DB Name here must match that configured in either
- // "ldapbeans.xml" or "slavebean.xml", depending on whether you are
- // running in LDAP or HsqldbSlave mode, correspondingly.
- st.executeUpdate("SET PASSWORD 'SECRET5222173'");
- st.executeUpdate("CREATE TABLE t1(i INTEGER)");
- st.executeUpdate("GRANT SELECT ON t1 TO public");
- st.executeUpdate("INSERT INTO t1 VALUES(456)");
- // Table name and value must match what is expected by method
- // JdbcAppClass.doJdbcWork.
- c.commit();
- } finally {
- if (st != null) try {
- st.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- st = null; // Encourage GC
- }
- if (c != null) try {
- c.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- c = null; // Encourage GC
- }
- }
- if (doLdap) return;
-
- // Create an authentication master database
- try {
- c = DriverManager.getConnection(
- "jdbc:hsqldb:mem:masterDb", "SA", "");
- // JDBC URL here must match that configured for bean
- // 'slaveSetup' in "slavebeans.xml" file
- c.setAutoCommit(false);
- st = c.createStatement();
- st.executeUpdate("SET PASSWORD 'SECRET9123113'");
- // This password will never be used again.
- // Changing it from the default just for good security practice.
- st.executeUpdate("CREATE USER \"straight\" PASSWORD 'pwd'");
- // User name and password here must match those configured in file
- // "beandefs.xml".
- c.commit();
- } finally {
- if (st != null) try {
- st.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- st = null; // Encourage GC
- }
- if (c != null) try {
- c.close();
- } catch (SQLException se) {
- log.error("Failed to close emulation database setup Connection",
- se);
- } finally {
- c = null; // Encourage GC
- }
- }
- }
-}
diff --git a/database/hsqldb/integration/jackrabbit/readme.txt b/database/hsqldb/integration/jackrabbit/readme.txt
deleted file mode 100644
index 59f111d9..00000000
--- a/database/hsqldb/integration/jackrabbit/readme.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-This directory contains access files for Apache Jackrabbit (http://jackrabbit.apache.org/)
-
-The ddl file for jackrabbit version 2.x is located at:
-
-resources/org/apache/jackrabbit/core/persistence/bundle/hsqldb.ddl
-
-This ddl file can be used with the default BundleDbPersistenceManager
-
-Copy the ddl file to the same directory in your Jackrabbit setup, alongside the existing
-ddl files. For example jackrabbit-standalone-2.2.4/org/apache/jackrabbit/core/persistence/bundle
-
-A sample configuration is given below. The DDL table definitions use BLOBs, which
-are stored on disk.
-
-If you are storing no more than several thousand objects, the non-blob fields can be stored in
-memory for quicker access with hsqldb.default_table_type=memory. See the hsqldb documentation
-at http://hsqldb.org/doc/2.0/ for different connection URL and other properties that can be used.
-
-
-
-
-
-
-
-
-
-A ddl file for older versions of Jackrabbit is also included in the ...core/persistence/db directory.
-
-All files are modified copies of existing Jackrabbit sources.
-
-
diff --git a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/journal/hsqldb.ddl b/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/journal/hsqldb.ddl
deleted file mode 100644
index a9a73d35..00000000
--- a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/journal/hsqldb.ddl
+++ /dev/null
@@ -1,22 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-create table ${schemaObjectPrefix}JOURNAL (REVISION_ID BIGINT NOT NULL, JOURNAL_ID varchar(255), PRODUCER_ID varchar(255), REVISION_DATA blob)
-create unique index ${schemaObjectPrefix}JOURNAL_IDX on ${schemaObjectPrefix}JOURNAL (REVISION_ID)
-create table ${schemaObjectPrefix}GLOBAL_REVISION (REVISION_ID BIGINT NOT NULL)
-create unique index ${schemaObjectPrefix}GLOBAL_REVISION_IDX on ${schemaObjectPrefix}GLOBAL_REVISION (REVISION_ID)
-create table ${schemaObjectPrefix}LOCAL_REVISIONS (JOURNAL_ID varchar(255) NOT NULL, REVISION_ID BIGINT NOT NULL)
-
-# Inserting the one and only revision counter record now helps avoiding race conditions
-insert into ${schemaObjectPrefix}GLOBAL_REVISION VALUES(0)
diff --git a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/bundle/hsqldb.ddl b/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/bundle/hsqldb.ddl
deleted file mode 100644
index 88cb7465..00000000
--- a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/bundle/hsqldb.ddl
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# Bundle persistence DDL script for the HSQLDB database engine (http://www.hsqldb.org)
-#
-create table ${schemaObjectPrefix}BUNDLE (NODE_ID binary(16) primary key, BUNDLE_DATA blob(2G) not null))
-create table ${schemaObjectPrefix}REFS (NODE_ID binary(16) PRIMARY KEY primary key, REFS_DATA blob(2G) not null))
-create table ${schemaObjectPrefix}BINVAL (BINVAL_ID char(64) PRIMARY KEY, BINVAL_DATA blob(2G) not null)
-create table ${schemaObjectPrefix}NAMES (ID INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, NAME varchar(255) not null)
diff --git a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/db/hsqldb.ddl b/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/db/hsqldb.ddl
deleted file mode 100644
index 7258260c..00000000
--- a/database/hsqldb/integration/jackrabbit/resources/org/apache/jackrabbit/core/persistence/db/hsqldb.ddl
+++ /dev/null
@@ -1,21 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# DDL script for the HSQLDB database engine (http://www.hsqldb.org)
-#
-create table ${schemaObjectPrefix}NODE (NODE_ID char(36) primary key, NODE_DATA blob not null)
-create table ${schemaObjectPrefix}PROP (PROP_ID varchar(1024) primary key, PROP_DATA blob not null)
-create table ${schemaObjectPrefix}REFS (NODE_ID char(36) primary key, REFS_DATA blob not null)
-create table ${schemaObjectPrefix}BINVAL (BINVAL_ID varchar(1024) primary key, BINVAL_DATA blob not null)
diff --git a/database/hsqldb/integration/readme.txt b/database/hsqldb/integration/readme.txt
deleted file mode 100644
index 3dddb51a..00000000
--- a/database/hsqldb/integration/readme.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-$Id: readme.txt 3900 2010-11-17 03:59:50Z unsaved $
-
-Each subdirectory of this directory is a home directory to a sample integration
-application.
-
-See the "readme.txt" file in each subdirectory to see the purpose of that
-particular sample.
diff --git a/database/hsqldb/readme.txt b/database/hsqldb/readme.txt
deleted file mode 100644
index 1e481f28..00000000
--- a/database/hsqldb/readme.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-Readme File
-
-This package contains HyperSQL version 2.7.2
-
-HyperSQL Database is a relational database management system and a set of tools
-written in Java.
-HyperSQL is also known as HSQLDB.
-
-The file "index.html" explains the contents of this distribution and has
-links to documentation and support resources.
diff --git a/database/hsqldb/sample/StartupParameters.plist b/database/hsqldb/sample/StartupParameters.plist
deleted file mode 100644
index c82bb640..00000000
--- a/database/hsqldb/sample/StartupParameters.plist
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- $Id: StartupParameters.plist 59 2007-04-17 01:08:09Z unsaved $
- Startup Item parameter file that works on at least one Mac OS X system.
-
- I don't know which of the "Uses" services are available on all Mac's.
- I just know that my system has them, and this list causes HSQLDB
- to start late enough without resorting to "Latest" (which could cause
- problems for people who also start up apps that use HSQLDB).
-*/
-{
- Description = "HSQLDB Database Server";
- Provides = ("Hsqldb");
- Requires = ("Resolver");
- Uses = ("Disks", "Network", "Core Services", "TIM", "NetInfo", "Resolver");
- Messages =
- {
- start = "Starting Hsqldb";
- stop = "Stopping Hsqldb";
- restart = "Restarting Hsqldb";
- };
-}
diff --git a/database/hsqldb/sample/acl.txt b/database/hsqldb/sample/acl.txt
deleted file mode 100644
index e7d5c3f4..00000000
--- a/database/hsqldb/sample/acl.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-# $Id: acl.txt 536 2008-12-05 14:55:10Z unsaved $
-
-# Sample HyperSQL Network Listener ACL file.
-# Specify "allow" and "deny" rules
-# For address specifications, individual addresses, host names, and
-# network addresses with /bit suffix are allowed, but read the caveat about
-# host names below, under the sample "localhost" rule.
-
-# Blank lines ignored.
- # Lines with # as the first non-whitespace character are ignored.
-
-
-allow 2001:db8::/32
-# Allow this 32-bit ipv4 subnet
-
-allow localhost
-# You should use numerical addresses in ACL files, unless you are certain that
-# the name will always be known to your network address resolution system
-# (assume that you will lose Internet connectivity at some time).
-# With a default name resolution setup on UNIX, you are safe to use names
-# defined in your /etc/hosts file.
-
-deny 192.168.101.253
-# Deny a single IP address.
-# In our example, 192.168.101.0/24 is our local, organizational network.
-# 192.168.101.253 is the IP address of our Intern's PC.
-# The Intern does not have permission to access our databases directly.
-
-allow 192.168.101.0/24
-
-# Any ipv4 or ipv6 candidate address not matched above will be denied
diff --git a/database/hsqldb/sample/csv-sample.sql b/database/hsqldb/sample/csv-sample.sql
deleted file mode 100644
index 90813984..00000000
--- a/database/hsqldb/sample/csv-sample.sql
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * $Id: csv-sample.sql 4810 2011-11-20 21:18:10Z unsaved $
- *
- * Create a table, CVSV-export the data, import it back.
- */
-
-* *DSV_COL_DELIM = ,
-* *DSV_COL_SPLITTER = ,
--- Following causes a reject report to be written if there are any bad records
--- during the import. To test it, enable the "FORCE AN ERROR" block below.
-* *DSV_REJECT_REPORT = import.html
-
--- 1. SETTINGS
--- For applications like MS Excel, which can't import or export nulls, we have
--- to dummy down our database empty strings to export and import as if they
--- were nulls.
-* *NULL_REP_TOKEN =
-
--- Enable following line to quote every cell value
--- * *ALL_QUOTED = true
-
-
--- 2. SET UP TEST DATA
-CREATE TABLE t (i INT, v VARCHAR(25), d DATE);
-INSERT INTO t(i, v, d) VALUES (1, 'one two three', null);
-INSERT INTO t(i, v, d) VALUES (2, null, '2007-06-24');
-INSERT INTO t(i, v, d) VALUES (3, 'one,two,,three', '2007-06-24');
-INSERT INTO t(i, v, d) VALUES (4, '"one"two""three', '2007-06-24');
-INSERT INTO t(i, v, d) VALUES (5, '"one,two"three,', '2007-06-24');
-INSERT INTO t(i, v, d) VALUES (6, '', '2007-06-24');
-commit;
-
--- 3. CSV EXPORT
-/* Export */
-\xq t
-/* FORCE AN ERROR. Enable the following 3 lines to force a bad CSV record.
-\o t.csv
-\p barf
-\o
-*/
-
--- 4. BACK UP AND ZERO SOURCE TABLE
-CREATE TABLE orig AS (SELECT * FROM t) WITH DATA;
-DELETE FROM t;
-commit;
-
--- 5. CSV IMPORT
-\mq t.csv
-commit;
-
--- 6. MANUALLY EXAMINE DIFFERENCES BETWEEN SOURCE AND IMPORTED DATA.
--- See /testrun/sqltool/csv-roundtrip.sql to see a way to make
--- this same comparison programmatically.
-* - *NULL_REP_TOKEN
-\p
-\p ORIGINAL:
-SELECT * FROM orig;
-\p
-\p IMPORTED:
-SELECT * FROM t;
-\p
-\p The empty string in the source table will have been translated to null in
-\p the imported data.
-\p You can see that the generated CSV file represents both nulls and
-\p empty strings as nothing, hence the convergence.
diff --git a/database/hsqldb/sample/dsv-sample.sql b/database/hsqldb/sample/dsv-sample.sql
deleted file mode 100644
index f9d188e5..00000000
--- a/database/hsqldb/sample/dsv-sample.sql
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * $Id: dsv-sample.sql 610 2008-12-22 15:54:18Z unsaved $
- *
- * Imports delimiter-separated-values, and generates an output
- * reject .dsv file, and a reject report.
- *
- * To execute, set up a SqlTool database urlid (see User Guide if you don't
- * know how to do that); then (from this directory) execute this script like
- *
- * java ../lib/hsqldb.jar mem dsv-sample.sql
- *
- * (replace "mem" with your urlid).
- */
-
-CREATE TABLE sampletable(i INT, d DATE NOT NULL, b BOOLEAN);
-
-/* If you dont' set *DSV_TARGET_TABLE, it defaults to the base name of the
- .dsv file. */
-* *DSV_TARGET_TABLE = sampletable
-
-\p WARNING: Some records will be skipped, and some others will be rejected.
-\p This is on purpose, so you can work with a reject report.
-\p
-
-/* By default, no reject files are written, and the import will abort upon
- * the first error encountered. If you set either of these settings, the
- * import will continue to completion if at all possible. */
-* *DSV_REJECT_FILE = ${java.io.tmpdir}/sample-reject.dsv
-* *DSV_REJECT_REPORT = ${java.io.tmpdir}/sample-reject.html
-\m sample.dsv
-
-/* Enable this line if you want to display all successfully imported data:
-SELECT * FROM sampletable;
-*/
-
-\p
-\p See import reject report at '*{*DSV_REJECT_REPORT}'.
diff --git a/database/hsqldb/sample/hsqldb.conf b/database/hsqldb/sample/hsqldb.conf
deleted file mode 100644
index 9775c745..00000000
--- a/database/hsqldb/sample/hsqldb.conf
+++ /dev/null
@@ -1,173 +0,0 @@
-# $Id: hsqldb.conf 6310 2021-02-28 15:25:00Z unsaved $
-
-# Sample configuration file for HyperSQL Server Listener.
-# See the "HyperSQL on UNIX" chapter of the HyperSQL User Guide.
-
-# N.b.!!!! You must place this in the right location for your type of UNIX.
-# See the init script "hsqldb" to see where this must be placed and
-# what it should be renamed to.
-
-# This file is "sourced" by a Bourne shell, so use Bourne shell syntax.
-
-# This file WILL NOT WORK until you set (at least) the non-commented
-# variables to the appropriate values for your system.
-# Life will be easier if you avoid all filepaths with spaces or any other
-# funny characters. Don't ask for support if you ignore this advice.
-
-# The URLIDS setting below is new and REQUIRED. This setting replaces the
-# server.urlid.X settings which used to be needed in your Server's
-# properties file.
-
-# -- Blaine (blaine dot simpson at admc dot com)
-
-JAVA_EXECUTABLE=/usr/bin/java
-
-# Unless you copied the jar files from another system, this typically
-# resides at $HSQLDB_HOME/lib/sqltool.jar, where $HSQLDB_HOME is your HSQLDB
-# software base directory.
-# The file name may actually have a version label in it, like
-# sqltool-1.2.3.jar (in which case, you must specify the full name here).
-# A 'hsqldb.jar' file (with or without version label) must reside in the same
-# directory as the specified sqltool.jar file.
-SQLTOOL_JAR_PATH=/opt/hsqldb-2.0.0/hsqldb/lib/sqltool.jar
-# For the sample value above, there must also exist a file
-# /opt/hsqldb-2.0.0/hsqldb/lib/hsqldb*.jar.
-
-# Where the file "server.properties" or "webserver.properties" resides.
-SERVER_HOME=/opt/hsqldb-2.0.0/hsqldb/data
-
-# What UNIX user the server will run as.
-# (The shutdown client is always run as root or the invoker of the init script).
-# Runs as root by default, but you should take the time to set database file
-# ownerships to another user and set that user name here.
-HSQLDB_OWNER=hsqldb
-
-# The HSQLDB jar file specified in HSQLDB_JAR_PATH above will automatically
-# be in the class path. This arg specifies additional classpath elements.
-# To embed your own application, add your jar file(s) or class base
-# directories here, and add your main class to the INVOC_ADDL_ARGS setting
-# below. Another common use-case for adding to your class path is to make
-# classes available to the DB engines for SQL/JRT functions and procedures.
-#SERVER_ADDL_CLASSPATH=/usr/local/dist/currencybank.jar
-
-# For startup or shutdown failures, you can save a lot of debugging time by
-# temporarily adjusting down MAX_START_SECS and MAX_TERMINATE_SECS to a
-# little over what it should take for successful startup and shutdown on
-# your system.
-
-# We require all Server/WebServer instances to be accessible within
-# $MAX_START_SECS from when the Server/WebServer is started.
-# Defaults to 60.
-# Raise this is you are running lots of DB instances or have a slow server.
-#MAX_START_SECS=200
-
-# Max time to allow for JVM to die after all HSQLDB instances stopped.
-# Defaults to 60. Set high because the script will always continue as soon as
-# the process has stopped. The importance of this setting is, how long until
-# a non-stopping-JVM-problem will be detected.
-#MAX_TERMINATE_SECS=0
-
-# NEW AND IMPORTANT!!!
-# As noted at the top of this file, this setting replaces the old property
-# settings server.urlid.X.
-# Simply list the URLIDs for all DB instances which your *Server starts.
-# Usually, these will exactly mirror the server.database.X settings in your
-# server.properties or webserver.properties file.
-# Each urlid listed here must be defined to a NETWORK url with Admin privileges
-# in the AUTH_FILE specified below. (Network type because we use this for
-# inter-process communication)
-# Separate multiple values with white space. NO OTHER SPECIAL CHARACTERS!
-# Make sure to quote the entire value if it contains white space separator(s).
-URLIDS='localhostdb1'
-
-# These are urlids # ** IN ADDITION TO URLIDS **, for instances which the init
-# script should stop but not start.
-# Most users will not need this setting. If you need it, you'll know it.
-# Defaults to none (i.e., only URLIDS will be stopped).
-#SHUTDOWN_URLIDS='ondemand'
-
-# SqlTool authentication file used only for shutdown.
-# The default value will be sqltool.rc in root's home directory, since it is
-# root who runs the init script.
-# (See the SqlTool chapter of the HyperSQL Utilities Guide if you don't
-# understand this).
-#AUTH_FILE=/home/blaine/sqltool.rc
-
-# Typical users will leave this unset and it will default to
-# org.hsqldb.server.Server. If you need to run the HSQLDB WebServer class
-# instead, due to a firewall or routing impediment, set this to
-# org.hsqldb.server.WebServer, see the docs about running WebServr, and
-# set up a "webserver.properties" file instead of a "server.properties".
-# The JVM that is started can invoke many classes (see the following item
-# about that), but this is the server that is used (1) to check status,
-# (2) to shut down the JVM.
-#TARGET_CLASS=org.hsqldb.server.WebServer
-
-# This is where you may specify both command-line parameters to TARGET_CLASS,
-# plus any number of additional progams to run (along with their command-line
-# parameters). The MainInvoker program is used to embed these multiple
-# static main invocations into a single JVM, so see the API spec for
-# org.hsqldb.util.MainInvoker if you want to learn more.
-# N.b. You should only use this setting to set HSQLDB Server or WebServer
-# parameters if you run multiple instances of this class, since you can use the
-# server/webserver.properties file for a single instance.
-# Every additional class (in addition to the TARGET_CLASS)
-# must be preceded with an empty string, so that MainInvoker will know
-# you are giving a class name. MainInvoker will invoke the normal
-# static main(String[]) method of each such class.
-# By default, MainInvoker will just run TARGET_CLASS with no args.
-# Example that runs just the TARGET_CLASS with the specified arguments:
-#INVOC_ADDL_ARGS='-silent false' #but use server.properties property instead!
-# Example that runs the TARGET_CLASS plus a WebServer:
-#INVOC_ADDL_ARGS='"" org.hsqldb.server.WebServer'
-# Note the empty string preceding the class name.
-# Example that starts TARGET_CLASS with an argument + a WebServer +
-# your own application with its args (i.e., the HSQLDB Servers are
-# "embedded" in your application). (Set SERVER_ADDL_CLASSPATH too).:
-#INVOC_ADDL_ARGS='-silent false "" org.hsqldb.server.WebServer "" com.acme.Stone --env prod localhost'
-# but use server.properties for -silent option instead!
-# Example to run a non-TLS server in same JVM with a TLS server. In this
-# case, TARGET_CLASS is Server which will run both in TLS mode by virtue of
-# setting the tls, keyStore, and keyStorePassword settings in
-# server*.properties, as described below; plus an "additional" Server with
-# overridden 'tls' and 'port' settings:
-#INVOC_ADDL_ARGS="'' org.hsqldb.server.Server --port 9002 --tls false"
-# This is an important use case. If you run more than one Server instance,
-# you can specify different parameters for each here, even though only one
-# server.properties file is supported.
-# Note that you use nested quotes to group arguments and to specify the
-# empty-string delimiter.
-
-# The TLS_* settings have been obsoleted.
-# To get your server running with TLS, set
-# system.javax.net.ssl.keyStore=/path/to/your/private.keystore
-# system.javax.net.ssl.keyStorePassword=secretPassword
-# server.ssl=true
-# IN server.properties or webserver.properties, and
-# MAKE THE FILE OWNER-READ-ONLY!
-# See the TLS Encryption section of the HyperSQL User Guide, paying attention
-# to the security warning(s).
-# If you are running with a private server cert, then you will also need to
-# set "truststore" in the your SqlTool config file (location is set by the
-# AUTH_FILE variable in this file, or it must be at the default location for
-# HSQLDB_OWNER).
-
-# Any JVM args for the invocation of the JDBC client used to verify DB
-# instances and to shut them down (SqlToolSprayer).
-# Server-side System Properties should normally be set with system.*
-# settings in the server/webserver.properties file.
-# This example specifies the location of a private trust store for TLS
-# encryption.
-# For multiple args, put quotes around entire value.
-# If you are starting just a TLS_encrypted Listener, you need to uncomment
-# this so the init scripts uses TLS to connect.
-# If using a private keystore, you also need to set "truststore" settings in
-# the sqltool.rc file.
-#CLIENT_JVMARGS=-Djavax.net.debug=ssl
-# This sample value displays useful debugging information about TLS/SSL.
-
-# Any JVM args for the server.
-# For multiple args, put quotes around entire value.
-#SERVER_JVMARGS=-Xmx512m
-# You can set the "javax.net.debug" property on the server side here, in the
-# same exact way as shown for the client side above.
diff --git a/database/hsqldb/sample/hsqldb.init b/database/hsqldb/sample/hsqldb.init
deleted file mode 100644
index 2137094d..00000000
--- a/database/hsqldb/sample/hsqldb.init
+++ /dev/null
@@ -1,501 +0,0 @@
-#!/bin/sh
-# For boot-up and system shutdown, most UNIXes explicitly run a shell
-# interpreter. In that case, the interpreter line above is ignored.
-# There are a few UNIXes (notably Darwin) that require the interpreter line.
-
-# Copyright (c) 2001-2008, The HSQL Development Group
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# Redistributions of source code must retain the above copyright notice, this
-# list of conditions and the following disclaimer.
-#
-# Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# Neither the name of the HSQL Development Group nor the names of its
-# contributors may be used to endorse or promote products derived from this
-# software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
-# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-# $Id: hsqldb.init 6310 2021-02-28 15:25:00Z unsaved $
-
-# UNIX init script for HSQLDB.
-
-# IMPORTANT! Users running multiple HSQLDB ***Server processes*** must use a
-# unique "SERVICE" name for each Server process. Most users will run just one
-# server instance, possibly serving lots of database instances. Multi-server
-# runners must change the value on the following line, and, if your system
-# uses chkconfig or insserv, you must change the value of "hsqldb" to the
-# same thing (as SERVICE) in the chkconfig and/or insserv blocks a few
-# lines down from here (incl. in the pidfile and config file paths). (Sorry
-# to say, but you need to repeat this procedure after every HSQLDB upgrade).
-SERVICE=hsqldb
-# This is the one setting which users will commonly change in this file.
-# It's impossible to determine this script name (in a portable way) at boot-up
-# time, since ${0} is entirely different for init scripts, depending on UNIX
-# version.
-
-# See the "HyperSQL on UNIX" chapter of the HyperSQL User Guide for how to
-# use this file.
-# This block only used by chkconfig systems (incl. SuSE Linux).
-# chkconfig: 345 87 13
-# description: HyperSQL Database, A High Performance Java Database Server
-# pidfile: /run/hsqldb.pid
-# config: /etc/sysconfig/hsqldb
-
-# This block only used by insserv systems (incl. SuSE Linux).
-### BEGIN INIT INFO
-# Provides: hsqldb
-# Required-Start: $syslog $remote_fs $network $named
-# Required-Stop:
-# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
-# Short-Description: HyperSQL Database Server
-# Description: HyperSQL Database, A High Performance Java Database Server
-### END INIT INFO
-
-# UNIX System-V and Linux users should copy this script to the common
-# init script directory (/etc/init.d/ on most systems) with name "hsqldb",
-# or whatever you have SERVICE set to (no ".init" suffix!).
-
-# N.b. Being a system script, this script does not use inherited variables.
-# If you want to adjust a setting, edit the config file.
-
-# Strategy of this init script is to avoid shell-specific functionality,
-# and use only lowest-common-denominator Bourne capabilities.
-# We don't include OS-specific functions, and we don't use shell-
-# implementation-specific functionality like "echo ...\c" or "echo -n...".
-# Since some Bourne shells don't support shell functions at all, we don't
-# even define any local functions.
-
-# This script has been generalized to the point that it can now "start"
-# any combination of classes with the normal static main methods.
-# You can supply invocation arguments to the
-# TARGET_CLASS invocation, and can start as many other classes as you
-# wish by using the INVOC_ADDL_ARGS setting (this includes running
-# multiple HSQLDB Servers of various types).
-
-# Template config file can be obtained from the HyperSQL distribution.
-# On the day I write this, I have it located at "sample/hsqldb.cfg" in the
-# distro, but that could change. You need to copy then edit it before it
-# will work.
-# Recommended locations for runtime configuration file:
-# Darwin, SunOS, Solaris: /etc/hsqldb.conf
-# (However, Sunfreeware.com builds use /usr/local/etc).
-# Linux: /etc/hsqldb/hsqldb.conf (works well to put sqltool.rc here too)
-# FreeBSD: /usr/local/etc/hsqldb.cfg
-# (Replace the base name "hsqldb" with whatever you have SERVICE set to at
-# the top of this file).
-# You can put it at any of these locations and it will be used. For
-# your sanity, only put a file at one of these locations.
-
-# -- blaine.simpson@admc.com
-
-set +u
-
-# Following function is Copyright Apache 2.0 by Axis Data Management Corp.
-# and code is copied verbatim from
-# http://pub.admc.com/scripts/bin/minsleep-nov.fnc
-# Sleeps until process dies or file appears.
-# 2nd parameter is assumed to be a PID if it is an integer.
-minsleep() {
- [ $# -eq 2 ] || {
- echo 'SYNTAX: minsleep MAXSECS PID|PATH (for integers MAXSECS and PID)' 1>&2
- return 2
- }
- TARGET_PID= TARGET_PATH=
- MAXSECS=$1; shift
- case "$1" in *[!0-9]*) TARGET_PATH="$1";; *) TARGET_PID="$1";; esac; shift
- _secs=0
- while [ $_secs -lt $MAXSECS ]; do
- _secs=`expr $_secs + 1`
- if [ -n "$TARGET_PID" ]; then
- kill -0 $TARGET_PID > /dev/null 2>&1 || return 0 # Target proc died
- elif [ -s "$TARGET_PATH" ]; then
- return 0 # Target process died
- fi
- sleep 1
- done
- return 1 # Timed out
-}
-
-# This is only used for recursive invocations.
-# Will not necessarily be set correctly at system bootup invocations
-# (where it is sometimes invoked like "sh... /path/to/hsqldb start"),
-# but, in those cases there will be no recursion.
-INVOC_PATH=`dirname "$0"` || {
- echo "'dirname' failed" 1>&2
- exit 2
-}
-[ -n "$INVOC_PATH" ] && INVOC_PATH="${INVOC_PATH}/"
-
-SYNTAX_MSG="SYNTAX: ${INVOC_PATH}${SERVICE} start|stop|stopcompact|restart|restartcmpacted|status"
-
-# You can override any of these default values in your config file:
-
-# Max time for background su command to start up and echo pid.
-# (0 works for moderately fast servers).
-SU_ECHO_SECS=30
-# File used as semaphore. If file is removed, a running pid checker
-# process will exit.
-PIDCHECKER_FLAGFILE=/tmp/pidchecker.run
-# The following settings get overridden by optional setting in the config file.
-# Max time for JVM to die after all HSQLDB instances stopped.
-MAX_TERMINATE_SECS=60
-# We require all Server/WebServer instances to be accessible within
-# $MAX_START_SECS from when the Server/WebServer is started.
-MAX_START_SECS=60
-# Class to start
-TARGET_CLASS=org.hsqldb.server.Server
-
-CLIENT_JVMARGS=
-SERVER_JVMARGS=
-CFGFILE=
-LOGFILE=
-PIDFILE=
-BASEDIR=
-AUTH_FILE=
-SHUTDOWN_OPTION=
-SERVER_ADDL_CLASSPATH=
-INVOC_ADDL_ARGS=
-case "`uname`" in
- Darwin) # I.e. Mac OS X. I don't know about older Mac OSes.
- LOGFILE=/var/log/${SERVICE}.log
- PIDFILE=/var/run/${SERVICE}.pid
- ;;
- Linux)
- LOGFILE=/var/log/${SERVICE}.log
- PIDFILE=/run/${SERVICE}.pid
- ;;
- FreeBSD)
- LOGFILE=/var/log/${SERVICE}.log
- PIDFILE=/var/run/${SERVICE}.pid
- ;;
- SunOS)
- LOGFILE=/var/log/${SERVICE}.log
- PIDFILE=/etc/${SERVICE}.pid
- ;;
- *)
- LOGFILE=/var/log/${SERVICE}.log
- PIDFILE=/etc/${SERVICE}.pid
- ;;
-esac
-
-for candidate in /etc/hsqldb/${SERVICE}.conf \
- /etc/sysconfig/${SERVICE} /etc/${SERVICE}.conf \
- /etc/${SERVICE}.cfg /Library/Hsqldb/conf/${SERVICE}.cfg \
- /Library/Hsqldb/${SERVICE}.cfg /usr/local/etc/${SERVICE}.cfg; do
- [ -f $candidate ] && {
- CFGFILE=$candidate
- break
- }
-done
-[ -n "$CFGFILE" ] || {
- echo "No global config file found in any of allowed locations" 1>&2
- exit 11
-}
-
-# Sanity check
-[ -n "$LOGFILE" ] && [ -n "$PIDFILE" ] || {
- echo "Internal problem in init script" 1>&2
- exit 11
-}
-
-[ $# -eq 1 ] || {
- echo "$SYNTAX_MSG" 1>&2
- exit 4
-}
-
-# It would be nice to permit some uses, like "status" by non-root users,
-# but for now our goal is a superuser init script.
-[ -w / ] || { # Very portable, but perhaps not perfect, test for superuser.
- echo "Only 'root' may use this init script" 1>&2
- exit 4
-}
-
-# Use bsd-style enable/disable if it's in place.
-BSDCFG=
-[ -r /etc/rc.conf ] && [ -f /etc/rc.conf ] && {
- . /etc/rc.conf
- BSDCFG=1
-}
-[ -r /etc/rc.conf.local ] && [ -f /etc/rc.conf.local ] && {
- . /etc/rc.conf.local
- BSDCFG=1
-}
-[ -n "$BSDCFG" ] && {
- case "$hsqldb_enable" in [Yy][Ee][Ss]);; [Oo][Nn]);; [Tt][Rr][Uu][Ee]);;
- *) exit 0;; # Don't run if not enabled for BSD startup
- esac
-}
-
-COMMAND="$1"; shift
-
-[ -r "$CFGFILE" ] || {
- echo "Unable to read config file '$CFGFILE'" 1>&2
- exit 2
-}
-[ -f "$CFGFILE" ] || {
- echo "'$CFGFILE' is not a regular file" 1>&2
- exit 2
-}
-HSQLDB_OWNER=
-JAVA_EXECUTABLE=
-SQLTOOL_JAR_PATH=
-SERVER_HOME=
-SHUTDOWN_URLIDS=
-URLIDS=
-. "$CFGFILE"
-# Suffix delimiter to $SERVER_ADDL_CLASSPATH, if it is set.
-[ -n "$SERVER_ADDL_CLASSPATH" ] &&
-SERVER_ADDL_CLASSPATH="${SERVER_ADDL_CLASSPATH}:"
-# Validate that config file sets all required variables.
-[ -n "$JAVA_EXECUTABLE" ] && [ -n "$SQLTOOL_JAR_PATH" ] &&
-[ -n "$SERVER_HOME" ] && [ -n "$URLIDS" ] || {
- echo "Config file '$CFGFILE' does not set one or more of following variables
- JAVA_EXECUTABLE, SQLTOOL_JAR_PATH, SERVER_HOME, URLIDS" 1>&2
- exit 2
-}
-[ -d "$SERVER_HOME" ] || {
- echo "SERVER_HOME variable in '$CFGFILE' is set to a non-directory." 1>&2
- exit 2
-}
-[ -f "$JAVA_EXECUTABLE" ] && [ -f "$SQLTOOL_JAR_PATH" ] || {
- echo "JAVA_EXECUTABLE or SQLTOOL_JAR_PATH in '$CFGFILE' is set to a non-file." 1>&2
- exit 2
-}
-
-[ -r "$SQLTOOL_JAR_PATH" ] || {
- echo "'$SQLTOOL_JAR_PATH' isn't readable" 1>&2
- exit 2
-}
-[ -x "$JAVA_EXECUTABLE" ] || {
- echo "No Java executable found at '$JAVA_EXECUTABLE'" 1>&2
- exit 2
-}
-
-# "chown" lives here on some UNIXes.
-PATH="$PATH:/usr/sbin"
-
-# Make a good effort (but not bullet-proof) check on permissions of the
-# auth file. Unfortunately, if auth-file is not specified, this depends
-# upon both (a) $HOME being set; and (b) SqlToolSprayer and SqlTool defaults.
-# On the other hand, it works great if AUTH_FILE is set explicitly by user.
-if [ -z "$AUTH_FILE" ] && [ -z "$HOME" ]; then
- : # Lousy init environment didn't set $HOME, so can't find dflt cfg file.
-else
- _AUTH_TEST_PATH="$AUTH_FILE"
- [ -n "${_AUTH_TEST_PATH}" ] || _AUTH_TEST_PATH="$HOME/sqltool.rc"
- [ -f "$_AUTH_TEST_PATH" ] || {
- echo "No auth file found at '$_AUTH_TEST_PATH'" 1>&2
- exit 2
- }
- [ -r "$_AUTH_TEST_PATH" ] || {
- echo "Auth file '$_AUTH_TEST_PATH' not readable" 1>&2
- exit 2
- }
- ls -lLd "$_AUTH_TEST_PATH" | grep '^-..------' > /dev/null 2>&1 || {
- echo "Fix permissions on '$_AUTH_TEST_PATH' like 'chmod 600 $_AUTH_TEST_PATH'" 1>&2
- exit 2
- }
-fi
-
-# Set HSQLDB_PID according to pid file.
-HSQLDB_PID=
-[ -r "$PIDFILE" ] && {
- [ -f "$PIDFILE" ] || {
- echo "'$PIDFILE' is not a regular file" 1>&2
- exit 6
- }
- [ -w "$PIDFILE" ] || {
- echo "'$PIDFILE' is not writable" 1>&2
- exit 6
- }
- HSQLDB_PID="`cat $PIDFILE`" || {
- echo "Failed to read pid file '$PIDFILE'" 1>&2
- exit 6
- }
- case "$HSQLDB_PID" in
- *[a-zA-Z/!@#$%*+=_~]*) HSQLDB_PID=;;
- *'^'*) HSQLDB_PID=;;
- esac
- [ -n "$HSQLDB_PID" ] || {
- echo "Pid file '$PIDFILE' does not contain a valid process identifier" 1>&2
- exit 6
- }
- kill -0 "$HSQLDB_PID" > /dev/null 2>&1 || {
- echo 'Removing stale pid file'
- rm -f "$PIDFILE" || {
- echo "Failed to remove pid file '$PIDFILE'" 1>&2
- exit 6
- }
- HSQLDB_PID=
- }
- #echo "PID is ($HSQLDB_PID)"
-}
-
-case "$COMMAND" in
- status)
- [ -n "$HSQLDB_PID" ] || {
- echo "I don't know of any running ${SERVICE} server."
- exit 0
- }
- echo "There is an ${SERVICE} server loaded from $SQLTOOL_JAR_PATH
-running with pid $HSQLDB_PID."
- # I would give a nice ps command here, were ps not so damned
- # OS-specific.
- AUTH_FILE_SWITCH=
- # N.b., there will be a problem if there are special characters or
- # spaces inside of $AUTH_FILE.
- [ -n "$AUTH_FILE" ] &&
- AUTH_FILE_SWITCH="-Dsqltoolsprayer.rcfile=$AUTH_FILE"
- # Might as well set CLASSPATH for a cleaner command.
- CLASSPATH="$SQLTOOL_JAR_PATH"
- export CLASSPATH
- export PATH # Required only for some funny init environments.
- exec "$JAVA_EXECUTABLE" $AUTH_FILE_SWITCH $CLIENT_JVMARGS \
- "-Dsqltoolsprayer.monfile=$PIDFILE" \
- org.hsqldb.cmdline.SqlToolSprayer 'CALL true;' $URLIDS > /dev/null
- ;;
- start)
- [ -n "$TLS_KEYSTORE" ] || [ -n "$TLS_PASSWORD" ] &&
- echo "WARNING: The TLS_* settings have been obsoleted.
-See the comments in the new sample 'hsqldb.cfg' file." 1>&2
- [ -n "$HSQLDB_PID" ] && {
- echo "There is already a ${SERVICE} server running with pid $HSQLDB_PID." 1>&2
- exit 1
- }
- if [ -n "$HSQLDB_OWNER" ]; then
- touch "$PIDFILE" || {
- echo "Failed to create pid file" 1>&2
- exit 1
- }
- chown "$HSQLDB_OWNER" "$PIDFILE" || {
- echo "Failed to chown pid file to '$HSQLDB_OWNER'" 1>&2
- exit 1
- }
- # Some OSes choke if there are newlines in this string.
- # N.b.!!! The shell of the -c command is the target user's default
- # login shell, so keep this command shell-independent!
- nohup su "$HSQLDB_OWNER" -c "cd '$SERVER_HOME' && echo "'$$'" > '$PIDFILE' && exec '$JAVA_EXECUTABLE' $SERVER_JVMARGS -classpath '${SERVER_ADDL_CLASSPATH}${SQLTOOL_JAR_PATH}' org.hsqldb.util.MainInvoker $TARGET_CLASS $INVOC_ADDL_ARGS" >> "$LOGFILE" 2>&1 &
- else
- cd "$SERVER_HOME" || {
- echo "Failed to cd to '$SERVER_HOME'" 1>&2
- exit 1
- }
- export JAVA_EXECUTABLE
- export SQLTOOL_JAR_PATH
- export PIDFILE
- export SERVER_JVMARGS
- export TARGET_CLASS
- export INVOC_ADDL_ARGS
- export SERVER_ADDL_CLASSPATH
- nohup sh -c '
- echo $$ > "$PIDFILE" || {
- echo "Failed to write pid to pid file" 1>&2
- exit 1
- }
- eval exec "$JAVA_EXECUTABLE" $SERVER_JVMARGS -classpath "${SERVER_ADDL_CLASSPATH}${SQLTOOL_JAR_PATH}" org.hsqldb.util.MainInvoker $TARGET_CLASS $INVOC_ADDL_ARGS
- ' >> "$LOGFILE" 2>&1 &
- fi
- minsleep $SU_ECHO_SECS "$PIDFILE"
- # Make sure bg commands have time to echo pid.
- AUTH_FILE_SWITCH=
- # N.b., there will be a problem if there are special characters or
- # spaces inside of $AUTH_FILE.
- [ -n "$AUTH_FILE" ] &&
- AUTH_FILE_SWITCH="-Dsqltoolsprayer.rcfile=$AUTH_FILE"
- # Might as well set CLASSPATH for a cleaner command.
- CLASSPATH="$SQLTOOL_JAR_PATH"
- export CLASSPATH
- export PATH # Required only for some funny init environments.
- # There are many reasons why we could fail to read the pid file,
- # but regardless of why, the pid file does not contain a valid pid.
- touch "$PIDCHECKER_FLAGFILE" || {
- echo "Failed to touch file '$PIDCHECKER_FLAGFILE'" 1>&2
- exit 1
- }
- export PIDCHECKER_FLAGFILE
- export PIDFILE
- (
- while true; do
- # Could possibly use minsleep to simplify this, but I don't
- # want to take the time to test the function export behavior.
- # -a and -e tests are not portable.
- [ -f "$PIDCHECKER_FLAGFILE" ] || exit 0
- kill -0 "`cat $PIDFILE`" > /dev/null 2>&1 || {
- rm -f "$PIDFILE" "$PIDCHECKER_FLAGFILE"
- exit 1
- }
- sleep 1
- done
- ) &
- "$JAVA_EXECUTABLE" $AUTH_FILE_SWITCH $CLIENT_JVMARGS \
- "-Dsqltoolsprayer.monfile=$PIDFILE" \
- "-Dsqltoolsprayer.maxtime=${MAX_START_SECS}000" \
- org.hsqldb.cmdline.SqlToolSprayer 'CALL true;' $URLIDS > /dev/null && {
- rm -f "$PIDCHECKER_FLAGFILE"
- echo "$TARGET_CLASS started with pid `cat $PIDFILE`"
- exit 0
- }
- rm -f "$PIDCHECKER_FLAGFILE"
- echo "Failed to start $TARGET_CLASS.
-See log file '$LOGFILE'." 1>&2
- exit 1
- ;;
- stop|stopcompact)
- [ "$COMMAND" = stopcompact ] && SHUTDOWN_OPTION='compact'
- [ -n "$HSQLDB_PID" ] || {
- echo "I don't know of any running ${SERVICE} server." 1>&2
- exit 1
- }
- AUTH_FILE_SWITCH=
- # N.b., there will be a problem if there are special characters or
- # spaces inside of $AUTH_FILE.
- [ -n "$AUTH_FILE" ] &&
- AUTH_FILE_SWITCH="-Dsqltoolsprayer.rcfile=$AUTH_FILE"
- # Might as well set CLASSPATH for a cleaner command.
- CLASSPATH="$SQLTOOL_JAR_PATH"
- export CLASSPATH
- export PATH # Required only for some funny init environments.
- "$JAVA_EXECUTABLE" $AUTH_FILE_SWITCH $CLIENT_JVMARGS \
- org.hsqldb.cmdline.SqlToolSprayer "shutdown ${SHUTDOWN_OPTION};" \
- $URLIDS $SHUTDOWN_URLIDS || exit 1
- minsleep $MAX_TERMINATE_SECS $HSQLDB_PID || {
- echo "WARNING: ${SERVICE} is still running!" 1>&2
- exit 1
- }
- rm -f "$PIDFILE" || {
- echo "Failed to remove pid file '$PIDFILE'" 1>&2
- exit 1
- }
- echo "Successful shutdown ${SHUTDOWN_OPTION} (for the $TARGET_CLASS process)!"
- exit 0
- ;;
- restart|restartcompacted)
- STOP_COMMAND=stop
- [ "$COMMAND" = restartcompacted ] && STOP_COMMAND=stopcompact
- "${INVOC_PATH}"${SERVICE} $STOP_COMMAND || exit $?
- exec "${INVOC_PATH}"/${SERVICE} start
- ;;
- *)
- echo "$SYNTAX_MSG" 1>&2
- exit 5
- ;;
-esac
diff --git a/database/hsqldb/sample/hsqldb.service b/database/hsqldb/sample/hsqldb.service
deleted file mode 100644
index 6fb9e3c6..00000000
--- a/database/hsqldb/sample/hsqldb.service
+++ /dev/null
@@ -1,34 +0,0 @@
-# $Id: hsqldb.service 6309 2021-02-28 15:06:19Z unsaved $
-
-# This file is a systemd init script wrapper for leading-edge UNIXes.
-# Copy $HSQLDB_HOME/.../sample/hsqldb.cfg to /etc/hsqldb.conf and edit it.
-# Tend to the "TODO" note below.
-# Our init script will fail unless your .rc file is protected something like:
-# chmod 0600 /path/to/sqltool.rc
-#
-# To activate this file, run: systemd daemon-reload
-# To enable to execute upon system bootups/shutdowns (the ultimate purpose), run:
-# systemctl enable hsqldb
-#
-# -- Blaine (blaine dot simpson at admc dot com)
-
-[Unit]
-Description=HyperSQL Database Server
-After=socket.service
-
-[Service]
-# TODO! Change these paths to point to the absolute path of the "hsqldb.init"
-# script in your HyperSQL distribution:
-ExecStart=/local/hsqldb-2.3.4/sample/hsqldb.init start
-ExecReload=/local/hsqldb-2.3.4/sample/hsqldb.init restart
-ExecStop=/local/hsqldb-2.3.4/sample/hsqldb.init stop
-KillMode=process
-#Restart=always Don't silently restart and mask real problems
-PIDFile=/run/hsqldb.pid
-#User=... We manage user from file /etc/hsqldb.conf
-#WorkingDirectory=... No dependency on $PWD
-Type=forking
-TimeoutStartSec=10
-
-[Install]
-WantedBy=multi-user.target
diff --git a/database/hsqldb/sample/html-report.sql b/database/hsqldb/sample/html-report.sql
deleted file mode 100644
index 0cb9bbe9..00000000
--- a/database/hsqldb/sample/html-report.sql
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * $Id: html-report.sql 4512 2011-10-11 02:29:08Z unsaved $
- *
- * Sample/Template for writing an HTML Report
- */
-
--- Populate sample data
-create table t (i integer, vc varchar(20));
-insert into t values(1, 'one');
-insert into t values(2, 'two');
-insert into t values(3, 'three');
-insert into t values(4, 'four');
-insert into t values(5, 'five');
-commit;
-
-
--- IMPORTANT: \o will append by default. If you want to write a new file,
--- it's your responsibility to check that a file of the same name does not
--- already exist (or remove it).
-
-
--- Follow the following examples to use your own HTML fragment files.
--- * *TOP_HTMLFRAG_FILE = /tmp/top.html
--- * *BOTTOM_HTMLFRAG_FILE = /tmp/bottom.html
-
--- The default TOP_HTMLFRAG_FILE has a reference to this PL variable.
-* REPORT_TITLE = Blaine's Sample Report
--- The default will also override its CSS style settings with your own if you
--- put them in a file named "overrides.css" in same directory alongside your
--- reports ("report.html" in this example).
--- You can add references to ${system.properties} and *{PL_VARIABLES} in
--- your own custom fragment files too.
-
-
--- Turn on HTML output mode.
--- Must enable HTML _before_ opening to write top frag.
-\h true
-\o report.html
-\p A message to appear in the Report
-SELECT * FROM t;
-
--- Close off output just to show that you can go back and forth.
--- A close with '\o' will not write the bottom boilerplate that closes the HTML.
-\o
-\h false
-\p Some non-HTML non-Report output:
-SELECT count(*) FROM t;
-
-\h true
--- Re-open the report
-\o report.html
-\d t
--- This time close it with
-\oc
diff --git a/database/hsqldb/sample/j-sample.sql b/database/hsqldb/sample/j-sample.sql
deleted file mode 100644
index a084d178..00000000
--- a/database/hsqldb/sample/j-sample.sql
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- $Id: j-sample.sql 3605 2010-06-01 02:21:36Z unsaved $
- Exemplifies use of SqlTool's \j command to specify the JDBC connection
- parameters right in the SQL file.
-
- Invoke like this:
-
- java -jar .../sqltool.jar - .../j-sample.sql
-
- (give the file paths to wherever these two files reside).
- Or start up SqlTool like this:
-
- java -jar .../sqltool.jar
-
- and then execute this script like
-
- \i .../j-sample.sql
-*/
-
--- Abort this script when errors occur.
--- That's the default if the script is invoked from command-line, but not if
--- invoked by \i.
-\c false
-
--- Note the new feature in HyperSQL 2, whereby you can set an SA password
--- by just specifying that as the password for the very first connection to
--- that database
-\j SA fred jdbc:hsqldb:mem:fred
--- FORMAT: \j
-
-\p You have conkected successfully
-\p
-
-CREATE TABLE t(i BIGINT, vc VARCHAR(20));
-INSERT INTO t VALUES(1, 'one');
-INSERT INTO t VALUES(2, 'two');
-
-SELECT * FROM t;
diff --git a/database/hsqldb/sample/jaas.cfg b/database/hsqldb/sample/jaas.cfg
deleted file mode 100644
index cf4d8064..00000000
--- a/database/hsqldb/sample/jaas.cfg
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- Copyright (c) 2010, The HSQL Development Group. All rights reserved.
- Released under the HSQL license, available at http://hsqldb.org
-
- This is a working JAAS configuration file that sets up two "applications"
- for use with HyperSQL's extAuthWithSpring sample.
- Look under /integration/extAuthWithSpring in your HyperSQL distribution for
- details.
-*/
-
-demo {
- /*
- * A trivial module that allows access if user name and password start with
- * the specified values.
- * See source code for the module in for this class under the test-src
- * directory of your HyperSQL installation.
- */
- org.hsqldb.auth.StartCharModule required
- //debug=true
- nameStart="s"
- pwdStart="p"
- ;
-};
-
-sunLdap {
- /*
- * JAAS setup for com.sun.security.auth.module.LdapLoginModule.
- * This proprietary Sun Java 1.6 JSSE module doesn't support StartTLS, but
- * does support the deprecated LDAPS. It also supports only a single role or
- * initial schema.
- * Do a web search for LdapLoginModule for the API Spec which describes the
- * available settings and (incompletely) functionality. There is another
- * popular class on the Internet with the same name, so make sure you look at
- * the one with package of com.sun.security.auth.module.
- */
- com.sun.security.auth.module.LdapLoginModule required
- // useSSL means LDAPS, not StartDLS (which is not supported).
- // It is true by default, so set to false unless you want LDAPS.
- useSSL=false
- // Enable following line for debugging
- // debug=true
- java.naming.security.authentication="DIGEST-MD5"
- // Your URL must include the parent DN for user records as shown.
- userProvider="ldap://beyla.admc.com/ou=people,dc=admc,dc=com"
- authIdentity="{USERNAME}"
- userFilter="uid={USERNAME}"
- authzIdentity="{memberof}"
- ;
-};
diff --git a/database/hsqldb/sample/ldap-exerciser.properties b/database/hsqldb/sample/ldap-exerciser.properties
deleted file mode 100644
index 95406488..00000000
--- a/database/hsqldb/sample/ldap-exerciser.properties
+++ /dev/null
@@ -1,44 +0,0 @@
-# $Id: ldap-exerciser.properties 3872 2010-11-09 04:14:40Z unsaved $
-
-# This is a sample properties file for the utility program
-# org.hsqldb.auth.LdapAuthBean. See the API Spec for
-# org.hsqldb.auth.LdapAuthBean for details about all of the settings you can use
-# here.
-
-# IMPORTANT: Use ISO-8859-1 encoding for any extended characters, as you always
-# should for a Java properties file.
-
-# The ${...} construct (for system properties) is not supported.
-
-# All of these examples use a roleSchemaValuePattern setting to work with the
-# LDAP memberOf feature. If you have a direct attribute for specifying roles
-# (and optional schema), then just skip that setting.
-
-# These settings are used for all sample setups
-# When startTls is true, ldapHost must match the CN in the server's cert.
-ldapHost=beyla.admc.com
-parentDn=ou=people,dc=admc,dc=com
-roleSchemaValuePattern=cn=([^,]+).*
-rolesSchemaAttribute=memberof
-accessAttribute=hyperSqlAccess
-
-# This block of settings works for an OpenLDAP server using the memberOf
-# feature for membership in roles, with DIGEST-MD5 SASL and StartTLS with a
-# private (non-commercial) SSL certificate.
-startTls=true
-trustStore=/home/blaine/ca/cacert.store
-securityMechanism=DIGEST-MD5
-
-# To use an LDAP server that is totally unsecured, comment out the settings in
-# the previous block and enable the one setting here.
-# An unsecured server can be useful for educational purposes, but not for a
-# real application!
-#principalTemplate=uid=${username},ou=people,dc=admc,dc=com
-
-# PLAIN authentication, but StartTLS-encrypted. Disable the block above
-# starting with "startTls=true" and enable the settings in this block.
-#principalTemplate=uid=${username},ou=people,dc=admc,dc=com
-
-# SASL DIGEST-MD5 with no encryption. Disable the block above
-# starting with "startTls=true" and enable the settings in this block.
-#securityMechanism=DIGEST-MD5
diff --git a/database/hsqldb/sample/load_binding_lu.sql b/database/hsqldb/sample/load_binding_lu.sql
deleted file mode 100644
index 13be042f..00000000
--- a/database/hsqldb/sample/load_binding_lu.sql
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- $Id: load_binding_lu.sql 610 2008-12-22 15:54:18Z unsaved $
- Load BINDING Lookup Text Table
-*/
-
-\p Creating table BINDING_TMPTXT
-CREATE TEMP TEXT TABLE binding_tmptxt (
- id integer,
- name varchar(12)
-);
-
-\p Setting text file source
-SET TABLE binding_tmptxt SOURCE "binding_lu.ttbl;ignore_first=true;fs=|";
-
-\p rows in binding_tmptxt:
-select count(*) from binding_tmptxt;
-\p PRE rows in binding_lu:
-select count(*) from binding_lu;
-
-INSERT INTO binding_lu (
- id,
- name
-) SELECT
- id,
- name
-FROM BINDING_TMPTXT;
-
-commit;
-
-\p POST rows in binding_lu:
-select count(*) from binding_lu;
diff --git a/database/hsqldb/sample/nullempty.sql b/database/hsqldb/sample/nullempty.sql
deleted file mode 100644
index 70c50240..00000000
--- a/database/hsqldb/sample/nullempty.sql
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * $Id: nullempty.sql 4709 2011-11-05 01:50:17Z unsaved $
- *
- * This sample shows differences between null and empty strings,
- * and ? var vs. _/~ variables.
- */
-
-\p At startup ? is equal to empty string. See between A and B: A*{?}B
-* if (A*{?}B == AB) \p ? is the empty string
-
-CREATE TABLE t(i INTEGER, vc VARCHAR(20));
-INSERT INTO t VALUES(1, 'one');
-INSERT INTO t VALUES(2, 'two');
-* res ~
-SELECT * FROM t;
-\p *{?}
-\p *{res}
-* listvalues ? res
-
-INSERT INTO t VALUES (3, null);
-*res ~
-SELECT vc FROM t WHERE i = 3;
-\p *{?}
-* if (*res == **NULL) \p res really is null
-* listvalues ? res
-
--- This will prevent SqlTool from aborting when we run a bad SQL statement:
-\c true
-*res ~
-SELECT hocus FROM pocus;
-* if (*? == **NULL) \p ? really is null
-* if (*res == **NULL) \p res really is null
-* listvalues ? res
diff --git a/database/hsqldb/sample/pl.sql b/database/hsqldb/sample/pl.sql
deleted file mode 100644
index 3ce8c327..00000000
--- a/database/hsqldb/sample/pl.sql
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- $Id: pl.sql 4563 2011-10-19 02:24:41Z unsaved $
- SQL File to illustrate the use of some basic SqlTool PL features.
- Invoke like
- java -jar .../sqltool.jar mem .../pl.sql
- -- blaine
-*/
-
-* if (! *MYTABLE)
- \p MYTABLE variable not set!
- /* You could use \q to Quit SqlTool, but it's often better to just
- break out of the current SQL file.
- If people invoke your script from SqlTool interactively (with
- \i yourscriptname.sql) any \q will kill their SqlTool session. */
- \p Use argument "-pMYTABLE=mytablename" for SqlTool
- * break
-* end if
-
--- Turning on Continue-upon-errors so that we can check for errors ourselves.
-\c true
-
-\p
-\p Loading up a table named '*{MYTABLE}'...
-
-CREATE TABLE *{MYTABLE} (
- i int,
- s varchar(20)
-);
--- PL variable ? is always set to status or fetched value of last SQL
--- statement. It will be null/unset if the last SQL statement failed.
-\p CREATE status is *{?}
-\p
-
-/* Validate our return status.
- In case of success of a CREATE TABLE, *? will be 0, and therefore a
- '* if (*?)' would be false.
- So we follow the general practice of testing *? for the error indicator
- value of null, using the reserved SqlTool system variable *NULL.
- */
-* if (*? == *NULL)
- \p Our CREATE TABLE command failed.
- * break
-* end if
-
--- Default Continue-on-error behavior is what you usually want
-\c false
-\p
-
-/* Insert data with a foreach loop.
- These values could be from a read of another table or from variables
- set on the command line like
-*/
-\p Inserting some data into our new table
-* foreach VALUE (12 22 24 15)
- * if (*VALUE > 23)
- \p Skipping *{VALUE} because it is greater than 23
- * continue
- \p YOU WILL NEVER SEE THIS LINE, because we just 'continued'.
- * end if
- INSERT INTO *{MYTABLE} VALUES (*{VALUE}, 'String of *{VALUE}');
-* end foreach
-\p
-
-/* This time instead of using the ? variable, we're assigning the SELECT value
- to a User variable, 'themax'. */
-* themax ~
-/* Can put Special Commands and comments between "* VARNAME ~" and the target
- SQL statement. */
-\p We're saving the max value for later. You'll still see query output here:
-SELECT MAX(i) FROM *{MYTABLE};
-
-/* No need to test for failure status (either ? or themax being unset/null),
- because we are in \c mode and would have aborted if the SELECT failed. */
-* if (0 == *themax)
- \p Got 0 as the max value.
- * break
- \p YOU WILL NEVER SEE THIS LINE, because we just 'broke'.
-* end if
-
-\p
-\p ##############################################################
-\p The results of our work:
-SELECT * FROM *{MYTABLE};
-\p MAX value is *{themax}
-
-\p
-\p Counting down to exit
-* ((i = 3))
-* while (*i > 0)
- \p *{i}...
- * ((i -= 1)) -- i++ is supported but i-- is not, because -- marks comments
-* end while
-
-\p
-\p Everything worked. Signing off.
diff --git a/database/hsqldb/sample/plsql.sql b/database/hsqldb/sample/plsql.sql
deleted file mode 100644
index 5318697e..00000000
--- a/database/hsqldb/sample/plsql.sql
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * $Id: plsql.sql 6375 2021-11-07 17:44:56Z unsaved $
- *
- * This example is copied from the "Simple Programs in PL/SQL"
- * example by Yu-May Chang, Jeff Ullman, Prof. Jennifer Widom at
- * the Standord University Database Group's page
- * http://www-db.stanford.edu/~ullman/fcdb/oracle/or-plsql.html .
- * I have only removed some blank lines (in case somebody wants to
- * copy this code interactively-- because you can't use blank
- * lines inside of SQL commands in non-raw mode SqlTool when running
- * it interactively); and, at the bottom I have replaced the
- * client-specific, non-standard command "run;" with SqlTool's
- * corresponding command ".;" and added a plain SQL SELECT command
- * to show whether the PL/SQL code worked. - Blaine
- */
-
-CREATE TABLE T1(
- e INTEGER,
- f INTEGER
-);
-
-DELETE FROM T1;
-
-INSERT INTO T1 VALUES(1, 3);
-
-INSERT INTO T1 VALUES(2, 4);
-
-/* Above is plain SQL; below is the PL/SQL program. */
-DECLARE
- a NUMBER;
- b NUMBER;
-BEGIN
- SELECT e,f INTO a,b FROM T1 WHERE e>1;
- INSERT INTO T1 VALUES(b,a);
-END;
-.;
-/** The statement on the previous line, ".;" is SqlTool specific.
- * This command says to save the input up to this point to the
- * edit buffer and send it to the database server for execution.
- * I added the SELECT statement below to give imm
- */
-
-/* This should show 3 rows, one containing values 4 and 2 (in this order)...*/
-SELECT * FROM t1;
diff --git a/database/hsqldb/sample/sample.c b/database/hsqldb/sample/sample.c
deleted file mode 100644
index dacc5c4f..00000000
--- a/database/hsqldb/sample/sample.c
+++ /dev/null
@@ -1,348 +0,0 @@
-/*
- * @(#)$Id: sample.c 3648 2010-06-08 22:44:25Z unsaved $
- *
- * HyperSQL Database Engine
- *
- * Copyright (c) 2009-2010, The HSQL Development Group
- */
-
-
-#include
-#ifdef _WINDOWS
-#include
-#endif
-#include
-// sqlext.h pulls in all other ODBC header files that we need
-#include
-#include
-
-extern int detectOdbcFailure(SQLRETURN rv, SQLHENV c, char* failMsg);
-extern int print_ret(char* msg, int retval);
-extern int print2_ret(char* msg, char* msg2, int retval);
-
-/**
- * This test HyperSQL client uses the ODBC DSN "tstdsn" to connect up to a
- * HyperSQL server. Just configure your own DSN to use the HyperSQL ODBC
- * driver, specifying the HyperSQL server host name, database name, user,
- * password, etc.
- *
- * Sample C program accessing HyperSQL.
- *
- * ODBC C API ref at
- * http://msdn.microsoft.com/en-us/library/ms714562(VS.85).aspx .
- * Summary of functions at
- * http://msdn.microsoft.com/en-us/library/ms712628(VS.85).aspx
- *
- * To build on UNIX with unixODBC:
- * gcc -lodbc -o sample sample.c
- *
- *
- * To build in Windows with MSVC++ (Express variant is free):