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
13
votes
8 answers

Internal HSQL database complains about privileges

I'm setting up a standalone Java service with an in-process, in-memory HSQL database. Persistence.xml
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
13
votes
3 answers

maven repository location for hsqldb 2.0

http://hsqldb.org/ - where is the maven repository for the latest version 2.0.0 bits
Joe
  • 14,513
  • 28
  • 82
  • 144
13
votes
3 answers

Default Value ON UPDATE Liquibase

I am using Liquibase for generating a MySQL and a HSQLDB databases. In several tables I have a column called 'last_modified' which is the TIMESTAMP of the last update on that particular record.
cloudy_weather
  • 2,837
  • 12
  • 38
  • 63
13
votes
2 answers

How do I create a specific date in HSQLDB?

I need to create a HIGH date in HSQLDB and the solution is eluding me. I need something like Date(9999-12-31 0:0:0) but I cannot find a function or whatever to do it. I am loding the date via Spring on startup and i need something like: insert…
markthegrea
  • 3,731
  • 7
  • 55
  • 78
13
votes
3 answers

Function not supported from hibernate

I'm unit testing my DAOs using spring. I am using JPA + Hibernate. For my tests i'm using the following hsqldb version: hsqldb hsqldb 1.8.0.10
Lefteris Laskaridis
  • 2,292
  • 2
  • 24
  • 38
12
votes
3 answers

HSQLDB - which is the main database file

I am using HSQLDB in the embedded mode. jdbc:hsqldb:file:abc\\TESTDB; After creating the database, the folder abc has the following files: TESTDB.lck TESTDB.script TESTDB.log TESTDB.properties My application is working properly But my question is…
Vivek
  • 11,938
  • 19
  • 92
  • 127
12
votes
1 answer

Unexpected token UNIQUE, requires COLLATION in statement [SET DATABASE UNIQUE])

Whenever I connect to HSQLDB from my application deployed on JBoss 5.1, it throws exception as : Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: error in script file…
Satya
  • 2,094
  • 6
  • 37
  • 60
12
votes
5 answers

TDD with HSQLDB -- removing foreign keys

I'm using HSQLDB for data layer integration testing, which is great. However, I'm finding that my foreign key constraints are getting in the way of my tests. For example, to test a simple select on one table, I have to insert dummy data into five…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
12
votes
2 answers

Create schema before hbm2ddl

I want to test my program with an inmemory hsqldb. To create the table I use hibernate.hbm2ddl.auto=create But I get an exception because the schemas, defined in the entity classes by annotations, are not created before the tables are created. Now I…
johzi
  • 137
  • 6
12
votes
1 answer

Create table syntax not working in hsql

I am new to hsqldb. I am developing simple application to get the some input from user. So Searched for embedded database and found hsqldb is the solution for my requirement. I have some create table syntax but it throws exception. (This Query…
Dhinakar
  • 4,061
  • 6
  • 36
  • 68
11
votes
6 answers

How to connect to HSQL which Spring creates when jdbc:embedded-database is used?

I have a HSQL database which Spring automatically creates for me: And now I want to connect to this database. My…
Slava Semushin
  • 14,904
  • 7
  • 53
  • 69
11
votes
4 answers

HSQLDB Manager?

I have tried SQLite in Java, but the speed is slow due to the JDBC driver. Then I tried HSQLDB and thought the speed is good, but I cannot find a good management tool for HSQLDB such as phpMyAdmin for MySQL or SQLite Manager for SQLite. I'd like to…
fcamel
11
votes
5 answers

how to connect to a file based HSQLDB database with sqltool?

I have tried to follow the instructions in chapter 1 of the HSQLDB doc and started my server like: java -cp hsqldb-2.2.5/hsqldb/lib/hsqldb.jar org.hsqldb.Server -database.0 file:#pathtodb# -dbname.0 xdb and I have reason to believe that worked…
jonalv
  • 5,706
  • 9
  • 45
  • 64
11
votes
1 answer

HSQLDB ROWNUM compatibility with Oracle

THe HSQLDB changelog states that ROWNUM() was added in v2.2.0 which I am using without any problems when running integration tests against the in-memory HSQLDB. However I want to run the same tests against a real Oracle 10g database, but the query…
andyb
  • 43,435
  • 12
  • 121
  • 150
11
votes
6 answers

Execute Trigger on View?

I am not too familiar with database triggers and/or views. I am currently using PostgreSQL and HSQL; although the database is not too important. I am just wondering if any database offers something like this: I have an (example) table like…
mainstringargs
  • 13,563
  • 35
  • 109
  • 174