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

Best way to create schema in embedded HSQL database

I'm currently using the following setup to create a schema in an embedded database before running my tests against it In my application context
t0mmyw
  • 737
  • 3
  • 10
  • 22
8
votes
2 answers

Storing long strings (CLOB) in Hsqldb databases?

So here's some code: statement.executeUpdate("CREATE TABLE SomeTable(id INTEGER IDENTITY, " + "text CLOB)"); which throws an exception "Wrong data type: CLOB in statement [...]". Is there a way to store CLOBs in Hsqldb databases? The…
Marcin
  • 7,874
  • 7
  • 45
  • 49
8
votes
1 answer

Clojure jdbc create-table statement does not run unless using Leiningen REPL

I've got a small Clojure program that uses the Clojure JDBC tools to create a table in an HSQL database. However, it only seems to actually create the table if I run it from Leiningen's REPL. It does not create the table if I run the code using lein…
Jonathan
  • 7,536
  • 4
  • 30
  • 44
7
votes
4 answers

Is there a way to silence hsqldb logging?

I have an embedded Hsqldb set up in my project. But it dumps a lot of info on the output when working, and I currently do not need that info: Mar 29, 2012 10:18:11 PM org.hsqldb.persist.Logger logInfoEvent INFO: Checkpoint start Mar 29, 2012…
Rogach
  • 26,050
  • 21
  • 93
  • 172
7
votes
2 answers

logging SQL expressions from within HSQLDB

I use HSQLDB in my application. Now i need to log every single sql statement which was executed. I do not want to handle SQL-logging myself. Is there a standart way of doing this from within HSQLDB?
Aleksandr Kravets
  • 5,750
  • 7
  • 53
  • 72
7
votes
4 answers

HSQLDB server mode username/password

If I start the HSQLDB in server mode using my Java code, the server starts without any problem. However, when I try to connect to the same either through the Java code or through the HSQLDB DatabaseManagerSwing; I am unable to connect. I started the…
ParagJ
  • 1,566
  • 10
  • 38
  • 56
7
votes
3 answers

Using HSQL for .NET development and related questions of process

My team uses a shared instance of Oracle for development using C#, NHibernate and ASP.NET, and we occasionally step on each others toes when making data or schema changes holding up everyone. On another project I'm using Java and HSQL in 100%…
Simon Gibbs
  • 4,737
  • 6
  • 50
  • 80
7
votes
2 answers

Turn off upper-case for table and column names in HSQL?

How to turn off forced upper-case mode for table and column names in HSQL? hsqldb 2.3.1 OS: Windows 7 x64
Arthur
  • 1,156
  • 3
  • 20
  • 49
7
votes
1 answer

Unit Test raises : HsqlException user lacks privilege or object not found: ROWNUM

I've got an issue with Hibernate when executing my unit tests, here is the issue I get : org.springframework.dao.InvalidDataAccessResourceUsageException: user lacks privilege or object not found: ROWNUM; SQL [n/a]; nested exception is…
Valentin Montmirail
  • 2,594
  • 1
  • 25
  • 53
7
votes
4 answers

Using HSQLDB in production environments

I want to use HSQLDB in a production environment for stroring some data in memory and for data export using files. Does anybody have experience with using hsqldb in production environments? Is hsqldb treating server resources gracefully and does it…
paweloque
  • 18,466
  • 26
  • 80
  • 136
7
votes
1 answer

ConstraintViolationException: NOT NULL when using Spring, HSQL and Hibernate

I get a NOT NULL constraint violation exception when trying to insert an object of type Individual in the DB. I use hsql version 2.3.2. I let hibernate generate the DB tables for me. In the normal code (where I use an SQLServer Database) everything…
Mathias G.
  • 4,875
  • 3
  • 39
  • 60
7
votes
1 answer

HSQLDB and Hibernate: Unit Test raises org.hsqldb.HsqlException: user lacks privilege or object not found

I'm trying to get going with Hibernate and HSQLDB. I tried to adapt a tutorial to more current versions, so there might be the problem. This happens when I run a unit test with JUnit. I am using HSQLDB 2.3.2 with Hibernate (JPA) 4.3.5. The error i…
Fluffy
  • 299
  • 1
  • 4
  • 21
7
votes
4 answers

Running a script to create tables with HSQLDB

I use hsqldb to run my unit tests that need a database access. For the moment, when I want to create a table for a specific test, I have the following code: private void createTable() { PreparedStatement ps; try { ps =…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
7
votes
1 answer

HSQLDB - user lacks privilege or object not found: SQLState(42501) vendor code(-5501)

I have migrated from hsqldb_1.8.10 to hsqldb_2.3.2 version but suddenly hsqldb stops working. I tried a lot to solve the issue but could not find the root cause of the issue. I have googled it and got numerous links but nothing could solve my…
dbyuvaraj
  • 487
  • 1
  • 6
  • 20
7
votes
1 answer

How to use Oracle SQLdeveloper with HSQL / Hypersonic DB's JDBC driver

I'd like to use Oracle's SQLdeveloper to visualize my HSQLDB tables. An instruction on how to use it with MySQL can be found on https://web.archive.org/web/1/http://blogs.techrepublic%2ecom%2ecom/programming-and-development/?p=564 ... and I know…
Greg
  • 391
  • 1
  • 4
  • 4