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
1 answer

ORDER BY with UNION clause

Everywhere I search I find that having something like the code below is supposed to work. SELECT id, name, age FROM A UNION SELECT id, name, age FROM B ORDER BY name My query is searching every value on the data base between specific dates, and…
0
votes
3 answers

Start HSQLDB database manager on application startup?

Is it possible to start the HSQLDB Database manager automatically somehow when I´m working in my local dev environment? I´m using the in-memory DB at the moment. I found some code to start the database manager when running test cases. Can this be…
Daniel
  • 2,050
  • 7
  • 31
  • 55
0
votes
1 answer

HSQL server mode while connection from DatabaseSwingManager throws exception java.sql.SQLTransientConnectionException

I have written a java code of connecting to server mode p.setProperty("server.database.3", "file:G:/SERVERMODE/soamware;user=soamware;password=123@123"); p.setProperty("server.dbname.3",…
Maha Saad
  • 115
  • 10
0
votes
0 answers

How do I determine the default HSQL database connection information in Talend Studio?

I am new to Talend Studio. I am doing data profiling using Talend Studio enterprise version 7.3. Generating PDF reports has gone smoothly. Our group would like to produce some output that is different than what is automatically provided, so we…
kc2001
  • 5,008
  • 4
  • 51
  • 92
0
votes
1 answer

HSQLDB server connection using username and password in server startup command in cmd is not working

i am starting hsqldb server with db_name as MDB and credentials as user=test and password=test using command prompt as: java -cp hsqldb.jar org.hsqldb.server.Server --database.0 file:/E:/DB/mdb --dbname.0 mdb user=test password=test it…
0
votes
1 answer

HSQLDB column and table names in lowercases

I have a spring boot app which generates a schema with flyway in an hsqldb. The problem is that all table and column names are converted to upper case (TBL_ROLE, ID, NAME). The aim is to have the names in the db exactly like in my script…
max
  • 330
  • 3
  • 13
0
votes
2 answers

Select row by array contains check

I have a table like CREATE TABLE table( name VARCHAR(100) NOT NULL, array INTEGER ARRAY NOT NULL ); For example if I have the rows name: test, array: [1, 2, 3] name: test2, array: [663, 332, 334] How can I select the row which contains 332…
Nand
  • 568
  • 3
  • 18
0
votes
1 answer

HSLQDB + JPA2 (with Hibernate) - The app gets stuck when trying a TRUNCATE SCHEMA

My app implements Deltaspike v1.6 and uses Hibernate v4.3.8. It also uses C3P0 v0.9.5.4 My regression tests use TestNG v7 and HSQLDB v2.4 Situation: I'm coding some regression tests using TestNG for tests themselves, and HSQLDB as an on-mem db…
McCoy
  • 780
  • 1
  • 10
  • 21
0
votes
0 answers

How to create procedure hsqldb liquibase with spring unit test

I have a procedure, namely check_customer_valid. In production, I've already added it into dbchangelog file as below:
0
votes
1 answer

How to define Out CURSOR in HSQLDB and access it via Java/Junit

I have a java web project that talks to an Oracle db through stored procedures. Stored proc accepts two input and 1 OUT parameter of type SYS_REFCURSOR. Then the Java code iterates over the record set to read the values. I'm trying to Unit test the…
Thiagarajan Ramanathan
  • 1,035
  • 5
  • 24
  • 32
0
votes
1 answer

Making queries in HSQLDB during transaction

I'm running a test using HSQLDB and I want to be able making select queries on database while this test to see what is changing. I suppose transaction or something else is blocking the database while test and I'm not able to make queries ... Is it…
Maad Maad
  • 63
  • 1
  • 7
0
votes
1 answer

HSQLDB persistence in a Spring project

I checked a lot of answers but I didn't understand most of them, so please bear in mind that I'm very new to programming and Java. So, I was following this tutorial:…
0
votes
1 answer

HSQLDB Properties in Java

can someone tell me why the parameters that i'm inserting in the url connecting to the bank are not changing? for example: the hsqldb.full_log_replay = true property in the database remains false, I have already tried to recreate the bank and still…
0
votes
1 answer

Why am I getting file doesn't exist?

I am trying to run an app with acquiadevdesktop with this code: Process p1 = Runtime.getRuntime().exec("C:\\Program Files (x86)\\DevDesktop\\AcquiaDevDesktop\\AcquiaDevDesktop2.exe"); pb.start(); Desktop.getDesktop().open(new…
zee ilyas
  • 11
  • 1
  • 4
0
votes
1 answer

Exception in setArray() in HSQL

I am using HSQL as an EmbeddedDatabaseType in my unit tests. I have created a table using this query: CREATE TABLE Table1 (array1 VARCHAR(256) ARRAY, obj1 VARCHAR(256) ); This is the upsert query: MERGE INTO Table1 USING (VALUES ?, ?) vals(array1,…
Henil Shah
  • 137
  • 4
  • 14