Questions tagged [hsqldb]

HSQLDB (HyperSQL Database) is a relational database management system. It is written in Java.

HSQLDB (HyperSQL Database) is a relational database management system.

HSQLDB can be used inside Java application processes to serve local databases. HSQLDB also includes a database server, which allows access over the network.

Each HSQLDB instance can serve multiple databases. Each database can contain multiple schemas. The databases can be all-in-memory (mem: url) or persisted to disk (file: url). Persisted databases can use a mix of tables that are always kept in memory (MEMORY tables) and tables that are only cached in memory (CACHED tables) which can grow to many gigabytes and beyond the available memory.

HSQLDB is extremely fast, especially when used in memory, or when the database is relatively small.

HSQLDB supports a very extensive subset of the ISO Standard SQL:2011. It also features SQL syntax compatibility modes which simplify porting applications written for another database engine.

HSQLDB supports user-defined stored procedures, functions, aggregate functions, and triggers. These can be written in Java or in SQL procedural language (PSM). It also features an extensive list of built-in functions.

HSQLDB is fully multi threaded. It can operate in three different transaction models: the Two Phased Lock model (TPL), the Multiversion Concurrency Control Model (MVCC) and a mixed, pessimistic multiversion model with snapshot isolation. In each model, a transaction can run in read committed or serializable isolation levels.

HSQLDB has been around since 2001 and is supported by many Java frameworks and tools.

2521 questions
0
votes
2 answers

Java common JDBC SQL Query strategy for Unit Test using HSQLDB and runtime using MySQL

I am developing Java Vert.x 3 application. I use HSQLDB for testing with in-memory DB and MySQL 8.0.20 for runtime. When the vertx verticle is deployed, it initializes the db and tables. Since this is a common code and there are differing SQL syntax…
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
1 answer

case when with hsqldb ? how?

i am using libreoffice base (new version) with HSQLDB and want to do a query where in a certain column when that column or cell data is not empty i want the resulting cell output to be "X", otherwise it should stay empty. how can i do that with…
0
votes
0 answers

HikariCP failing for HSQL file based DB

I am running HSQLDB on server mode. here is the code snippet. Server server = new Server(); server.setDatabaseName(0, "testdb"); server.setDatabasePath(0, "file:testdb;MVCC=TRUE;user=" + userName + ";password=" + password); server.start(); When I…
Ravat Tailor
  • 1,193
  • 3
  • 20
  • 44
0
votes
2 answers

Encrypted (base64) password not storing in database hsql

I'm trying to simply store an base64 encripted password in database from an input in Java Web App. I'm using hsqldb for this and my password column type is varbinary(255). But when I try to store it in database I just get the error below. I even…
Nayana
  • 127
  • 1
  • 13
0
votes
0 answers

JavaFX: java.lang.module.ResolutionException: Modules sqltool and hsqldb export package org.hsqldb.lib to module javafx.graphicsEmpty

I am learning JavaFX and I m trying to use external libraries (HSQLDB and the corresponding Datamanager GUI Tool) which I imported with Maven. My goal is to open an instance of the Datamanager GUI Tool which is a Swing application. public class…
Marko
  • 47
  • 5
0
votes
1 answer

Apereo CAS 6.x: embeded HSQLDB not initialized

I want to use an embedded HSQLDB in CAS 6.2-RC5 and I want Spring to initialize it at startup. First, I added the following depedencies to the cas-overlay-template: implementation…
user2108278
  • 391
  • 5
  • 17
0
votes
0 answers

How to invoke HSQLDB DatabaseManager Swing app in JavaFX Swingnode?

I am trying to embed the HSQLDatabaseManager Swing App in my own JavaFX project. public class SQLTool extends Application { @Override public void start (Stage stage) { final SwingNode swingNode = new SwingNode(); …
Marko
  • 47
  • 5
0
votes
1 answer

Connect to HSQLDB 2.5 via Windows ODBC PostgreSQL driver

I am having a problem configuring the Windows PostgreSQL ODBC driver to connect to HSQLDB 2.5.0. As per the HSQLDB documentation I have installed version 11.01 of the PostgreSQL ODBC driver. When I test the connection from the ODBC Data Source…
PeterVC
  • 4,574
  • 2
  • 16
  • 14
0
votes
2 answers

HSQL 2.3.6 outer join syntax

I use HSQL 2.3.6 and I want to make a join with the following syntax : SELECT A.REF FROM TableA A, TableB B WHERE A.NUM = B.NUM (+) But in the documentation (most recent of my version of HSQL)…
C. Thubert
  • 57
  • 1
  • 6
0
votes
2 answers

SimpleJdbcInsert fail to insert because of null autogenerated id (HSQLDB)

Good morning everyone I am unit testing the persistence tier of a project with JUnit using HSQLDB. The project is using Spring with Hibernate + JPA. I'm using Spring's SimpleJdbcInsert to insert some data in the database for testing. However…
0
votes
1 answer

Automatic token expire after 5 minutes Java

I'm trying to create a more secure way to reset a forgotten password with Java web and HSQLDB without any framework. I created a form where the user can insert his email and if the email is in database, it will automatically send an email with a…
Nayana
  • 127
  • 1
  • 13
0
votes
1 answer

Deploying javafx hsqldb project with maven

I did a lot of research and still couldnt manage to deploy it, to a single .jar file I mean. Is it easy to do with maven? I don't know how to add hsqldb to maven and how to get jar from maven (I could only set jfx:run as goal) my maven POM for now…
0
votes
1 answer

Left Join with same table and group by is returning duplicated tuples with reverse order

I'm trying to query a database(not owned by me) that contains the following columns : NumEpoca (epoch), Turma(class), Dia (day - indicates day of the week), Hora (hour - each value indicates a 30mins time, a 3h class generate 6 tuples), Disciplina…
Rui
  • 13
  • 3
0
votes
0 answers

How to display an error message based on exception thrown in server side onto the client side

**create user admin identified by :pass123** public final Create_user_stmtContext create_user_stmt() throws RecognitionException { Create_user_stmtContext _localctx = new Create_user_stmtContext(_ctx, getState()); …
John
  • 435
  • 1
  • 5
  • 11
0
votes
1 answer

Supply password to HSQLDB SqlTool in a script

I am running an HSQLDB instance in server mode as a systemd service. To shut it down, I issue the following command: java -cp $CLASSPATH:/usr/share/java/hsqldbutil.jar:/usr/share/java/hsqldb.jar "org.hsqldb.cmdline.SqlTool"…
user149408
  • 5,385
  • 4
  • 33
  • 69