H2 Database Engine
{{Short description|Database management system}}
{{Infobox software
| name = H2 Database Engine
| logo = H2-logo.png
| caption = H2 Database Engine
| screenshot =
| collapsible =
| developer =
| released = {{Start date and age|2005|12}}
| latest release version = 2.3.232
| latest release date = {{start date and age|2024|11|08}}
| latest preview version =
| latest preview date =
| programming language = Java
| operating system = Cross-platform
| genre = Relational Database Management System
| license = Eclipse Public License or Mozilla Public License 2.0
| website = {{URL|https://h2database.com}}
}}
H2 is a relational database management system written in Java. It can used as an embedded database in Java applications or run in client–server mode.{{cite web | title=Presentation and use of H2 Database Engine | date=6 August 2010| url=http://www.baptiste-wicht.com/2010/08/presentation-usage-h2-database-engine/}}
The software is available as open source software Mozilla Public License 2.0 or the original Eclipse Public License.{{Citation needed|date=July 2023}}
History
The development of the H2 database engine started in May 2004, and first published in December 2005. The database engine was written by Thomas Mueller. He also developed the Java database engine Hypersonic SQL.[http://hsql.sourceforge.net/index.html Hypersonic SQL project page] at SourceForge In 2001, the Hypersonic SQL project was stopped, and the HSQLDB Group was formed to continue work on the Hypersonic SQL code. The name H2 stands for Hypersonic 2, however H2 does not share code with Hypersonic SQL or HSQLDB. H2 is built from scratch.{{cite web | title=Write Your Own Database, Again | work=thecodist.com | url=http://thecodist.com/article/write-your-own-database-again-an-interview-with-the-author-of-h2 | access-date=2011-04-27 | archive-date=2019-03-07 | archive-url=https://web.archive.org/web/20190307114410/http://thecodist.com/article/write-your-own-database-again-an-interview-with-the-author-of-h2 | url-status=dead }}
Version 2.0.x was released in January 2022.
Features
A subset of the SQL (Structured Query Language) standard is supported. The main programming APIs are SQL and JDBC, however the database also supports using the PostgreSQL ODBC driver by acting like a PostgreSQL server.{{cite web | title=H2 Database supports PostgreSQL ODBC driver | url=http://www.theserverside.com/news/thread.tss?thread_id=46456 | access-date=2010-08-24 | archive-date=2016-12-09 | archive-url=https://web.archive.org/web/20161209194300/http://www.theserverside.com/news/thread.tss?thread_id=46456 | url-status=dead }}
It is possible to create both in-memory tables, as well as disk-based tables. Tables can be persistent or temporary. Index types are hash table and tree for in-memory tables, and b-tree for disk-based tables. All data manipulation operations are transactional. Table level locking and multiversion concurrency control are implemented. The two-phase commit protocol is supported as well, but no standard API for distributed transactions is implemented.{{Citation needed|date=July 2023}}
The security features of the database are: role based access rights, encryption of the password using SHA-256 and data using the AES or the Tiny Encryption Algorithm, XTEA. The cryptographic features are available as functions inside the database as well. SSL / TLS connections are supported in the client–server mode, as well as when using the console application.{{Citation needed|date=July 2023}}
The database supports protection against SQL injection by enforcing the use of parameterized statements. In H2, this feature is called 'disabling literals'.{{cite web | title=SQL Injections: How Not To Get Stuck | url=http://thecodist.com/article/sql-injections-how-not-to-get}}
Two full text search implementations are included, a native implementation and one using Lucene.{{Citation needed|date=July 2023}}
A simple form of high availability is implemented: when used in the client–server mode, the database engine supports hot failover (this is commonly known as clustering). However, the clustering mode must be enabled manually after a failure.{{cite web | title=H2 Clustering | url=http://geowebcache.org/trac/wiki/external_h2db#H2clustering | archive-url=https://web.archive.org/web/20100924024733/http://geowebcache.org/trac/wiki/external_h2db#H2clustering | url-status=usurped | archive-date=2010-09-24 }}
Since version 1.1.111, H2 in-memory database can run inside the Google App Engine.{{cite web | title=H2 Database on GAE | publisher=gaevfs | url=http://code.google.com/p/gaevfs/wiki/H2GAE}}
See also
{{Portal|Free and open-source software}}
References
{{Reflist}}
External links
- {{Official website|www.h2database.com}}
Category:Cross-platform free software
Category:Free computer libraries
Category:Free database management systems
Category:Java (programming language) libraries
Category:Relational database management software for Linux
Category:Relational database management systems