HSQLDB

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found.

HSQLDB (HyperSQL DataBase)
Hsql.png
HSQL Database Manager
Initial release 2001; 23 years ago (2001)
Stable release 2.3.3 / 30 June 2015; 8 years ago (2015-06-30)
Development status Active
Written in Java
Operating system Cross-platform
Size 7.8MB (2.3.3 ZIP file)[1]
Type RDBMS
License BSD
Website {{#property:P856}}

HSQLDB (Hyper SQL Database) is a relational database management system written in Java. It has a JDBC driver and supports a large subset of SQL-92 and SQL:2008 standards.[2] It offers a fast,[3] small (around 1300 kilobytes in version 2.2) database engine which offers both in-memory and disk-based tables. Both embedded and server modes are available for purchase.

Additionally, it includes tools such as a minimal Web server, command line and GUI management tools (can be run as applets), and a number of demonstration examples. It can run on Java runtimes from version 1.1 upwards, including free Java implementations such as Kaffe.

HSQLDB is available under a BSD license. It is used as a database and persistence engine in many open source software projects, such as OpenOffice Base, LibreOffice Base, the Standalone Roller Demo,[4] and the Jitsi VoIP and video-conference client since version 2.6.[5] It is also used in commercial products, such as Mathematica and InstallAnywhere (starting with version 8.0).[6]

Transaction support

HSQLDB version 2.0 has three transaction control modes. It supports read committed and serializable isolation levels[clarify] with table level locks or with multiversion concurrency control (MVCC), or a combination of locks and MVCC. version 1.8.1 supports transaction isolation level 0 (read uncommitted) only.[7]

Data storage

HSQLDB has two main table types used for durable read-write data storage, i.e., if a transaction has been successfully committed, it is guaranteed that the data will survive system failure and will keep their integrity.

The default MEMORY type stores all data changes to the disk in the form of a SQL script. During engine start-up, these commands are executed and data are reconstructed into the memory. While this behavior is not suitable for very large tables, it provides highly regarded performance benefits and is easy to debug.

Another table type is CACHED, which allows one to store gigabytes of data, at the cost of the slower performance. HSQLDB engine loads them only partially and synchronizes the data to the disk on transaction commits. However, the engine always loads all rows affected during an update into the memory. This renders very large updates impossible without splitting the work into smaller parts.[8]

Other table types allow for read-write CSV-file access (these tables can participate, for example, in queries with JOINs and simplify spreadsheet processing) and read-write non-durable in-memory data storage.

SQL features

HSQLDB 2.0 supports all the core features and 148[citation needed] optional features of SQL:2008. Advanced features include user-defined SQL procedures and functions, schemas[clarify], datetime intervals[clarify], updatable views[clarify], arrays[clarify], lobs[clarify], full and lateral joins[clarify] and set operations. Many non-standard functions such as TO_CHAR[clarify] and DECODE[clarify] are also supported. Extensions to Standard SQL include user-defined aggregate functions.

At the time of this release, HyperSQL supports the widest range of SQL standard features among all open source RDBMS.
— HSQLDB manual, Chapter 2[9]

Releases

Several versions of HSQLDB have been released since 2001. Early versions were based on the discontinued HypersonicSQL database engine. Version 2.0, released in 2010, is mostly new code, written to conform to Standard SQL and JDBC 4 Specification.[10]

Version 2.3.2 is fully multithreaded and supports high performance 2PL and MVCC (multiversion concurrency control) transaction control models. See the list of new features in version 2.3.2.

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. HSQLDB Chapter 2: SQL Language
  10. Lua error in package.lua at line 80: module 'strict' not found.

External links