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
0 answers

Updating dynamically JTable(s)

I'm working on a Java database application, where the user has one side to insert data and another to show in a JTable (in a JScrollPane) the content of the linked HSQLDB database. Everthing works so far so good, but I searched for a very long time…
Arainty
  • 91
  • 9
0
votes
1 answer

HSQLDB reset password for encrypted database

Is it possible to reset a password for an encrypted & embedded hsqldb database? I can open it, establish the connection, but I want to remove the password, tried this db.update("SET password \"\""); db.update("ALTER USER SA SET…
0
votes
1 answer

hsqldb table data not loading in in-process mode

I am using hibernate and HSQLDB. HSQLDB works in in-process mode. The database query: session.createQuery("from Doctor").list(); returns an empty list. But, in reality, the database tables are not empty and all database files are in project…
Gdd gffg
  • 13
  • 3
0
votes
1 answer

Cant get data from sql array with JDBC and HSQLDB

This code: Array a=rs.getArray("curAccs"); ResultSet rs1=a.getResultSet(); int rs1size=rs1.getFetchSize(); return empty rs1, but a is ARRAY[221,222] I also cant convert sql array to…
JackHuman
  • 27
  • 5
0
votes
1 answer

Enforcing non-ambiguous references to column names in HSQLDB

I have an HQL query which fails on PostgreSQL as the order by clause includes an ambiguous column reference. I understand the cause of the problem and how to fix it, however, unit tests testing the same query & order by clause are passing with no…
Rob D
  • 68
  • 5
0
votes
0 answers

Create Sequence starting with maximum row count value of a table for HSQL

I am trying to create a sequence with maximum row count value of some table. So far I could only do this create sequence "mysequence" start with 1; Instead of starting with one, I need to start with max row count value of a table. How to accomplish…
venkat
  • 442
  • 5
  • 17
0
votes
1 answer

HSQL unexpected token in statement

I have created in LibreOffice Base a simple database with few tables. I want to run the following query: SELECT SUM( "Total price" ) AS "Expenses" FROM "Expenses" WHERE "the Name of the Ware" IS 'food' AND "Date" BETWEEN {d '2019-08-06' } AND {d…
Pal Csanyi
  • 101
  • 1
  • 9
0
votes
1 answer

LOGSTASH - Issue with JDBC input connected to HSQL DB database when selecting ARRAY columns

I'm having troubles to successfully import HSQL DB database content using Logstash's JDBC input plugin. The problem occurs when I try to fetch a column that is of type ARRAY. Please note that if I try to fetch non-array columns, it works just…
LudoZik
  • 917
  • 1
  • 8
  • 20
0
votes
1 answer

Error in Java application (using Eclipse): "java.lang.ClassNotFoundException: org.hsqldb.jdbc.JDBCDriver"

I'm using Eclipse to write a Java program that is trying to connect to HSQLDB. When I try to run the program I get this error: java.lang.ClassNotFoundException: org.hsqldb.jdbc.JDBCDriver How do I fix it?
Callum
  • 435
  • 1
  • 4
  • 14
0
votes
1 answer

HsqlException: General Error when calling a stored procedure

I'm trying to write an integration test for a DAO that calls a stored procedure. I've created an embedded HSQL database from a test file that simply creates a table, populates it, and a simple stored procedure that returns the results of the…
kjl
  • 912
  • 2
  • 9
  • 15
0
votes
2 answers

Syntax of while loop in HSQL query

First of all, I'm a newbie in programming, so sorry if I'm making syntax mistakes or asking silly questions. I want to loop a query (the query itself is working) in HSQL and I tried it with a WHILE statement, with an IF statement,... but non of them…
linsey
  • 1
0
votes
1 answer

how to use hsqldb and SET DATABASE SQL REGULAR NAMES

I have the usual need to mock a production database with an in memory one. Production is mysql and I'm trying to use hsqldb to mock it, using Spring Boot to handle the substitution. All that works nicely, including finding my flyway scripts and…
RogerParkinson
  • 499
  • 6
  • 18
0
votes
1 answer

How to create sequence with maximum row value of a column in HSQL DB?

I need to create a sequence that starts from the maximum row value of column in HSQL. Is there any procedure we can right? CREATE SEQUENCE seq START WITH 1 INCREMENT BY 1 => Works fine instead if I give like this CREATE SEQUENCE seq START WITH…
venkat
  • 442
  • 5
  • 17
0
votes
1 answer

HSQLDB on S3 Compatible Service

We use HSQLDB as a filesystem based database as our application requirements for a RDBMS is minimal. We would now like to move this application to Pivotal Cloud Foundry. S3 compatible storage (on cloud) is the only service compatible "filesystem" on…
Midhun Agnihotram
  • 165
  • 1
  • 3
  • 15
0
votes
1 answer

HSQLDB: How to create a table with size larger than heap space?

I want to create a simple table (id INT PRIMARY KEY, value INT) and insert 16M rows. If I use MySQL, that may take 128M+ data (MyISAM fixed format). Now I'm using HSQLDB and only give 128M heap space (i.e. run with -Xmx128m). I use the file mode…
auntyellow
  • 2,423
  • 2
  • 20
  • 47
1 2 3
99
100