You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by am...@apache.org on 2019/05/07 15:21:38 UTC

[ignite] 30/41: GG-14890: Integrate H2 codebase to GG as separate module.

This is an automated email from the ASF dual-hosted git repository.

amashenkov pushed a commit to branch gg-18540
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 41536c7c6c4eec8b91c06667ab57118668fe14a8
Author: Andrey V. Mashenkov <an...@gmail.com>
AuthorDate: Mon Apr 29 19:03:34 2019 +0300

    GG-14890: Integrate H2 codebase to GG as separate module.
---
 modules/clients/pom.xml                            |     6 +-
 .../jdbc2/JdbcDynamicIndexAbstractSelfTest.java    |    16 +-
 .../thin/JdbcThinDynamicIndexAbstractSelfTest.java |    16 +-
 modules/core/pom.xml                               |     6 +-
 .../processors/cache/H2CacheStoreStrategy.java     |     2 +-
 .../query/h2/opt/GridH2SpatialIndex.java           |    40 +-
 modules/h2/README.txt                              |    32 +
 modules/h2/licenses/EPL-1.0.txt                    |    86 +
 modules/h2/licenses/MPL-2.0.txt                    |   151 +
 modules/h2/licenses/gg-community.txt               |    13 +
 modules/h2/pom.xml                                 |   232 +
 modules/h2/src/docsrc/help/help.csv                |  5739 +++++++++
 modules/h2/src/docsrc/html/advanced.html           |  1968 +++
 modules/h2/src/docsrc/html/architecture.html       |   154 +
 modules/h2/src/docsrc/html/build.html              |   325 +
 modules/h2/src/docsrc/html/changelog.html          |  1487 +++
 modules/h2/src/docsrc/html/cheatSheet.html         |   216 +
 modules/h2/src/docsrc/html/commands.html           |   179 +
 modules/h2/src/docsrc/html/datatypes.html          |    99 +
 modules/h2/src/docsrc/html/download.html           |    76 +
 modules/h2/src/docsrc/html/faq.html                |   288 +
 modules/h2/src/docsrc/html/features.html           |  1719 +++
 modules/h2/src/docsrc/html/fragments.html          |   130 +
 modules/h2/src/docsrc/html/frame.html              |    40 +
 modules/h2/src/docsrc/html/functions.html          |   324 +
 modules/h2/src/docsrc/html/grammar.html            |   178 +
 modules/h2/src/docsrc/html/history.html            |   182 +
 .../html/images/connection-mode-embedded-2.png     |   Bin 0 -> 48466 bytes
 .../html/images/connection-mode-embedded.png       |   Bin 0 -> 20407 bytes
 .../docsrc/html/images/connection-mode-mixed-2.png |   Bin 0 -> 70685 bytes
 .../docsrc/html/images/connection-mode-mixed.png   |   Bin 0 -> 31588 bytes
 .../html/images/connection-mode-remote-2.png       |   Bin 0 -> 58248 bytes
 .../docsrc/html/images/connection-mode-remote.png  |   Bin 0 -> 25020 bytes
 modules/h2/src/docsrc/html/images/console-2.png    |   Bin 0 -> 68604 bytes
 modules/h2/src/docsrc/html/images/console.png      |   Bin 0 -> 29569 bytes
 modules/h2/src/docsrc/html/images/db-16.png        |   Bin 0 -> 547 bytes
 modules/h2/src/docsrc/html/images/db-64-t.png      |   Bin 0 -> 11867 bytes
 modules/h2/src/docsrc/html/images/download-2.png   |   Bin 0 -> 2673 bytes
 modules/h2/src/docsrc/html/images/download.png     |   Bin 0 -> 745 bytes
 modules/h2/src/docsrc/html/images/h2-logo-2.png    |   Bin 0 -> 4810 bytes
 modules/h2/src/docsrc/html/images/h2-logo.png      |   Bin 0 -> 3361 bytes
 .../h2/src/docsrc/html/images/h2-logo_square.png   |   Bin 0 -> 2330 bytes
 .../h2/src/docsrc/html/images/icon_disconnect.gif  |   Bin 0 -> 114 bytes
 modules/h2/src/docsrc/html/images/language_de.png  |   Bin 0 -> 240 bytes
 modules/h2/src/docsrc/html/images/language_en.gif  |   Bin 0 -> 268 bytes
 modules/h2/src/docsrc/html/images/language_ja.gif  |   Bin 0 -> 685 bytes
 modules/h2/src/docsrc/html/images/mail-support.png |   Bin 0 -> 756 bytes
 .../h2/src/docsrc/html/images/paypal-donate.png    |   Bin 0 -> 6172 bytes
 modules/h2/src/docsrc/html/images/performance.png  |   Bin 0 -> 2343 bytes
 modules/h2/src/docsrc/html/images/quickstart-1.png |   Bin 0 -> 13911 bytes
 modules/h2/src/docsrc/html/images/quickstart-2.png |   Bin 0 -> 3765 bytes
 modules/h2/src/docsrc/html/images/quickstart-3.png |   Bin 0 -> 11783 bytes
 modules/h2/src/docsrc/html/images/quickstart-4.png |   Bin 0 -> 30387 bytes
 modules/h2/src/docsrc/html/images/quickstart-5.png |   Bin 0 -> 36043 bytes
 modules/h2/src/docsrc/html/images/quickstart-6.png |   Bin 0 -> 31108 bytes
 modules/h2/src/docsrc/html/images/screenshot.png   |   Bin 0 -> 16894 bytes
 modules/h2/src/docsrc/html/installation.html       |   122 +
 modules/h2/src/docsrc/html/license.html            |   404 +
 modules/h2/src/docsrc/html/links.html              |   708 ++
 modules/h2/src/docsrc/html/main.html               |    46 +
 modules/h2/src/docsrc/html/mainWeb.html            |   195 +
 modules/h2/src/docsrc/html/mvstore.html            |   749 ++
 modules/h2/src/docsrc/html/navigation.js           |   195 +
 modules/h2/src/docsrc/html/performance.html        |   893 ++
 modules/h2/src/docsrc/html/quickstart.html         |   105 +
 modules/h2/src/docsrc/html/roadmap.html            |   532 +
 modules/h2/src/docsrc/html/search.js               |   273 +
 modules/h2/src/docsrc/html/source.html             |    52 +
 modules/h2/src/docsrc/html/sourceError.html        |   252 +
 modules/h2/src/docsrc/html/stylesheet.css          |   379 +
 modules/h2/src/docsrc/html/stylesheetPdf.css       |   154 +
 modules/h2/src/docsrc/html/systemtables.html       |    63 +
 modules/h2/src/docsrc/html/tutorial.html           |  1502 +++
 .../docsrc/images/connection-mode-embedded-2.png   |   Bin 0 -> 48466 bytes
 .../src/docsrc/images/connection-mode-mixed-2.png  |   Bin 0 -> 70685 bytes
 .../src/docsrc/images/connection-mode-remote-2.png |   Bin 0 -> 58248 bytes
 modules/h2/src/docsrc/images/connection-modes.svg  |  1118 ++
 modules/h2/src/docsrc/images/console-2.png         |   Bin 0 -> 68604 bytes
 modules/h2/src/docsrc/images/console.png           |   Bin 0 -> 29569 bytes
 modules/h2/src/docsrc/images/console.svg           |   515 +
 modules/h2/src/docsrc/images/db-16.png             |   Bin 0 -> 547 bytes
 modules/h2/src/docsrc/images/db-22.png             |   Bin 0 -> 1239 bytes
 modules/h2/src/docsrc/images/db-24.png             |   Bin 0 -> 574 bytes
 modules/h2/src/docsrc/images/db-32.png             |   Bin 0 -> 1399 bytes
 modules/h2/src/docsrc/images/db-64-t.png           |   Bin 0 -> 11867 bytes
 modules/h2/src/docsrc/images/db.svg                |   308 +
 modules/h2/src/docsrc/images/download-2.png        |   Bin 0 -> 2673 bytes
 modules/h2/src/docsrc/images/download.png          |   Bin 0 -> 745 bytes
 modules/h2/src/docsrc/images/download.svg          |   125 +
 modules/h2/src/docsrc/images/favicon.ico           |   Bin 0 -> 4286 bytes
 modules/h2/src/docsrc/images/h2-16.png             |   Bin 0 -> 675 bytes
 modules/h2/src/docsrc/images/h2-24.png             |   Bin 0 -> 995 bytes
 modules/h2/src/docsrc/images/h2-32.png             |   Bin 0 -> 1362 bytes
 modules/h2/src/docsrc/images/h2-64.png             |   Bin 0 -> 2718 bytes
 modules/h2/src/docsrc/images/h2-logo-2.png         |   Bin 0 -> 6617 bytes
 modules/h2/src/docsrc/images/h2-logo.png           |   Bin 0 -> 12780 bytes
 modules/h2/src/docsrc/images/h2-logo.svg           |    61 +
 modules/h2/src/docsrc/images/h2_v2_3_7.svg         |    61 +
 modules/h2/src/docsrc/images/paypal-donate.png     |   Bin 0 -> 6172 bytes
 modules/h2/src/docsrc/images/screenshot.png        |   Bin 0 -> 113875 bytes
 modules/h2/src/docsrc/index.html                   |    44 +
 modules/h2/src/docsrc/javadoc/animate.js           |    51 +
 modules/h2/src/docsrc/javadoc/classes.html         |    98 +
 modules/h2/src/docsrc/javadoc/index.html           |    24 +
 modules/h2/src/docsrc/javadoc/overview.html        |    38 +
 modules/h2/src/docsrc/javadoc/stylesheet.css       |   171 +
 modules/h2/src/docsrc/text/_docs_en.utf8.txt       | 12510 ++++++++++++++++++
 modules/h2/src/docsrc/text/_docs_ja.utf8.txt       | 12512 +++++++++++++++++++
 modules/h2/src/docsrc/textbase/_docs_en.properties |  4170 ++++++
 modules/h2/src/docsrc/textbase/_messages_en.prop   |   184 +
 modules/h2/src/docsrc/textbase/_text_en.prop       |   163 +
 .../main/java/META-INF/services/java.sql.Driver    |     1 +
 modules/h2/src/main/java/org/h2/Driver.java        |   207 +
 .../java/org/h2/JdbcDriverBackwardsCompat.java     |    16 +
 modules/h2/src/main/java/org/h2/api/Aggregate.java |    55 +
 .../main/java/org/h2/api/AggregateFunction.java    |    58 +
 .../main/java/org/h2/api/CredentialsValidator.java |    32 +
 .../java/org/h2/api/CustomDataTypesHandler.java    |   122 +
 .../java/org/h2/api/DatabaseEventListener.java     |   107 +
 modules/h2/src/main/java/org/h2/api/ErrorCode.java |  2140 ++++
 modules/h2/src/main/java/org/h2/api/Interval.java  |   635 +
 .../main/java/org/h2/api/IntervalQualifier.java    |   337 +
 .../main/java/org/h2/api/JavaObjectSerializer.java |    32 +
 .../h2/src/main/java/org/h2/api/TableEngine.java   |    27 +
 .../java/org/h2/api/TimestampWithTimeZone.java     |   152 +
 modules/h2/src/main/java/org/h2/api/Trigger.java   |    93 +
 .../main/java/org/h2/api/UserToRolesMapper.java    |    33 +
 modules/h2/src/main/java/org/h2/api/package.html   |    14 +
 modules/h2/src/main/java/org/h2/bnf/Bnf.java       |   369 +
 .../h2/src/main/java/org/h2/bnf/BnfVisitor.java    |    54 +
 modules/h2/src/main/java/org/h2/bnf/Rule.java      |    38 +
 .../h2/src/main/java/org/h2/bnf/RuleElement.java   |    80 +
 modules/h2/src/main/java/org/h2/bnf/RuleFixed.java |   211 +
 modules/h2/src/main/java/org/h2/bnf/RuleHead.java  |    38 +
 modules/h2/src/main/java/org/h2/bnf/RuleList.java  |    74 +
 .../h2/src/main/java/org/h2/bnf/RuleOptional.java  |    40 +
 .../h2/src/main/java/org/h2/bnf/RuleRepeat.java    |    47 +
 modules/h2/src/main/java/org/h2/bnf/Sentence.java  |   222 +
 .../src/main/java/org/h2/bnf/context/DbColumn.java |   114 +
 .../main/java/org/h2/bnf/context/DbContents.java   |   275 +
 .../java/org/h2/bnf/context/DbContextRule.java     |   349 +
 .../main/java/org/h2/bnf/context/DbProcedure.java  |    97 +
 .../src/main/java/org/h2/bnf/context/DbSchema.java |   162 +
 .../java/org/h2/bnf/context/DbTableOrView.java     |   113 +
 .../src/main/java/org/h2/bnf/context/package.html  |    14 +
 modules/h2/src/main/java/org/h2/bnf/package.html   |    14 +
 .../h2/src/main/java/org/h2/command/Command.java   |   403 +
 .../main/java/org/h2/command/CommandContainer.java |   188 +
 .../main/java/org/h2/command/CommandInterface.java |   552 +
 .../src/main/java/org/h2/command/CommandList.java  |    86 +
 .../main/java/org/h2/command/CommandRemote.java    |   331 +
 .../h2/src/main/java/org/h2/command/Parser.java    |  8134 ++++++++++++
 .../h2/src/main/java/org/h2/command/Prepared.java  |   476 +
 .../java/org/h2/command/ddl/AlterIndexRename.java  |    75 +
 .../java/org/h2/command/ddl/AlterSchemaRename.java |    66 +
 .../java/org/h2/command/ddl/AlterSequence.java     |    97 +
 .../h2/command/ddl/AlterTableAddConstraint.java    |   461 +
 .../org/h2/command/ddl/AlterTableAlterColumn.java  |   648 +
 .../h2/command/ddl/AlterTableDropConstraint.java   |    56 +
 .../java/org/h2/command/ddl/AlterTableRename.java  |    84 +
 .../org/h2/command/ddl/AlterTableRenameColumn.java |    97 +
 .../h2/command/ddl/AlterTableRenameConstraint.java |    59 +
 .../main/java/org/h2/command/ddl/AlterUser.java    |   105 +
 .../main/java/org/h2/command/ddl/AlterView.java    |    54 +
 .../src/main/java/org/h2/command/ddl/Analyze.java  |   151 +
 .../org/h2/command/ddl/CommandWithColumns.java     |   161 +
 .../java/org/h2/command/ddl/CreateAggregate.java   |    76 +
 .../java/org/h2/command/ddl/CreateConstant.java    |    69 +
 .../main/java/org/h2/command/ddl/CreateDomain.java |    84 +
 .../org/h2/command/ddl/CreateFunctionAlias.java    |   106 +
 .../main/java/org/h2/command/ddl/CreateIndex.java  |   141 +
 .../java/org/h2/command/ddl/CreateLinkedTable.java |   124 +
 .../main/java/org/h2/command/ddl/CreateRole.java   |    61 +
 .../main/java/org/h2/command/ddl/CreateSchema.java |    76 +
 .../java/org/h2/command/ddl/CreateSequence.java    |    72 +
 .../java/org/h2/command/ddl/CreateSynonym.java     |   114 +
 .../java/org/h2/command/ddl/CreateSynonymData.java |    44 +
 .../main/java/org/h2/command/ddl/CreateTable.java  |   252 +
 .../java/org/h2/command/ddl/CreateTableData.java   |    83 +
 .../java/org/h2/command/ddl/CreateTrigger.java     |   137 +
 .../main/java/org/h2/command/ddl/CreateUser.java   |   135 +
 .../main/java/org/h2/command/ddl/CreateView.java   |   154 +
 .../org/h2/command/ddl/DeallocateProcedure.java    |    38 +
 .../java/org/h2/command/ddl/DefineCommand.java     |    52 +
 .../java/org/h2/command/ddl/DropAggregate.java     |    57 +
 .../main/java/org/h2/command/ddl/DropConstant.java |    58 +
 .../main/java/org/h2/command/ddl/DropDatabase.java |   161 +
 .../main/java/org/h2/command/ddl/DropDomain.java   |    84 +
 .../java/org/h2/command/ddl/DropFunctionAlias.java |    58 +
 .../main/java/org/h2/command/ddl/DropIndex.java    |    84 +
 .../src/main/java/org/h2/command/ddl/DropRole.java |    61 +
 .../main/java/org/h2/command/ddl/DropSchema.java   |    84 +
 .../main/java/org/h2/command/ddl/DropSequence.java |    61 +
 .../main/java/org/h2/command/ddl/DropSynonym.java  |    57 +
 .../main/java/org/h2/command/ddl/DropTable.java    |   146 +
 .../main/java/org/h2/command/ddl/DropTrigger.java  |    61 +
 .../src/main/java/org/h2/command/ddl/DropUser.java |    74 +
 .../src/main/java/org/h2/command/ddl/DropView.java |   101 +
 .../main/java/org/h2/command/ddl/GrantRevoke.java  |   227 +
 .../java/org/h2/command/ddl/PrepareProcedure.java  |    62 +
 .../java/org/h2/command/ddl/SchemaCommand.java     |    38 +
 .../java/org/h2/command/ddl/SequenceOptions.java   |   172 +
 .../main/java/org/h2/command/ddl/SetComment.java   |   157 +
 .../java/org/h2/command/ddl/TruncateTable.java     |    68 +
 .../src/main/java/org/h2/command/ddl/package.html  |    14 +
 .../java/org/h2/command/dml/AllColumnsForPlan.java |    58 +
 .../java/org/h2/command/dml/AlterTableSet.java     |    80 +
 .../java/org/h2/command/dml/BackupCommand.java     |   182 +
 .../h2/src/main/java/org/h2/command/dml/Call.java  |   115 +
 .../java/org/h2/command/dml/CommandWithValues.java |    45 +
 .../src/main/java/org/h2/command/dml/Delete.java   |   211 +
 .../java/org/h2/command/dml/ExecuteProcedure.java  |    93 +
 .../src/main/java/org/h2/command/dml/Explain.java  |   160 +
 .../src/main/java/org/h2/command/dml/Insert.java   |   482 +
 .../h2/src/main/java/org/h2/command/dml/Merge.java |   322 +
 .../main/java/org/h2/command/dml/MergeUsing.java   |   519 +
 .../main/java/org/h2/command/dml/NoOperation.java  |    52 +
 .../main/java/org/h2/command/dml/Optimizer.java    |   265 +
 .../h2/src/main/java/org/h2/command/dml/Query.java |   746 ++
 .../src/main/java/org/h2/command/dml/Replace.java  |   295 +
 .../java/org/h2/command/dml/RunScriptCommand.java  |   103 +
 .../main/java/org/h2/command/dml/ScriptBase.java   |   268 +
 .../java/org/h2/command/dml/ScriptCommand.java     |   728 ++
 .../src/main/java/org/h2/command/dml/Select.java   |  1987 +++
 .../main/java/org/h2/command/dml/SelectGroups.java |   442 +
 .../h2/command/dml/SelectListColumnResolver.java   |   100 +
 .../java/org/h2/command/dml/SelectOrderBy.java     |    49 +
 .../main/java/org/h2/command/dml/SelectUnion.java  |   535 +
 .../h2/src/main/java/org/h2/command/dml/Set.java   |   671 +
 .../src/main/java/org/h2/command/dml/SetTypes.java |   353 +
 .../org/h2/command/dml/TransactionCommand.java     |   149 +
 .../src/main/java/org/h2/command/dml/Update.java   |   308 +
 .../src/main/java/org/h2/command/dml/package.html  |    14 +
 .../h2/src/main/java/org/h2/command/package.html   |    14 +
 .../main/java/org/h2/compress/CompressDeflate.java |    95 +
 .../src/main/java/org/h2/compress/CompressLZF.java |   471 +
 .../src/main/java/org/h2/compress/CompressNo.java  |    37 +
 .../src/main/java/org/h2/compress/Compressor.java  |    67 +
 .../main/java/org/h2/compress/LZFInputStream.java  |   133 +
 .../main/java/org/h2/compress/LZFOutputStream.java |   102 +
 .../h2/src/main/java/org/h2/compress/package.html  |    14 +
 .../main/java/org/h2/constraint/Constraint.java    |   196 +
 .../org/h2/constraint/ConstraintActionType.java    |    44 +
 .../java/org/h2/constraint/ConstraintCheck.java    |   171 +
 .../org/h2/constraint/ConstraintReferential.java   |   640 +
 .../java/org/h2/constraint/ConstraintUnique.java   |   158 +
 .../src/main/java/org/h2/constraint/package.html   |    14 +
 .../h2/src/main/java/org/h2/engine/Comment.java    |   119 +
 .../main/java/org/h2/engine/ConnectionInfo.java    |   674 +
 .../h2/src/main/java/org/h2/engine/Constants.java  |   593 +
 .../h2/src/main/java/org/h2/engine/Database.java   |  3200 +++++
 .../h2/src/main/java/org/h2/engine/DbObject.java   |   223 +
 .../src/main/java/org/h2/engine/DbObjectBase.java  |   183 +
 .../h2/src/main/java/org/h2/engine/DbSettings.java |   389 +
 .../java/org/h2/engine/DelayedDatabaseCloser.java  |    76 +
 modules/h2/src/main/java/org/h2/engine/Domain.java |    66 +
 modules/h2/src/main/java/org/h2/engine/Engine.java |   371 +
 .../src/main/java/org/h2/engine/FunctionAlias.java |   523 +
 .../src/main/java/org/h2/engine/GeneratedKeys.java |   242 +
 .../main/java/org/h2/engine/GeneratedKeysMode.java |    67 +
 .../h2/src/main/java/org/h2/engine/MetaRecord.java |   153 +
 modules/h2/src/main/java/org/h2/engine/Mode.java   |   403 +
 .../java/org/h2/engine/OnExitDatabaseCloser.java   |   117 +
 .../h2/src/main/java/org/h2/engine/Procedure.java  |    32 +
 .../java/org/h2/engine/QueryStatisticsData.java    |   200 +
 modules/h2/src/main/java/org/h2/engine/Right.java  |   193 +
 .../h2/src/main/java/org/h2/engine/RightOwner.java |   208 +
 modules/h2/src/main/java/org/h2/engine/Role.java   |    90 +
 .../h2/src/main/java/org/h2/engine/Session.java    |  1906 +++
 .../main/java/org/h2/engine/SessionFactory.java    |    25 +
 .../main/java/org/h2/engine/SessionInterface.java  |   165 +
 .../src/main/java/org/h2/engine/SessionRemote.java |   858 ++
 .../main/java/org/h2/engine/SessionWithState.java  |    61 +
 .../h2/src/main/java/org/h2/engine/Setting.java    |    88 +
 .../src/main/java/org/h2/engine/SettingsBase.java  |   107 +
 .../src/main/java/org/h2/engine/SysProperties.java |   623 +
 .../h2/src/main/java/org/h2/engine/UndoLog.java    |   196 +
 .../src/main/java/org/h2/engine/UndoLogRecord.java |   257 +
 modules/h2/src/main/java/org/h2/engine/User.java   |   275 +
 .../src/main/java/org/h2/engine/UserAggregate.java |   132 +
 .../src/main/java/org/h2/engine/UserBuilder.java   |    36 +
 .../h2/src/main/java/org/h2/engine/package.html    |    14 +
 .../h2/src/main/java/org/h2/expression/Alias.java  |   113 +
 .../java/org/h2/expression/BinaryOperation.java    |   459 +
 .../main/java/org/h2/expression/Expression.java    |   432 +
 .../java/org/h2/expression/ExpressionColumn.java   |   370 +
 .../java/org/h2/expression/ExpressionList.java     |   139 +
 .../java/org/h2/expression/ExpressionVisitor.java  |   386 +
 .../java/org/h2/expression/IntervalOperation.java  |   318 +
 .../src/main/java/org/h2/expression/Parameter.java |   193 +
 .../java/org/h2/expression/ParameterInterface.java |    74 +
 .../java/org/h2/expression/ParameterRemote.java    |   103 +
 .../h2/src/main/java/org/h2/expression/Rownum.java |    98 +
 .../main/java/org/h2/expression/SequenceValue.java |   101 +
 .../src/main/java/org/h2/expression/Subquery.java  |   122 +
 .../java/org/h2/expression/UnaryOperation.java     |    99 +
 .../java/org/h2/expression/ValueExpression.java    |   172 +
 .../src/main/java/org/h2/expression/Variable.java  |    99 +
 .../src/main/java/org/h2/expression/Wildcard.java  |   136 +
 .../h2/expression/aggregate/AbstractAggregate.java |   316 +
 .../org/h2/expression/aggregate/Aggregate.java     |   952 ++
 .../org/h2/expression/aggregate/AggregateData.java |    92 +
 .../aggregate/AggregateDataCollecting.java         |   114 +
 .../expression/aggregate/AggregateDataCount.java   |    38 +
 .../expression/aggregate/AggregateDataDefault.java |   185 +
 .../aggregate/AggregateDataDistinctWithCounts.java |    72 +
 .../aggregate/AggregateDataEnvelope.java           |    72 +
 .../aggregate/AggregateDataSelectivity.java        |    69 +
 .../org/h2/expression/aggregate/AggregateType.java |   148 +
 .../org/h2/expression/aggregate/JavaAggregate.java |   226 +
 .../h2/expression/aggregate/LongDataCounter.java   |    18 +
 .../org/h2/expression/aggregate/Percentile.java    |   363 +
 .../java/org/h2/expression/aggregate/package.html  |    14 +
 .../expression/analysis/DataAnalysisOperation.java |   529 +
 .../org/h2/expression/analysis/PartitionData.java  |    91 +
 .../java/org/h2/expression/analysis/Window.java    |   280 +
 .../org/h2/expression/analysis/WindowFrame.java    |   878 ++
 .../h2/expression/analysis/WindowFrameBound.java   |   164 +
 .../expression/analysis/WindowFrameBoundType.java  |    54 +
 .../expression/analysis/WindowFrameExclusion.java  |    62 +
 .../h2/expression/analysis/WindowFrameUnits.java   |    40 +
 .../org/h2/expression/analysis/WindowFunction.java |   534 +
 .../h2/expression/analysis/WindowFunctionType.java |   123 +
 .../java/org/h2/expression/analysis/package.html   |    14 +
 .../org/h2/expression/condition/CompareLike.java   |   546 +
 .../org/h2/expression/condition/Comparison.java    |   678 +
 .../org/h2/expression/condition/Condition.java     |    21 +
 .../h2/expression/condition/ConditionAndOr.java    |   348 +
 .../h2/expression/condition/ConditionExists.java   |    79 +
 .../org/h2/expression/condition/ConditionIn.java   |   268 +
 .../condition/ConditionInConstantSet.java          |   189 +
 .../expression/condition/ConditionInParameter.java |   184 +
 .../h2/expression/condition/ConditionInSelect.java |   219 +
 .../org/h2/expression/condition/ConditionNot.java  |   118 +
 .../java/org/h2/expression/condition/package.html  |    14 +
 .../h2/expression/function/DateTimeFunctions.java  |   817 ++
 .../java/org/h2/expression/function/Function.java  |  2786 +++++
 .../org/h2/expression/function/FunctionCall.java   |    79 +
 .../org/h2/expression/function/FunctionInfo.java   |   108 +
 .../org/h2/expression/function/JavaFunction.java   |   185 +
 .../org/h2/expression/function/TableFunction.java  |   163 +
 .../java/org/h2/expression/function/ToChar.java    |  1045 ++
 .../org/h2/expression/function/ToDateParser.java   |   379 +
 .../h2/expression/function/ToDateTokenizer.java    |   713 ++
 .../java/org/h2/expression/function/package.html   |    14 +
 .../src/main/java/org/h2/expression/package.html   |    14 +
 .../h2/src/main/java/org/h2/fulltext/FullText.java |  1189 ++
 .../main/java/org/h2/fulltext/FullTextLucene.java  |   769 ++
 .../java/org/h2/fulltext/FullTextSettings.java     |   282 +
 .../src/main/java/org/h2/fulltext/IndexInfo.java   |    42 +
 .../h2/src/main/java/org/h2/fulltext/package.html  |    14 +
 .../java/org/h2/index/AbstractFunctionCursor.java  |   102 +
 .../h2/src/main/java/org/h2/index/BaseIndex.java   |   503 +
 modules/h2/src/main/java/org/h2/index/Cursor.java  |    53 +
 .../src/main/java/org/h2/index/FunctionCursor.java |    35 +
 .../java/org/h2/index/FunctionCursorResultSet.java |    41 +
 .../src/main/java/org/h2/index/FunctionIndex.java  |   131 +
 .../h2/src/main/java/org/h2/index/HashIndex.java   |   178 +
 modules/h2/src/main/java/org/h2/index/Index.java   |   289 +
 .../src/main/java/org/h2/index/IndexCondition.java |   432 +
 .../h2/src/main/java/org/h2/index/IndexCursor.java |   330 +
 .../main/java/org/h2/index/IndexLookupBatch.java   |    70 +
 .../h2/src/main/java/org/h2/index/IndexType.java   |   207 +
 .../src/main/java/org/h2/index/LinkedCursor.java   |    78 +
 .../h2/src/main/java/org/h2/index/LinkedIndex.java |   282 +
 .../h2/src/main/java/org/h2/index/MetaCursor.java  |    48 +
 .../h2/src/main/java/org/h2/index/MetaIndex.java   |   138 +
 .../java/org/h2/index/NonUniqueHashCursor.java     |    57 +
 .../main/java/org/h2/index/NonUniqueHashIndex.java |   180 +
 .../h2/src/main/java/org/h2/index/PageBtree.java   |   292 +
 .../main/java/org/h2/index/PageBtreeCursor.java    |    93 +
 .../src/main/java/org/h2/index/PageBtreeIndex.java |   494 +
 .../src/main/java/org/h2/index/PageBtreeLeaf.java  |   402 +
 .../src/main/java/org/h2/index/PageBtreeNode.java  |   609 +
 .../h2/src/main/java/org/h2/index/PageData.java    |   248 +
 .../src/main/java/org/h2/index/PageDataCursor.java |    76 +
 .../src/main/java/org/h2/index/PageDataIndex.java  |   510 +
 .../src/main/java/org/h2/index/PageDataLeaf.java   |   625 +
 .../src/main/java/org/h2/index/PageDataNode.java   |   454 +
 .../main/java/org/h2/index/PageDataOverflow.java   |   273 +
 .../main/java/org/h2/index/PageDelegateIndex.java  |   163 +
 .../h2/src/main/java/org/h2/index/PageIndex.java   |    60 +
 .../h2/src/main/java/org/h2/index/RangeCursor.java |    65 +
 .../h2/src/main/java/org/h2/index/RangeIndex.java  |   140 +
 .../h2/src/main/java/org/h2/index/ScanCursor.java  |    45 +
 .../h2/src/main/java/org/h2/index/ScanIndex.java   |   199 +
 .../main/java/org/h2/index/SingleRowCursor.java    |    53 +
 .../src/main/java/org/h2/index/SpatialIndex.java   |    32 +
 .../main/java/org/h2/index/SpatialTreeIndex.java   |   308 +
 .../h2/src/main/java/org/h2/index/TreeCursor.java  |   124 +
 .../h2/src/main/java/org/h2/index/TreeIndex.java   |   411 +
 .../h2/src/main/java/org/h2/index/TreeNode.java    |    54 +
 .../h2/src/main/java/org/h2/index/ViewCursor.java  |    87 +
 .../h2/src/main/java/org/h2/index/ViewIndex.java   |   450 +
 modules/h2/src/main/java/org/h2/index/package.html |    14 +
 .../h2/src/main/java/org/h2/jdbc/JdbcArray.java    |   317 +
 .../java/org/h2/jdbc/JdbcBatchUpdateException.java |    66 +
 modules/h2/src/main/java/org/h2/jdbc/JdbcBlob.java |   312 +
 .../java/org/h2/jdbc/JdbcCallableStatement.java    |  1714 +++
 .../jdbc/JdbcCallableStatementBackwardsCompat.java |    16 +
 modules/h2/src/main/java/org/h2/jdbc/JdbcClob.java |   259 +
 .../src/main/java/org/h2/jdbc/JdbcConnection.java  |  2193 ++++
 .../org/h2/jdbc/JdbcConnectionBackwardsCompat.java |    16 +
 .../java/org/h2/jdbc/JdbcDatabaseMetaData.java     |  3320 +++++
 .../jdbc/JdbcDatabaseMetaDataBackwardsCompat.java  |    16 +
 .../src/main/java/org/h2/jdbc/JdbcException.java   |    49 +
 modules/h2/src/main/java/org/h2/jdbc/JdbcLob.java  |   224 +
 .../java/org/h2/jdbc/JdbcParameterMetaData.java    |   259 +
 .../java/org/h2/jdbc/JdbcPreparedStatement.java    |  1847 +++
 .../jdbc/JdbcPreparedStatementBackwardsCompat.java |    37 +
 .../src/main/java/org/h2/jdbc/JdbcResultSet.java   |  4003 ++++++
 .../org/h2/jdbc/JdbcResultSetBackwardsCompat.java  |    16 +
 .../java/org/h2/jdbc/JdbcResultSetMetaData.java    |   489 +
 .../java/org/h2/jdbc/JdbcSQLDataException.java     |    87 +
 .../main/java/org/h2/jdbc/JdbcSQLException.java    |    87 +
 .../jdbc/JdbcSQLFeatureNotSupportedException.java  |    87 +
 ...bcSQLIntegrityConstraintViolationException.java |    88 +
 .../JdbcSQLInvalidAuthorizationSpecException.java  |    88 +
 .../JdbcSQLNonTransientConnectionException.java    |    88 +
 .../org/h2/jdbc/JdbcSQLNonTransientException.java  |    87 +
 .../org/h2/jdbc/JdbcSQLSyntaxErrorException.java   |    87 +
 .../java/org/h2/jdbc/JdbcSQLTimeoutException.java  |    87 +
 .../jdbc/JdbcSQLTransactionRollbackException.java  |    87 +
 .../org/h2/jdbc/JdbcSQLTransientException.java     |    87 +
 .../h2/src/main/java/org/h2/jdbc/JdbcSQLXML.java   |   217 +
 .../src/main/java/org/h2/jdbc/JdbcSavepoint.java   |   123 +
 .../src/main/java/org/h2/jdbc/JdbcStatement.java   |  1437 +++
 .../org/h2/jdbc/JdbcStatementBackwardsCompat.java  |   140 +
 modules/h2/src/main/java/org/h2/jdbc/package.html  |    14 +
 .../main/java/org/h2/jdbcx/JdbcConnectionPool.java |   349 +
 .../jdbcx/JdbcConnectionPoolBackwardsCompat.java   |    16 +
 .../src/main/java/org/h2/jdbcx/JdbcDataSource.java |   450 +
 .../h2/jdbcx/JdbcDataSourceBackwardsCompat.java    |    16 +
 .../java/org/h2/jdbcx/JdbcDataSourceFactory.java   |    94 +
 .../main/java/org/h2/jdbcx/JdbcXAConnection.java   |   477 +
 modules/h2/src/main/java/org/h2/jdbcx/JdbcXid.java |    91 +
 modules/h2/src/main/java/org/h2/jdbcx/package.html |    14 +
 .../h2/src/main/java/org/h2/jmx/DatabaseInfo.java  |   278 +
 .../main/java/org/h2/jmx/DatabaseInfoMBean.java    |   169 +
 .../src/main/java/org/h2/jmx/DocumentedMBean.java  |    76 +
 modules/h2/src/main/java/org/h2/jmx/package.html   |    14 +
 .../src/main/java/org/h2/message/DbException.java  |   724 ++
 modules/h2/src/main/java/org/h2/message/Trace.java |   363 +
 .../src/main/java/org/h2/message/TraceObject.java  |   404 +
 .../src/main/java/org/h2/message/TraceSystem.java  |   348 +
 .../src/main/java/org/h2/message/TraceWriter.java  |    52 +
 .../java/org/h2/message/TraceWriterAdapter.java    |    76 +
 .../h2/src/main/java/org/h2/message/package.html   |    14 +
 .../src/main/java/org/h2/mode/FunctionsBase.java   |    37 +
 .../java/org/h2/mode/FunctionsMSSQLServer.java     |    45 +
 .../src/main/java/org/h2/mode/FunctionsMySQL.java  |   246 +
 modules/h2/src/main/java/org/h2/mode/package.html  |    14 +
 modules/h2/src/main/java/org/h2/mvstore/Chunk.java |   277 +
 .../h2/src/main/java/org/h2/mvstore/Cursor.java    |   176 +
 .../h2/src/main/java/org/h2/mvstore/CursorPos.java |    35 +
 .../h2/src/main/java/org/h2/mvstore/DataUtils.java |  1058 ++
 .../h2/src/main/java/org/h2/mvstore/FileStore.java |   399 +
 .../main/java/org/h2/mvstore/FreeSpaceBitSet.java  |   239 +
 modules/h2/src/main/java/org/h2/mvstore/MVMap.java |  1920 +++
 .../h2/src/main/java/org/h2/mvstore/MVStore.java   |  3363 +++++
 .../src/main/java/org/h2/mvstore/MVStoreTool.java  |   725 ++
 .../src/main/java/org/h2/mvstore/OffHeapStore.java |   148 +
 modules/h2/src/main/java/org/h2/mvstore/Page.java  |  1604 +++
 .../main/java/org/h2/mvstore/RootReference.java    |   118 +
 .../src/main/java/org/h2/mvstore/StreamStore.java  |   583 +
 .../src/main/java/org/h2/mvstore/WriteBuffer.java  |   331 +
 .../org/h2/mvstore/cache/CacheLongKeyLIRS.java     |  1217 ++
 .../java/org/h2/mvstore/cache/FilePathCache.java   |   181 +
 .../main/java/org/h2/mvstore/cache/package.html    |    14 +
 .../java/org/h2/mvstore/db/MVDelegateIndex.java    |   157 +
 .../src/main/java/org/h2/mvstore/db/MVIndex.java   |    35 +
 .../java/org/h2/mvstore/db/MVPlainTempResult.java  |   119 +
 .../java/org/h2/mvstore/db/MVPrimaryIndex.java     |   485 +
 .../java/org/h2/mvstore/db/MVSecondaryIndex.java   |   479 +
 .../java/org/h2/mvstore/db/MVSortedTempResult.java |   353 +
 .../java/org/h2/mvstore/db/MVSpatialIndex.java     |   525 +
 .../src/main/java/org/h2/mvstore/db/MVTable.java   |   727 ++
 .../main/java/org/h2/mvstore/db/MVTableEngine.java |   475 +
 .../main/java/org/h2/mvstore/db/MVTempResult.java  |   239 +
 .../main/java/org/h2/mvstore/db/ValueDataType.java |   743 ++
 .../src/main/java/org/h2/mvstore/db/package.html   |    14 +
 .../h2/src/main/java/org/h2/mvstore/package.html   |    14 +
 .../main/java/org/h2/mvstore/rtree/MVRTreeMap.java |   619 +
 .../java/org/h2/mvstore/rtree/SpatialDataType.java |   386 +
 .../main/java/org/h2/mvstore/rtree/SpatialKey.java |   124 +
 .../main/java/org/h2/mvstore/rtree/package.html    |    14 +
 .../org/h2/mvstore/tx/CommitDecisionMaker.java     |    65 +
 .../org/h2/mvstore/tx/RollbackDecisionMaker.java   |    67 +
 .../main/java/org/h2/mvstore/tx/Transaction.java   |   641 +
 .../java/org/h2/mvstore/tx/TransactionMap.java     |   763 ++
 .../java/org/h2/mvstore/tx/TransactionStore.java   |   840 ++
 .../java/org/h2/mvstore/tx/TxDecisionMaker.java    |   302 +
 .../java/org/h2/mvstore/tx/VersionedBitSet.java    |    33 +
 .../org/h2/mvstore/tx/VersionedValueCommitted.java |    49 +
 .../java/org/h2/mvstore/tx/VersionedValueType.java |   132 +
 .../h2/mvstore/tx/VersionedValueUncommitted.java   |    59 +
 .../src/main/java/org/h2/mvstore/tx/package.html   |    14 +
 .../main/java/org/h2/mvstore/type/DataType.java    |    72 +
 .../java/org/h2/mvstore/type/ObjectDataType.java   |  1552 +++
 .../java/org/h2/mvstore/type/StringDataType.java   |    57 +
 .../src/main/java/org/h2/mvstore/type/package.html |    14 +
 modules/h2/src/main/java/org/h2/package.html       |    14 +
 .../h2/src/main/java/org/h2/res/_messages_cs.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_de.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_en.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_es.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_fr.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_ja.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_pl.prop  |   184 +
 .../src/main/java/org/h2/res/_messages_pt_br.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_ru.prop  |   184 +
 .../h2/src/main/java/org/h2/res/_messages_sk.prop  |   184 +
 .../src/main/java/org/h2/res/_messages_zh_cn.prop  |   184 +
 modules/h2/src/main/java/org/h2/res/h2-22-t.png    |   Bin 0 -> 3870 bytes
 modules/h2/src/main/java/org/h2/res/h2-22.png      |   Bin 0 -> 1239 bytes
 modules/h2/src/main/java/org/h2/res/h2-24.png      |   Bin 0 -> 574 bytes
 modules/h2/src/main/java/org/h2/res/h2-64-t.png    |   Bin 0 -> 11867 bytes
 modules/h2/src/main/java/org/h2/res/h2.png         |   Bin 0 -> 547 bytes
 modules/h2/src/main/java/org/h2/res/help.csv       |  2045 +++
 .../h2/src/main/java/org/h2/res/javadoc.properties |    41 +
 .../h2/src/main/java/org/h2/result/LazyResult.java |   204 +
 .../src/main/java/org/h2/result/LocalResult.java   |   103 +
 .../java/org/h2/result/LocalResultFactory.java     |    57 +
 .../main/java/org/h2/result/LocalResultImpl.java   |   588 +
 .../src/main/java/org/h2/result/MergedResult.java  |    88 +
 .../src/main/java/org/h2/result/ResultColumn.java  |    94 +
 .../main/java/org/h2/result/ResultExternal.java    |    74 +
 .../main/java/org/h2/result/ResultInterface.java   |   182 +
 .../src/main/java/org/h2/result/ResultRemote.java  |   270 +
 .../src/main/java/org/h2/result/ResultTarget.java  |    36 +
 .../org/h2/result/ResultWithGeneratedKeys.java     |    72 +
 .../org/h2/result/ResultWithPaddedStrings.java     |   193 +
 modules/h2/src/main/java/org/h2/result/Row.java    |    69 +
 .../h2/src/main/java/org/h2/result/RowFactory.java |    39 +
 .../h2/src/main/java/org/h2/result/RowImpl.java    |   154 +
 .../h2/src/main/java/org/h2/result/RowList.java    |   250 +
 .../h2/src/main/java/org/h2/result/SearchRow.java  |    76 +
 .../src/main/java/org/h2/result/SimpleResult.java  |   260 +
 .../h2/src/main/java/org/h2/result/SimpleRow.java  |    73 +
 .../main/java/org/h2/result/SimpleRowValue.java    |    67 +
 .../h2/src/main/java/org/h2/result/SortOrder.java  |   338 +
 .../src/main/java/org/h2/result/UpdatableRow.java  |   330 +
 .../h2/src/main/java/org/h2/result/package.html    |    14 +
 .../h2/src/main/java/org/h2/schema/Constant.java   |    71 +
 modules/h2/src/main/java/org/h2/schema/Schema.java |   751 ++
 .../src/main/java/org/h2/schema/SchemaObject.java  |    30 +
 .../main/java/org/h2/schema/SchemaObjectBase.java  |    53 +
 .../h2/src/main/java/org/h2/schema/Sequence.java   |   371 +
 .../src/main/java/org/h2/schema/TriggerObject.java |   480 +
 .../h2/src/main/java/org/h2/schema/package.html    |    14 +
 modules/h2/src/main/java/org/h2/security/AES.java  |   327 +
 .../src/main/java/org/h2/security/BlockCipher.java |    53 +
 .../main/java/org/h2/security/CipherFactory.java   |   411 +
 modules/h2/src/main/java/org/h2/security/Fog.java  |    75 +
 .../h2/src/main/java/org/h2/security/SHA256.java   |   156 +
 .../main/java/org/h2/security/SecureFileStore.java |   114 +
 modules/h2/src/main/java/org/h2/security/XTEA.java |   150 +
 .../org/h2/security/auth/AuthConfigException.java  |    30 +
 .../h2/security/auth/AuthenticationException.java  |    30 +
 .../org/h2/security/auth/AuthenticationInfo.java   |    89 +
 .../java/org/h2/security/auth/Authenticator.java   |    33 +
 .../org/h2/security/auth/AuthenticatorFactory.java |    20 +
 .../org/h2/security/auth/ConfigProperties.java     |   116 +
 .../java/org/h2/security/auth/Configurable.java    |    17 +
 .../org/h2/security/auth/DefaultAuthenticator.java |   360 +
 .../java/org/h2/security/auth/H2AuthConfig.java    |    98 +
 .../java/org/h2/security/auth/H2AuthConfigXml.java |   128 +
 .../org/h2/security/auth/HasConfigProperties.java  |    15 +
 .../java/org/h2/security/auth/PropertyConfig.java  |    40 +
 .../java/org/h2/security/auth/RealmConfig.java     |    64 +
 .../h2/security/auth/UserToRolesMapperConfig.java  |    46 +
 .../h2/security/auth/impl/AssignRealmNameRole.java |    48 +
 .../auth/impl/JaasCredentialsValidator.java        |    85 +
 .../auth/impl/LdapCredentialsValidator.java        |    73 +
 .../h2/security/auth/impl/StaticRolesMapper.java   |    51 +
 .../auth/impl/StaticUserCredentialsValidator.java  |    73 +
 .../java/org/h2/security/auth/impl/package.html    |    14 +
 .../main/java/org/h2/security/auth/package.html    |    14 +
 .../h2/src/main/java/org/h2/security/package.html  |    14 +
 .../h2/src/main/java/org/h2/server/Service.java    |    92 +
 .../main/java/org/h2/server/ShutdownHandler.java   |    17 +
 .../h2/src/main/java/org/h2/server/TcpServer.java  |   518 +
 .../main/java/org/h2/server/TcpServerThread.java   |   654 +
 .../h2/src/main/java/org/h2/server/package.html    |    14 +
 .../src/main/java/org/h2/server/pg/PgServer.java   |   595 +
 .../main/java/org/h2/server/pg/PgServerThread.java |  1118 ++
 .../h2/src/main/java/org/h2/server/pg/package.html |    14 +
 .../src/main/java/org/h2/server/pg/pg_catalog.sql  |   379 +
 .../java/org/h2/server/web/ConnectionInfo.java     |    66 +
 .../src/main/java/org/h2/server/web/DbStarter.java |    93 +
 .../main/java/org/h2/server/web/PageParser.java    |   349 +
 .../h2/src/main/java/org/h2/server/web/WebApp.java |  1945 +++
 .../src/main/java/org/h2/server/web/WebServer.java |   930 ++
 .../main/java/org/h2/server/web/WebServlet.java    |   161 +
 .../main/java/org/h2/server/web/WebSession.java    |   275 +
 .../src/main/java/org/h2/server/web/WebThread.java |   363 +
 .../src/main/java/org/h2/server/web/package.html   |    14 +
 .../main/java/org/h2/server/web/res/_text_cs.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_de.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_en.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_es.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_fr.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_hu.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_in.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_it.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_ja.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_ko.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_nl.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_pl.prop  |   163 +
 .../java/org/h2/server/web/res/_text_pt_br.prop    |   163 +
 .../java/org/h2/server/web/res/_text_pt_pt.prop    |   163 +
 .../main/java/org/h2/server/web/res/_text_ru.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_sk.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_tr.prop  |   163 +
 .../main/java/org/h2/server/web/res/_text_uk.prop  |   163 +
 .../java/org/h2/server/web/res/_text_zh_cn.prop    |   163 +
 .../java/org/h2/server/web/res/_text_zh_tw.prop    |   163 +
 .../src/main/java/org/h2/server/web/res/admin.jsp  |   125 +
 .../main/java/org/h2/server/web/res/adminLogin.jsp |    44 +
 .../org/h2/server/web/res/autoCompleteList.jsp     |     1 +
 .../main/java/org/h2/server/web/res/background.gif |   Bin 0 -> 169 bytes
 .../src/main/java/org/h2/server/web/res/error.jsp  |    16 +
 .../main/java/org/h2/server/web/res/favicon.ico    |   Bin 0 -> 4286 bytes
 .../src/main/java/org/h2/server/web/res/frame.jsp  |    28 +
 .../src/main/java/org/h2/server/web/res/header.jsp |   163 +
 .../src/main/java/org/h2/server/web/res/help.jsp   |    99 +
 .../java/org/h2/server/web/res/helpTranslate.jsp   |    43 +
 .../main/java/org/h2/server/web/res/ico_add.gif    |   Bin 0 -> 318 bytes
 .../src/main/java/org/h2/server/web/res/ico_ok.gif |   Bin 0 -> 846 bytes
 .../main/java/org/h2/server/web/res/ico_remove.gif |   Bin 0 -> 350 bytes
 .../java/org/h2/server/web/res/ico_remove_ok.gif   |   Bin 0 -> 107 bytes
 .../main/java/org/h2/server/web/res/ico_search.gif |   Bin 0 -> 545 bytes
 .../main/java/org/h2/server/web/res/ico_undo.gif   |   Bin 0 -> 851 bytes
 .../main/java/org/h2/server/web/res/ico_write.gif  |   Bin 0 -> 210 bytes
 .../java/org/h2/server/web/res/icon_commit.gif     |   Bin 0 -> 323 bytes
 .../java/org/h2/server/web/res/icon_disconnect.gif |   Bin 0 -> 114 bytes
 .../main/java/org/h2/server/web/res/icon_help.gif  |   Bin 0 -> 373 bytes
 .../java/org/h2/server/web/res/icon_history.gif    |   Bin 0 -> 216 bytes
 .../main/java/org/h2/server/web/res/icon_line.gif  |   Bin 0 -> 818 bytes
 .../java/org/h2/server/web/res/icon_refresh.gif    |   Bin 0 -> 327 bytes
 .../java/org/h2/server/web/res/icon_rollback.gif   |   Bin 0 -> 331 bytes
 .../main/java/org/h2/server/web/res/icon_run.gif   |   Bin 0 -> 379 bytes
 .../org/h2/server/web/res/icon_run_selected.gif    |   Bin 0 -> 312 bytes
 .../main/java/org/h2/server/web/res/icon_stop.gif  |   Bin 0 -> 215 bytes
 .../src/main/java/org/h2/server/web/res/index.jsp  |    24 +
 .../src/main/java/org/h2/server/web/res/login.jsp  |   132 +
 .../main/java/org/h2/server/web/res/notAllowed.jsp |    16 +
 .../src/main/java/org/h2/server/web/res/query.jsp  |   530 +
 .../src/main/java/org/h2/server/web/res/result.jsp |    22 +
 .../main/java/org/h2/server/web/res/stylesheet.css |   334 +
 .../src/main/java/org/h2/server/web/res/table.js   |   266 +
 .../src/main/java/org/h2/server/web/res/tables.jsp |    35 +
 .../src/main/java/org/h2/server/web/res/tools.jsp  |   241 +
 .../h2/src/main/java/org/h2/server/web/res/tree.js |   124 +
 .../java/org/h2/server/web/res/tree_column.gif     |   Bin 0 -> 317 bytes
 .../java/org/h2/server/web/res/tree_database.gif   |   Bin 0 -> 545 bytes
 .../main/java/org/h2/server/web/res/tree_empty.gif |   Bin 0 -> 62 bytes
 .../java/org/h2/server/web/res/tree_folder.gif     |   Bin 0 -> 372 bytes
 .../main/java/org/h2/server/web/res/tree_index.gif |   Bin 0 -> 152 bytes
 .../java/org/h2/server/web/res/tree_index_az.gif   |   Bin 0 -> 157 bytes
 .../main/java/org/h2/server/web/res/tree_info.gif  |   Bin 0 -> 267 bytes
 .../main/java/org/h2/server/web/res/tree_line.gif  |   Bin 0 -> 66 bytes
 .../main/java/org/h2/server/web/res/tree_minus.gif |   Bin 0 -> 861 bytes
 .../main/java/org/h2/server/web/res/tree_page.gif  |   Bin 0 -> 582 bytes
 .../main/java/org/h2/server/web/res/tree_plus.gif  |   Bin 0 -> 870 bytes
 .../java/org/h2/server/web/res/tree_sequence.gif   |   Bin 0 -> 91 bytes
 .../java/org/h2/server/web/res/tree_sequences.gif  |   Bin 0 -> 114 bytes
 .../main/java/org/h2/server/web/res/tree_table.gif |   Bin 0 -> 343 bytes
 .../main/java/org/h2/server/web/res/tree_type.gif  |   Bin 0 -> 197 bytes
 .../main/java/org/h2/server/web/res/tree_types.gif |   Bin 0 -> 364 bytes
 .../main/java/org/h2/server/web/res/tree_user.gif  |   Bin 0 -> 500 bytes
 .../main/java/org/h2/server/web/res/tree_users.gif |   Bin 0 -> 601 bytes
 .../main/java/org/h2/server/web/res/tree_view.gif  |   Bin 0 -> 157 bytes
 .../org/h2/store/CountingReaderInputStream.java    |   112 +
 modules/h2/src/main/java/org/h2/store/Data.java    |  1461 +++
 .../h2/src/main/java/org/h2/store/DataHandler.java |   124 +
 .../h2/src/main/java/org/h2/store/DataReader.java  |   201 +
 .../h2/src/main/java/org/h2/store/FileLister.java  |   122 +
 .../h2/src/main/java/org/h2/store/FileLock.java    |   515 +
 .../src/main/java/org/h2/store/FileLockMethod.java |    35 +
 .../h2/src/main/java/org/h2/store/FileStore.java   |   516 +
 .../java/org/h2/store/FileStoreInputStream.java    |   160 +
 .../java/org/h2/store/FileStoreOutputStream.java   |    85 +
 .../main/java/org/h2/store/InDoubtTransaction.java |    51 +
 .../main/java/org/h2/store/LobStorageBackend.java  |   780 ++
 .../main/java/org/h2/store/LobStorageFrontend.java |   108 +
 .../java/org/h2/store/LobStorageInterface.java     |    84 +
 .../src/main/java/org/h2/store/LobStorageMap.java  |   359 +
 .../org/h2/store/LobStorageRemoteInputStream.java  |    90 +
 modules/h2/src/main/java/org/h2/store/Page.java    |   264 +
 .../src/main/java/org/h2/store/PageFreeList.java   |   231 +
 .../main/java/org/h2/store/PageInputStream.java    |   172 +
 modules/h2/src/main/java/org/h2/store/PageLog.java |   895 ++
 .../main/java/org/h2/store/PageOutputStream.java   |   224 +
 .../h2/src/main/java/org/h2/store/PageStore.java   |  2037 +++
 .../org/h2/store/PageStoreInDoubtTransaction.java  |    72 +
 .../src/main/java/org/h2/store/PageStreamData.java |   179 +
 .../main/java/org/h2/store/PageStreamTrunk.java    |   303 +
 .../main/java/org/h2/store/RangeInputStream.java   |   102 +
 .../h2/src/main/java/org/h2/store/RangeReader.java |   103 +
 .../src/main/java/org/h2/store/RecoverTester.java  |   196 +
 .../src/main/java/org/h2/store/SessionState.java   |    54 +
 .../src/main/java/org/h2/store/WriterThread.java   |   134 +
 .../main/java/org/h2/store/fs/FakeFileChannel.java |   112 +
 .../h2/src/main/java/org/h2/store/fs/FileBase.java |   111 +
 .../org/h2/store/fs/FileChannelInputStream.java    |    71 +
 .../org/h2/store/fs/FileChannelOutputStream.java   |    59 +
 .../h2/src/main/java/org/h2/store/fs/FilePath.java |   325 +
 .../main/java/org/h2/store/fs/FilePathAsync.java   |   207 +
 .../main/java/org/h2/store/fs/FilePathDisk.java    |   502 +
 .../main/java/org/h2/store/fs/FilePathEncrypt.java |   529 +
 .../src/main/java/org/h2/store/fs/FilePathMem.java |   803 ++
 .../src/main/java/org/h2/store/fs/FilePathNio.java |   129 +
 .../java/org/h2/store/fs/FilePathNioMapped.java    |   243 +
 .../main/java/org/h2/store/fs/FilePathNioMem.java  |   814 ++
 .../src/main/java/org/h2/store/fs/FilePathRec.java |   216 +
 .../org/h2/store/fs/FilePathRetryOnInterrupt.java  |   257 +
 .../main/java/org/h2/store/fs/FilePathSplit.java   |   449 +
 .../main/java/org/h2/store/fs/FilePathWrapper.java |   165 +
 .../src/main/java/org/h2/store/fs/FilePathZip.java |   378 +
 .../src/main/java/org/h2/store/fs/FileUtils.java   |   379 +
 .../h2/src/main/java/org/h2/store/fs/Recorder.java |    59 +
 .../h2/src/main/java/org/h2/store/fs/package.html  |    14 +
 modules/h2/src/main/java/org/h2/store/package.html |    14 +
 modules/h2/src/main/java/org/h2/table/Column.java  |   885 ++
 .../src/main/java/org/h2/table/ColumnResolver.java |    93 +
 .../src/main/java/org/h2/table/FunctionTable.java  |   258 +
 .../h2/src/main/java/org/h2/table/IndexColumn.java |   123 +
 .../h2/src/main/java/org/h2/table/IndexHints.java  |    57 +
 .../h2/src/main/java/org/h2/table/JoinBatch.java   |  1128 ++
 .../h2/src/main/java/org/h2/table/LinkSchema.java  |    93 +
 .../h2/src/main/java/org/h2/table/MetaTable.java   |  2391 ++++
 .../src/main/java/org/h2/table/PageStoreTable.java |   534 +
 modules/h2/src/main/java/org/h2/table/Plan.java    |   154 +
 .../h2/src/main/java/org/h2/table/PlanItem.java    |    58 +
 .../h2/src/main/java/org/h2/table/RangeTable.java  |   260 +
 .../src/main/java/org/h2/table/RegularTable.java   |   265 +
 .../java/org/h2/table/SingleColumnResolver.java    |    80 +
 .../src/main/java/org/h2/table/SubQueryInfo.java   |    59 +
 modules/h2/src/main/java/org/h2/table/Table.java   |  1278 ++
 .../h2/src/main/java/org/h2/table/TableBase.java   |   156 +
 .../h2/src/main/java/org/h2/table/TableFilter.java |  1271 ++
 .../h2/src/main/java/org/h2/table/TableLink.java   |   717 ++
 .../java/org/h2/table/TableLinkConnection.java     |   145 +
 .../src/main/java/org/h2/table/TableSynonym.java   |   121 +
 .../h2/src/main/java/org/h2/table/TableType.java   |    51 +
 .../h2/src/main/java/org/h2/table/TableView.java   |   869 ++
 modules/h2/src/main/java/org/h2/table/package.html |    14 +
 modules/h2/src/main/java/org/h2/tools/Backup.java  |   179 +
 .../java/org/h2/tools/ChangeFileEncryption.java    |   312 +
 .../src/main/java/org/h2/tools/CompressTool.java   |   334 +
 modules/h2/src/main/java/org/h2/tools/Console.java |   313 +
 .../main/java/org/h2/tools/ConvertTraceFile.java   |   226 +
 .../src/main/java/org/h2/tools/CreateCluster.java  |   186 +
 modules/h2/src/main/java/org/h2/tools/Csv.java     |   871 ++
 .../src/main/java/org/h2/tools/DeleteDbFiles.java  |   110 +
 .../h2/src/main/java/org/h2/tools/GUIConsole.java  |   612 +
 .../src/main/java/org/h2/tools/MultiDimension.java |   336 +
 modules/h2/src/main/java/org/h2/tools/Recover.java |  1793 +++
 modules/h2/src/main/java/org/h2/tools/Restore.java |   200 +
 .../h2/src/main/java/org/h2/tools/RunScript.java   |   335 +
 modules/h2/src/main/java/org/h2/tools/Script.java  |   143 +
 modules/h2/src/main/java/org/h2/tools/Server.java  |   778 ++
 modules/h2/src/main/java/org/h2/tools/Shell.java   |   624 +
 .../main/java/org/h2/tools/SimpleResultSet.java    |  2466 ++++
 .../main/java/org/h2/tools/SimpleRowSource.java    |    34 +
 .../src/main/java/org/h2/tools/TriggerAdapter.java |   198 +
 modules/h2/src/main/java/org/h2/tools/package.html |    14 +
 .../h2/src/main/java/org/h2/upgrade/DbUpgrade.java |   187 +
 .../h2/src/main/java/org/h2/upgrade/package.html   |    14 +
 .../h2/src/main/java/org/h2/util/AbbaDetector.java |   129 +
 .../main/java/org/h2/util/AbbaLockingDetector.java |   262 +
 modules/h2/src/main/java/org/h2/util/Bits.java     |   325 +
 modules/h2/src/main/java/org/h2/util/Cache.java    |    92 +
 .../h2/src/main/java/org/h2/util/CacheHead.java    |    23 +
 modules/h2/src/main/java/org/h2/util/CacheLRU.java |   383 +
 .../h2/src/main/java/org/h2/util/CacheObject.java  |    84 +
 .../main/java/org/h2/util/CacheSecondLevel.java    |    89 +
 modules/h2/src/main/java/org/h2/util/CacheTQ.java  |   133 +
 .../h2/src/main/java/org/h2/util/CacheWriter.java  |    38 +
 .../h2/src/main/java/org/h2/util/CloseWatcher.java |   135 +
 .../h2/src/main/java/org/h2/util/ColumnNamer.java  |   148 +
 .../java/org/h2/util/ColumnNamerConfiguration.java |   244 +
 .../main/java/org/h2/util/CurrentTimestamp.java    |    30 +
 .../src/main/java/org/h2/util/DateTimeUtils.java   |  1585 +++
 .../main/java/org/h2/util/DbDriverActivator.java   |    52 +
 .../java/org/h2/util/DebuggingThreadLocal.java     |    45 +
 .../h2/src/main/java/org/h2/util/DoneFuture.java   |    56 +
 modules/h2/src/main/java/org/h2/util/HashBase.java |   128 +
 modules/h2/src/main/java/org/h2/util/IOUtils.java  |   416 +
 modules/h2/src/main/java/org/h2/util/IntArray.java |   170 +
 .../src/main/java/org/h2/util/IntIntHashMap.java   |   157 +
 .../src/main/java/org/h2/util/IntervalUtils.java   |   867 ++
 .../h2/src/main/java/org/h2/util/JdbcUtils.java    |   429 +
 .../h2/src/main/java/org/h2/util/LazyFuture.java   |   107 +
 .../main/java/org/h2/util/LocalDateTimeUtils.java  |   701 ++
 .../h2/src/main/java/org/h2/util/MathUtils.java    |   313 +
 .../src/main/java/org/h2/util/MemoryUnmapper.java  |    92 +
 modules/h2/src/main/java/org/h2/util/NetUtils.java |   295 +
 .../java/org/h2/util/OsgiDataSourceFactory.java    |   305 +
 .../h2/src/main/java/org/h2/util/ParserUtil.java   |   645 +
 .../h2/src/main/java/org/h2/util/Permutations.java |   173 +
 modules/h2/src/main/java/org/h2/util/Profiler.java |   518 +
 .../h2/src/main/java/org/h2/util/ScriptReader.java |   324 +
 .../main/java/org/h2/util/SimpleColumnInfo.java    |    80 +
 .../src/main/java/org/h2/util/SmallLRUCache.java   |    48 +
 modules/h2/src/main/java/org/h2/util/SmallMap.java |    94 +
 .../h2/src/main/java/org/h2/util/SoftHashMap.java  |   108 +
 .../main/java/org/h2/util/SortedProperties.java    |   170 +
 .../src/main/java/org/h2/util/SourceCompiler.java  |   597 +
 .../h2/src/main/java/org/h2/util/StringUtils.java  |  1209 ++
 modules/h2/src/main/java/org/h2/util/Task.java     |   126 +
 .../src/main/java/org/h2/util/TempFileDeleter.java |   139 +
 .../java/org/h2/util/ThreadDeadlockDetector.java   |   197 +
 modules/h2/src/main/java/org/h2/util/Tool.java     |   137 +
 modules/h2/src/main/java/org/h2/util/Utils.java    |   817 ++
 .../main/java/org/h2/util/geometry/EWKBUtils.java  |   528 +
 .../main/java/org/h2/util/geometry/EWKTUtils.java  |   924 ++
 .../java/org/h2/util/geometry/GeometryUtils.java   |   586 +
 .../main/java/org/h2/util/geometry/JTSUtils.java   |   483 +
 .../main/java/org/h2/util/geometry/package.html    |    14 +
 modules/h2/src/main/java/org/h2/util/package.html  |    14 +
 .../org/h2/value/CaseInsensitiveConcurrentMap.java |    41 +
 .../main/java/org/h2/value/CaseInsensitiveMap.java |    40 +
 .../main/java/org/h2/value/CharsetCollator.java    |    86 +
 .../h2/src/main/java/org/h2/value/CompareMode.java |   317 +
 .../main/java/org/h2/value/CompareModeDefault.java |    74 +
 .../main/java/org/h2/value/CompareModeIcu4J.java   |    89 +
 .../h2/src/main/java/org/h2/value/DataType.java    |  1642 +++
 .../h2/src/main/java/org/h2/value/ExtTypeInfo.java |    34 +
 .../main/java/org/h2/value/ExtTypeInfoEnum.java    |   211 +
 .../java/org/h2/value/ExtTypeInfoGeometry.java     |    70 +
 .../h2/src/main/java/org/h2/value/Transfer.java    |   863 ++
 .../h2/src/main/java/org/h2/value/TypeInfo.java    |   498 +
 modules/h2/src/main/java/org/h2/value/Value.java   |  1679 +++
 .../h2/src/main/java/org/h2/value/ValueArray.java  |   204 +
 .../src/main/java/org/h2/value/ValueBoolean.java   |   116 +
 .../h2/src/main/java/org/h2/value/ValueByte.java   |   156 +
 .../h2/src/main/java/org/h2/value/ValueBytes.java  |   165 +
 .../java/org/h2/value/ValueCollectionBase.java     |   133 +
 .../h2/src/main/java/org/h2/value/ValueDate.java   |   143 +
 .../src/main/java/org/h2/value/ValueDecimal.java   |   265 +
 .../h2/src/main/java/org/h2/value/ValueDouble.java |   185 +
 .../h2/src/main/java/org/h2/value/ValueEnum.java   |    29 +
 .../src/main/java/org/h2/value/ValueEnumBase.java  |   150 +
 .../h2/src/main/java/org/h2/value/ValueFloat.java  |   189 +
 .../src/main/java/org/h2/value/ValueGeometry.java  |   358 +
 .../h2/src/main/java/org/h2/value/ValueInt.java    |   179 +
 .../src/main/java/org/h2/value/ValueInterval.java  |   342 +
 .../main/java/org/h2/value/ValueJavaObject.java    |   213 +
 .../h2/src/main/java/org/h2/value/ValueLob.java    |   688 +
 .../h2/src/main/java/org/h2/value/ValueLobDb.java  |   751 ++
 .../h2/src/main/java/org/h2/value/ValueLong.java   |   212 +
 .../h2/src/main/java/org/h2/value/ValueNull.java   |   177 +
 .../src/main/java/org/h2/value/ValueResultSet.java |   179 +
 .../h2/src/main/java/org/h2/value/ValueRow.java    |   187 +
 .../h2/src/main/java/org/h2/value/ValueShort.java  |   156 +
 .../h2/src/main/java/org/h2/value/ValueString.java |   178 +
 .../main/java/org/h2/value/ValueStringFixed.java   |    66 +
 .../java/org/h2/value/ValueStringIgnoreCase.java   |    85 +
 .../h2/src/main/java/org/h2/value/ValueTime.java   |   219 +
 .../src/main/java/org/h2/value/ValueTimestamp.java |   282 +
 .../java/org/h2/value/ValueTimestampTimeZone.java  |   292 +
 .../h2/src/main/java/org/h2/value/ValueUuid.java   |   228 +
 .../src/main/java/org/h2/value/VersionedValue.java |    39 +
 modules/h2/src/main/java/org/h2/value/package.html |    14 +
 modules/h2/src/main/java9/org/h2/util/Bits.java    |   320 +
 .../main/java9/org/h2/util/CurrentTimestamp.java   |    38 +
 modules/h2/src/main/java9/org/h2/util/package.html |    14 +
 .../resources/precompiled/org/h2/util/Bits.class   |   Bin 0 -> 2361 bytes
 .../precompiled/org/h2/util/CurrentTimestamp.class |   Bin 0 -> 792 bytes
 .../services/javax.annotation.processing.Processor |     1 +
 .../apache/ignite/testsuites/H2AllTestsSuite.java  |    34 +
 .../H2InMemoryMultiThreadLazyTestSuite.java        |    39 +
 .../testsuites/H2InMemoryMultiThreadTestSuite.java |    38 +
 .../H2MVStoreWithNetworkingTestSuite.java          |    40 +
 .../ignite/testsuites/H2MultiThreadTestSuite.java  |    38 +
 .../ignite/testsuites/H2NormalModeTestSuite.java   |    38 +
 .../testsuites/H2PageStoreDefragTestSuite.java     |    38 +
 .../testsuites/H2PageStoreNoMVStoreTestSuite.java  |    39 +
 .../testsuites/H2PageStoreOffloadTestSuite.java    |    42 +
 .../org/apache/ignite/testsuites/H2TestSuite.java  |    31 +
 .../org/h2/samples/CachedPreparedStatements.java   |    59 +
 .../h2/src/test/java/org/h2/samples/Compact.java   |    63 +
 .../test/java/org/h2/samples/CreateScriptFile.java |   165 +
 .../h2/src/test/java/org/h2/samples/CsvSample.java |    67 +
 .../src/test/java/org/h2/samples/DirectInsert.java |    80 +
 .../test/java/org/h2/samples/FileFunctions.java    |    89 +
 .../h2/src/test/java/org/h2/samples/Function.java  |   156 +
 .../java/org/h2/samples/FunctionMultiReturn.java   |   162 +
 .../src/test/java/org/h2/samples/HelloWorld.java   |    48 +
 .../java/org/h2/samples/InitDatabaseFromJar.java   |    70 +
 .../h2/src/test/java/org/h2/samples/MixedMode.java |    64 +
 .../h2/src/test/java/org/h2/samples/Newsfeed.java  |    83 +
 .../java/org/h2/samples/ReadOnlyDatabaseInZip.java |    69 +
 .../test/java/org/h2/samples/RowAccessRights.java  |   123 +
 .../src/test/java/org/h2/samples/SQLInjection.java |   433 +
 .../test/java/org/h2/samples/SecurePassword.java   |    89 +
 .../src/test/java/org/h2/samples/ShowProgress.java |   172 +
 .../test/java/org/h2/samples/ShutdownServer.java   |    23 +
 .../h2/src/test/java/org/h2/samples/ToDate.java    |    68 +
 .../test/java/org/h2/samples/TriggerPassData.java  |    95 +
 .../test/java/org/h2/samples/TriggerSample.java    |   124 +
 .../test/java/org/h2/samples/UpdatableView.java    |    89 +
 .../test/java/org/h2/samples/fullTextSearch.sql    |    59 +
 .../h2/src/test/java/org/h2/samples/newsfeed.sql   |   134 +
 .../src/test/java/org/h2/samples/optimizations.sql |   295 +
 .../h2/src/test/java/org/h2/samples/package.html   |    14 +
 .../h2/src/test/java/org/h2/test/H2TestCase.java   |    86 +
 .../test/java/org/h2/test/H2TestSuiteBuilder.java  |   129 +
 modules/h2/src/test/java/org/h2/test/TestAll.java  |  1191 ++
 .../h2/src/test/java/org/h2/test/TestAllJunit.java |    23 +
 modules/h2/src/test/java/org/h2/test/TestBase.java |  1585 +++
 modules/h2/src/test/java/org/h2/test/TestDb.java   |   243 +
 .../org/h2/test/ap/TestAnnotationProcessor.java    |    83 +
 .../h2/src/test/java/org/h2/test/ap/package.html   |    14 +
 .../test/java/org/h2/test/auth/MyLoginModule.java  |    61 +
 .../java/org/h2/test/auth/TestAuthentication.java  |   296 +
 .../h2/src/test/java/org/h2/test/auth/package.html |    14 +
 .../h2/src/test/java/org/h2/test/bench/Bench.java  |    36 +
 .../h2/src/test/java/org/h2/test/bench/BenchA.java |   201 +
 .../h2/src/test/java/org/h2/test/bench/BenchB.java |   240 +
 .../h2/src/test/java/org/h2/test/bench/BenchC.java |   569 +
 .../test/java/org/h2/test/bench/BenchCRandom.java  |   179 +
 .../test/java/org/h2/test/bench/BenchCThread.java  |   726 ++
 .../test/java/org/h2/test/bench/BenchSimple.java   |   114 +
 .../src/test/java/org/h2/test/bench/Database.java  |   492 +
 .../java/org/h2/test/bench/TestPerformance.java    |   277 +
 .../java/org/h2/test/bench/TestScalability.java    |   225 +
 .../src/test/java/org/h2/test/bench/package.html   |    14 +
 .../test/java/org/h2/test/bench/test.properties    |    39 +
 .../test/java/org/h2/test/coverage/Coverage.java   |   531 +
 .../test/java/org/h2/test/coverage/Profile.java    |   228 +
 .../test/java/org/h2/test/coverage/Tokenizer.java  |   277 +
 .../test/java/org/h2/test/coverage/package.html    |    14 +
 .../db/AbstractBaseForCommonTableExpressions.java  |   103 +
 modules/h2/src/test/java/org/h2/test/db/Db.java    |   252 +
 .../h2/src/test/java/org/h2/test/db/TaskDef.java   |    76 +
 .../src/test/java/org/h2/test/db/TaskProcess.java  |   132 +
 .../h2/src/test/java/org/h2/test/db/TestAlter.java |   334 +
 .../java/org/h2/test/db/TestAlterSchemaRename.java |   127 +
 .../java/org/h2/test/db/TestAnalyzeTableTx.java    |    60 +
 .../java/org/h2/test/db/TestAutoRecompile.java     |    54 +
 .../src/test/java/org/h2/test/db/TestBackup.java   |   215 +
 .../h2/src/test/java/org/h2/test/db/TestBigDb.java |   170 +
 .../test/java/org/h2/test/db/TestBigResult.java    |   499 +
 .../h2/src/test/java/org/h2/test/db/TestCases.java |  1929 +++
 .../test/java/org/h2/test/db/TestCheckpoint.java   |    58 +
 .../src/test/java/org/h2/test/db/TestCluster.java  |   518 +
 .../java/org/h2/test/db/TestCompatibility.java     |   769 ++
 .../org/h2/test/db/TestCompatibilityOracle.java    |   350 +
 .../org/h2/test/db/TestCompatibilitySQLServer.java |    84 +
 .../h2/src/test/java/org/h2/test/db/TestCsv.java   |   590 +
 .../test/java/org/h2/test/db/TestDateStorage.java  |   226 +
 .../src/test/java/org/h2/test/db/TestDeadlock.java |   417 +
 .../h2/src/test/java/org/h2/test/db/TestDrop.java  |    79 +
 .../org/h2/test/db/TestDuplicateKeyUpdate.java     |   315 +
 .../test/java/org/h2/test/db/TestEncryptedDb.java  |    65 +
 .../test/java/org/h2/test/db/TestExclusive.java    |    68 +
 .../src/test/java/org/h2/test/db/TestFullText.java |   637 +
 .../java/org/h2/test/db/TestFunctionOverload.java  |   202 +
 .../test/java/org/h2/test/db/TestFunctions.java    |  2557 ++++
 .../h2/test/db/TestGeneralCommonTableQueries.java  |   580 +
 .../h2/src/test/java/org/h2/test/db/TestIndex.java |   787 ++
 .../test/java/org/h2/test/db/TestIndexHints.java   |   136 +
 .../org/h2/test/db/TestLIRSMemoryConsumption.java  |   119 +
 .../test/java/org/h2/test/db/TestLargeBlob.java    |    92 +
 .../test/java/org/h2/test/db/TestLinkedTable.java  |   721 ++
 .../src/test/java/org/h2/test/db/TestListener.java |   151 +
 .../h2/src/test/java/org/h2/test/db/TestLob.java   |  1764 +++
 .../test/java/org/h2/test/db/TestLobObject.java    |    26 +
 .../test/java/org/h2/test/db/TestMemoryUsage.java  |   320 +
 .../test/java/org/h2/test/db/TestMergeUsing.java   |   355 +
 .../test/java/org/h2/test/db/TestMultiConn.java    |   246 +
 .../java/org/h2/test/db/TestMultiDimension.java    |   271 +
 .../test/java/org/h2/test/db/TestMultiThread.java  |   554 +
 .../org/h2/test/db/TestMultiThreadedKernel.java    |   183 +
 .../test/java/org/h2/test/db/TestOpenClose.java    |   280 +
 .../java/org/h2/test/db/TestOptimizations.java     |  1207 ++
 .../java/org/h2/test/db/TestOptimizerHints.java    |   174 +
 .../test/java/org/h2/test/db/TestOutOfMemory.java  |   255 +
 .../db/TestPersistentCommonTableExpressions.java   |   276 +
 .../src/test/java/org/h2/test/db/TestPowerOff.java |   358 +
 .../test/java/org/h2/test/db/TestQueryCache.java   |   110 +
 .../src/test/java/org/h2/test/db/TestReadOnly.java |   207 +
 .../java/org/h2/test/db/TestRecursiveQueries.java  |   183 +
 .../src/test/java/org/h2/test/db/TestRights.java   |   749 ++
 .../test/java/org/h2/test/db/TestRowFactory.java   |    65 +
 .../test/java/org/h2/test/db/TestRunscript.java    |   566 +
 .../test/java/org/h2/test/db/TestSQLInjection.java |   123 +
 .../h2/test/db/TestSelectCountNonNullColumn.java   |   108 +
 .../src/test/java/org/h2/test/db/TestSequence.java |   450 +
 .../java/org/h2/test/db/TestSessionsLocks.java     |   150 +
 .../test/java/org/h2/test/db/TestSetCollation.java |   191 +
 .../test/java/org/h2/test/db/TestSpaceReuse.java   |    70 +
 .../src/test/java/org/h2/test/db/TestSpatial.java  |  1204 ++
 .../h2/src/test/java/org/h2/test/db/TestSpeed.java |   164 +
 ...TestSubqueryPerformanceOnLazyExecutionMode.java |   167 +
 .../java/org/h2/test/db/TestSynonymForTable.java   |   334 +
 .../test/java/org/h2/test/db/TestTableEngines.java |  1916 +++
 .../test/java/org/h2/test/db/TestTempTables.java   |   363 +
 .../test/java/org/h2/test/db/TestTransaction.java  |   875 ++
 .../org/h2/test/db/TestTriggersConstraints.java    |   745 ++
 .../java/org/h2/test/db/TestTwoPhaseCommit.java    |   181 +
 .../src/test/java/org/h2/test/db/TestUpgrade.java  |   235 +
 .../test/java/org/h2/test/db/TestUsingIndex.java   |   167 +
 .../h2/src/test/java/org/h2/test/db/TestView.java  |   394 +
 .../java/org/h2/test/db/TestViewAlterTable.java    |   215 +
 .../test/java/org/h2/test/db/TestViewDropView.java |   172 +
 .../h2/src/test/java/org/h2/test/db/package.html   |    14 +
 .../java/org/h2/test/jdbc/TestBatchUpdates.java    |   551 +
 .../org/h2/test/jdbc/TestCallableStatement.java    |   583 +
 .../src/test/java/org/h2/test/jdbc/TestCancel.java |   209 +
 .../test/jdbc/TestConcurrentConnectionUsage.java   |    59 +
 .../test/java/org/h2/test/jdbc/TestConnection.java |   139 +
 .../h2/test/jdbc/TestCustomDataTypesHandler.java   |   595 +
 .../h2/test/jdbc/TestDatabaseEventListener.java    |   303 +
 .../src/test/java/org/h2/test/jdbc/TestDriver.java |    68 +
 .../org/h2/test/jdbc/TestGetGeneratedKeys.java     |  1813 +++
 .../test/java/org/h2/test/jdbc/TestJavaObject.java |   174 +
 .../org/h2/test/jdbc/TestJavaObjectSerializer.java |   156 +
 .../java/org/h2/test/jdbc/TestLimitUpdates.java    |   116 +
 .../src/test/java/org/h2/test/jdbc/TestLobApi.java |   387 +
 .../java/org/h2/test/jdbc/TestManyJdbcObjects.java |   117 +
 .../test/java/org/h2/test/jdbc/TestMetaData.java   |  1382 ++
 .../test/java/org/h2/test/jdbc/TestNativeSQL.java  |   264 +
 .../org/h2/test/jdbc/TestPreparedStatement.java    |  1761 +++
 .../test/java/org/h2/test/jdbc/TestResultSet.java  |  1998 +++
 .../src/test/java/org/h2/test/jdbc/TestSQLXML.java |   217 +
 .../test/java/org/h2/test/jdbc/TestStatement.java  |   559 +
 .../org/h2/test/jdbc/TestTransactionIsolation.java |   110 +
 .../org/h2/test/jdbc/TestUpdatableResultSet.java   |   686 +
 .../h2/test/jdbc/TestUrlJavaObjectSerializer.java  |    97 +
 .../src/test/java/org/h2/test/jdbc/TestZloty.java  |   121 +
 .../h2/src/test/java/org/h2/test/jdbc/package.html |    14 +
 .../src/test/java/org/h2/test/jdbcx/SimpleXid.java |    85 +
 .../java/org/h2/test/jdbcx/TestConnectionPool.java |   256 +
 .../java/org/h2/test/jdbcx/TestDataSource.java     |   215 +
 .../h2/src/test/java/org/h2/test/jdbcx/TestXA.java |   424 +
 .../test/java/org/h2/test/jdbcx/TestXASimple.java  |   161 +
 .../src/test/java/org/h2/test/jdbcx/package.html   |    14 +
 .../src/test/java/org/h2/test/mvcc/TestMvcc1.java  |   384 +
 .../src/test/java/org/h2/test/mvcc/TestMvcc2.java  |   171 +
 .../src/test/java/org/h2/test/mvcc/TestMvcc3.java  |   265 +
 .../src/test/java/org/h2/test/mvcc/TestMvcc4.java  |   138 +
 .../org/h2/test/mvcc/TestMvccMultiThreaded.java    |   182 +
 .../org/h2/test/mvcc/TestMvccMultiThreaded2.java   |   188 +
 .../h2/src/test/java/org/h2/test/mvcc/package.html |    14 +
 .../src/test/java/org/h2/test/otherDatabases.txt   |    75 +
 modules/h2/src/test/java/org/h2/test/package.html  |    14 +
 .../test/java/org/h2/test/poweroff/Listener.java   |    83 +
 .../src/test/java/org/h2/test/poweroff/Test.java   |   169 +
 .../java/org/h2/test/poweroff/TestRecover.java     |   375 +
 .../org/h2/test/poweroff/TestRecoverKillLoop.java  |    67 +
 .../org/h2/test/poweroff/TestReorderWrites.java    |   201 +
 .../test/java/org/h2/test/poweroff/TestWrite.java  |   134 +
 .../test/java/org/h2/test/poweroff/package.html    |    14 +
 .../java/org/h2/test/recover/RecoverLobTest.java   |    81 +
 .../src/test/java/org/h2/test/recover/package.html |    14 +
 .../java/org/h2/test/rowlock/TestRowLocks.java     |   117 +
 .../src/test/java/org/h2/test/rowlock/package.html |    14 +
 .../test/java/org/h2/test/scripts/TestScript.java  |   750 ++
 .../java/org/h2/test/scripts/altertable-fk.sql     |    26 +
 .../org/h2/test/scripts/altertable-index-reuse.sql |    33 +
 .../src/test/java/org/h2/test/scripts/comments.sql |    50 +
 .../java/org/h2/test/scripts/datatypes/array.sql   |    96 +
 .../java/org/h2/test/scripts/datatypes/bigint.sql  |    53 +
 .../java/org/h2/test/scripts/datatypes/binary.sql  |    23 +
 .../java/org/h2/test/scripts/datatypes/blob.sql    |    53 +
 .../java/org/h2/test/scripts/datatypes/boolean.sql |     4 +
 .../java/org/h2/test/scripts/datatypes/char.sql    |    75 +
 .../java/org/h2/test/scripts/datatypes/clob.sql    |    55 +
 .../java/org/h2/test/scripts/datatypes/date.sql    |    33 +
 .../java/org/h2/test/scripts/datatypes/decimal.sql |   107 +
 .../h2/test/scripts/datatypes/decimal_decimal.sql  |    47 +
 .../h2/test/scripts/datatypes/decimal_numeric.sql  |    47 +
 .../java/org/h2/test/scripts/datatypes/double.sql  |    32 +
 .../java/org/h2/test/scripts/datatypes/enum.sql    |   314 +
 .../org/h2/test/scripts/datatypes/geometry.sql     |   100 +
 .../org/h2/test/scripts/datatypes/identity.sql     |     4 +
 .../java/org/h2/test/scripts/datatypes/int.sql     |    15 +
 .../org/h2/test/scripts/datatypes/interval.sql     |   786 ++
 .../java/org/h2/test/scripts/datatypes/other.sql   |     4 +
 .../java/org/h2/test/scripts/datatypes/real.sql    |    31 +
 .../java/org/h2/test/scripts/datatypes/row.sql     |    81 +
 .../org/h2/test/scripts/datatypes/smallint.sql     |    15 +
 .../java/org/h2/test/scripts/datatypes/time.sql    |   113 +
 .../scripts/datatypes/timestamp-with-timezone.sql  |   114 +
 .../org/h2/test/scripts/datatypes/timestamp.sql    |   155 +
 .../java/org/h2/test/scripts/datatypes/tinyint.sql |    15 +
 .../java/org/h2/test/scripts/datatypes/uuid.sql    |    47 +
 .../test/scripts/datatypes/varchar-ignorecase.sql  |    17 +
 .../java/org/h2/test/scripts/datatypes/varchar.sql |    25 +
 .../java/org/h2/test/scripts/ddl/alterTableAdd.sql |   103 +
 .../h2/test/scripts/ddl/alterTableAlterColumn.sql  |    70 +
 .../h2/test/scripts/ddl/alterTableDropColumn.sql   |    98 +
 .../org/h2/test/scripts/ddl/alterTableRename.sql   |    61 +
 .../java/org/h2/test/scripts/ddl/createAlias.sql   |   127 +
 .../org/h2/test/scripts/ddl/createSequence.sql     |   100 +
 .../java/org/h2/test/scripts/ddl/createSynonym.sql |    52 +
 .../java/org/h2/test/scripts/ddl/createTable.sql   |   133 +
 .../java/org/h2/test/scripts/ddl/createTrigger.sql |    53 +
 .../java/org/h2/test/scripts/ddl/createView.sql    |    16 +
 .../java/org/h2/test/scripts/ddl/dropDomain.sql    |    48 +
 .../java/org/h2/test/scripts/ddl/dropIndex.sql     |    43 +
 .../java/org/h2/test/scripts/ddl/dropSchema.sql    |    90 +
 .../java/org/h2/test/scripts/ddl/truncateTable.sql |   125 +
 .../org/h2/test/scripts/default-and-on_update.sql  |   111 +
 .../org/h2/test/scripts/derived-column-names.sql   |    82 +
 .../src/test/java/org/h2/test/scripts/distinct.sql |   190 +
 .../test/java/org/h2/test/scripts/dml/delete.sql   |    23 +
 .../org/h2/test/scripts/dml/error_reporting.sql    |    25 +
 .../test/java/org/h2/test/scripts/dml/insert.sql   |    46 +
 .../java/org/h2/test/scripts/dml/insertIgnore.sql  |    98 +
 .../test/java/org/h2/test/scripts/dml/merge.sql    |   107 +
 .../java/org/h2/test/scripts/dml/mergeUsing.sql    |   324 +
 .../test/java/org/h2/test/scripts/dml/replace.sql  |    44 +
 .../test/java/org/h2/test/scripts/dml/script.sql   |    30 +
 .../test/java/org/h2/test/scripts/dml/select.sql   |   715 ++
 .../src/test/java/org/h2/test/scripts/dml/show.sql |   113 +
 .../test/java/org/h2/test/scripts/dml/table.sql    |    55 +
 .../test/java/org/h2/test/scripts/dml/update.sql   |    65 +
 .../test/java/org/h2/test/scripts/dml/values.sql   |    53 +
 .../src/test/java/org/h2/test/scripts/dml/with.sql |   162 +
 .../h2/src/test/java/org/h2/test/scripts/dual.sql  |    46 +
 .../h2/test/scripts/functions/aggregate/any.sql    |    33 +
 .../test/scripts/functions/aggregate/array-agg.sql |   654 +
 .../h2/test/scripts/functions/aggregate/avg.sql    |    30 +
 .../test/scripts/functions/aggregate/bit-and.sql   |    33 +
 .../h2/test/scripts/functions/aggregate/bit-or.sql |    32 +
 .../h2/test/scripts/functions/aggregate/count.sql  |   155 +
 .../test/scripts/functions/aggregate/envelope.sql  |   133 +
 .../h2/test/scripts/functions/aggregate/every.sql  |    21 +
 .../test/scripts/functions/aggregate/histogram.sql |    23 +
 .../test/scripts/functions/aggregate/listagg.sql   |   124 +
 .../h2/test/scripts/functions/aggregate/max.sql    |    36 +
 .../h2/test/scripts/functions/aggregate/min.sql    |    36 +
 .../h2/test/scripts/functions/aggregate/mode.sql   |    94 +
 .../scripts/functions/aggregate/percentile.sql     |   900 ++
 .../h2/test/scripts/functions/aggregate/rank.sql   |   128 +
 .../scripts/functions/aggregate/selectivity.sql    |     4 +
 .../scripts/functions/aggregate/stddev-pop.sql     |     4 +
 .../scripts/functions/aggregate/stddev-samp.sql    |     4 +
 .../h2/test/scripts/functions/aggregate/sum.sql    |   106 +
 .../test/scripts/functions/aggregate/var-pop.sql   |     4 +
 .../test/scripts/functions/aggregate/var-samp.sql  |     4 +
 .../org/h2/test/scripts/functions/numeric/abs.sql  |    32 +
 .../org/h2/test/scripts/functions/numeric/acos.sql |    16 +
 .../org/h2/test/scripts/functions/numeric/asin.sql |    16 +
 .../org/h2/test/scripts/functions/numeric/atan.sql |    16 +
 .../h2/test/scripts/functions/numeric/atan2.sql    |    16 +
 .../h2/test/scripts/functions/numeric/bitand.sql   |    16 +
 .../h2/test/scripts/functions/numeric/bitget.sql   |     4 +
 .../h2/test/scripts/functions/numeric/bitor.sql    |    16 +
 .../h2/test/scripts/functions/numeric/bitxor.sql   |    16 +
 .../org/h2/test/scripts/functions/numeric/ceil.sql |    16 +
 .../h2/test/scripts/functions/numeric/compress.sql |     4 +
 .../org/h2/test/scripts/functions/numeric/cos.sql  |    16 +
 .../org/h2/test/scripts/functions/numeric/cosh.sql |     4 +
 .../org/h2/test/scripts/functions/numeric/cot.sql  |    16 +
 .../h2/test/scripts/functions/numeric/decrypt.sql  |    10 +
 .../h2/test/scripts/functions/numeric/degrees.sql  |    20 +
 .../h2/test/scripts/functions/numeric/encrypt.sql  |    13 +
 .../org/h2/test/scripts/functions/numeric/exp.sql  |    16 +
 .../h2/test/scripts/functions/numeric/expand.sql   |     4 +
 .../h2/test/scripts/functions/numeric/floor.sql    |    16 +
 .../org/h2/test/scripts/functions/numeric/hash.sql |    25 +
 .../h2/test/scripts/functions/numeric/length.sql   |    40 +
 .../org/h2/test/scripts/functions/numeric/log.sql  |    28 +
 .../org/h2/test/scripts/functions/numeric/mod.sql  |    16 +
 .../h2/test/scripts/functions/numeric/ora-hash.sql |    64 +
 .../org/h2/test/scripts/functions/numeric/pi.sql   |    13 +
 .../h2/test/scripts/functions/numeric/power.sql    |    16 +
 .../h2/test/scripts/functions/numeric/radians.sql  |    20 +
 .../org/h2/test/scripts/functions/numeric/rand.sql |    21 +
 .../test/scripts/functions/numeric/random-uuid.sql |    22 +
 .../h2/test/scripts/functions/numeric/round.sql    |    28 +
 .../test/scripts/functions/numeric/roundmagic.sql  |     4 +
 .../test/scripts/functions/numeric/secure-rand.sql |     4 +
 .../org/h2/test/scripts/functions/numeric/sign.sql |    22 +
 .../org/h2/test/scripts/functions/numeric/sin.sql  |    16 +
 .../org/h2/test/scripts/functions/numeric/sinh.sql |     4 +
 .../org/h2/test/scripts/functions/numeric/sqrt.sql |    16 +
 .../org/h2/test/scripts/functions/numeric/tan.sql  |    16 +
 .../org/h2/test/scripts/functions/numeric/tanh.sql |     4 +
 .../h2/test/scripts/functions/numeric/truncate.sql |    25 +
 .../org/h2/test/scripts/functions/numeric/zero.sql |     4 +
 .../org/h2/test/scripts/functions/string/ascii.sql |    16 +
 .../test/scripts/functions/string/bit-length.sql   |     4 +
 .../org/h2/test/scripts/functions/string/char.sql  |    16 +
 .../h2/test/scripts/functions/string/concat-ws.sql |     4 +
 .../h2/test/scripts/functions/string/concat.sql    |    18 +
 .../test/scripts/functions/string/difference.sql   |    22 +
 .../h2/test/scripts/functions/string/hextoraw.sql  |    16 +
 .../h2/test/scripts/functions/string/insert.sql    |    22 +
 .../org/h2/test/scripts/functions/string/instr.sql |    16 +
 .../org/h2/test/scripts/functions/string/left.sql  |    16 +
 .../h2/test/scripts/functions/string/length.sql    |    31 +
 .../h2/test/scripts/functions/string/locate.sql    |    37 +
 .../org/h2/test/scripts/functions/string/lower.sql |    22 +
 .../org/h2/test/scripts/functions/string/lpad.sql  |     7 +
 .../org/h2/test/scripts/functions/string/ltrim.sql |    16 +
 .../test/scripts/functions/string/octet-length.sql |     4 +
 .../h2/test/scripts/functions/string/position.sql  |    16 +
 .../h2/test/scripts/functions/string/rawtohex.sql  |     4 +
 .../scripts/functions/string/regex-replace.sql     |    55 +
 .../test/scripts/functions/string/regexp-like.sql  |    15 +
 .../h2/test/scripts/functions/string/repeat.sql    |    16 +
 .../h2/test/scripts/functions/string/replace.sql   |    31 +
 .../org/h2/test/scripts/functions/string/right.sql |    16 +
 .../org/h2/test/scripts/functions/string/rpad.sql  |     7 +
 .../org/h2/test/scripts/functions/string/rtrim.sql |    16 +
 .../h2/test/scripts/functions/string/soundex.sql   |    26 +
 .../org/h2/test/scripts/functions/string/space.sql |    16 +
 .../test/scripts/functions/string/stringdecode.sql |     4 +
 .../test/scripts/functions/string/stringencode.sql |    16 +
 .../test/scripts/functions/string/stringtoutf8.sql |     4 +
 .../h2/test/scripts/functions/string/substring.sql |    34 +
 .../h2/test/scripts/functions/string/to-char.sql   |     4 +
 .../h2/test/scripts/functions/string/translate.sql |     4 +
 .../org/h2/test/scripts/functions/string/trim.sql  |    16 +
 .../org/h2/test/scripts/functions/string/upper.sql |    22 +
 .../test/scripts/functions/string/utf8tostring.sql |     7 +
 .../h2/test/scripts/functions/string/xmlattr.sql   |     4 +
 .../h2/test/scripts/functions/string/xmlcdata.sql  |    10 +
 .../test/scripts/functions/string/xmlcomment.sql   |    10 +
 .../h2/test/scripts/functions/string/xmlnode.sql   |    19 +
 .../test/scripts/functions/string/xmlstartdoc.sql  |     7 +
 .../h2/test/scripts/functions/string/xmltext.sql   |    16 +
 .../h2/test/scripts/functions/system/array-cat.sql |    22 +
 .../scripts/functions/system/array-contains.sql    |    56 +
 .../h2/test/scripts/functions/system/array-get.sql |     4 +
 .../test/scripts/functions/system/array-length.sql |     4 +
 .../test/scripts/functions/system/array-slice.sql  |    46 +
 .../test/scripts/functions/system/autocommit.sql   |    13 +
 .../scripts/functions/system/cancel-session.sql    |     4 +
 .../h2/test/scripts/functions/system/casewhen.sql  |    46 +
 .../org/h2/test/scripts/functions/system/cast.sql  |   127 +
 .../h2/test/scripts/functions/system/coalesce.sql  |    16 +
 .../h2/test/scripts/functions/system/convert.sql   |    16 +
 .../h2/test/scripts/functions/system/csvread.sql   |     4 +
 .../h2/test/scripts/functions/system/csvwrite.sql  |     4 +
 .../h2/test/scripts/functions/system/currval.sql   |     4 +
 .../scripts/functions/system/database-path.sql     |     4 +
 .../h2/test/scripts/functions/system/database.sql  |    13 +
 .../h2/test/scripts/functions/system/decode.sql    |    31 +
 .../scripts/functions/system/disk-space-used.sql   |     4 +
 .../h2/test/scripts/functions/system/file-read.sql |     4 +
 .../test/scripts/functions/system/file-write.sql   |     4 +
 .../h2/test/scripts/functions/system/greatest.sql  |     4 +
 .../h2/test/scripts/functions/system/h2version.sql |     4 +
 .../h2/test/scripts/functions/system/identity.sql  |     4 +
 .../h2/test/scripts/functions/system/ifnull.sql    |    22 +
 .../org/h2/test/scripts/functions/system/least.sql |     4 +
 .../test/scripts/functions/system/link-schema.sql  |     4 +
 .../h2/test/scripts/functions/system/lock-mode.sql |     4 +
 .../test/scripts/functions/system/lock-timeout.sql |     4 +
 .../test/scripts/functions/system/memory-free.sql  |     4 +
 .../test/scripts/functions/system/memory-used.sql  |     4 +
 .../h2/test/scripts/functions/system/nextval.sql   |     4 +
 .../h2/test/scripts/functions/system/nullif.sql    |    16 +
 .../org/h2/test/scripts/functions/system/nvl2.sql  |     4 +
 .../h2/test/scripts/functions/system/readonly.sql  |    13 +
 .../h2/test/scripts/functions/system/rownum.sql    |    17 +
 .../h2/test/scripts/functions/system/schema.sql    |     4 +
 .../scripts/functions/system/scope-identity.sql    |     4 +
 .../test/scripts/functions/system/session-id.sql   |     4 +
 .../org/h2/test/scripts/functions/system/set.sql   |    89 +
 .../org/h2/test/scripts/functions/system/table.sql |    58 +
 .../scripts/functions/system/transaction-id.sql    |     4 +
 .../scripts/functions/system/truncate-value.sql    |     4 +
 .../h2/test/scripts/functions/system/unnest.sql    |    88 +
 .../org/h2/test/scripts/functions/system/user.sql  |    19 +
 .../scripts/functions/timeanddate/add_months.sql   |    20 +
 .../scripts/functions/timeanddate/current-time.sql |    31 +
 .../scripts/functions/timeanddate/current_date.sql |    28 +
 .../functions/timeanddate/current_timestamp.sql    |   110 +
 .../scripts/functions/timeanddate/date_trunc.sql   |  1072 ++
 .../test/scripts/functions/timeanddate/dateadd.sql |   112 +
 .../scripts/functions/timeanddate/datediff.sql     |   214 +
 .../scripts/functions/timeanddate/day-of-month.sql |    32 +
 .../scripts/functions/timeanddate/day-of-week.sql  |    13 +
 .../scripts/functions/timeanddate/day-of-year.sql  |    13 +
 .../test/scripts/functions/timeanddate/dayname.sql |    13 +
 .../test/scripts/functions/timeanddate/extract.sql |   218 +
 .../functions/timeanddate/formatdatetime.sql       |    25 +
 .../h2/test/scripts/functions/timeanddate/hour.sql |    35 +
 .../test/scripts/functions/timeanddate/minute.sql  |    13 +
 .../test/scripts/functions/timeanddate/month.sql   |    13 +
 .../scripts/functions/timeanddate/monthname.sql    |    13 +
 .../functions/timeanddate/parsedatetime.sql        |    10 +
 .../test/scripts/functions/timeanddate/quarter.sql |    13 +
 .../test/scripts/functions/timeanddate/second.sql  |    13 +
 .../scripts/functions/timeanddate/truncate.sql     |    16 +
 .../h2/test/scripts/functions/timeanddate/week.sql |    24 +
 .../h2/test/scripts/functions/timeanddate/year.sql |    13 +
 .../org/h2/test/scripts/functions/window/lead.sql  |   153 +
 .../h2/test/scripts/functions/window/nth_value.sql |   263 +
 .../org/h2/test/scripts/functions/window/ntile.sql |   129 +
 .../scripts/functions/window/ratio_to_report.sql   |    38 +
 .../test/scripts/functions/window/row_number.sql   |   192 +
 .../src/test/java/org/h2/test/scripts/indexes.sql  |   352 +
 .../org/h2/test/scripts/information_schema.sql     |   105 +
 .../h2/src/test/java/org/h2/test/scripts/joins.sql |   828 ++
 .../test/java/org/h2/test/scripts/other/help.sql   |    26 +
 .../src/test/java/org/h2/test/scripts/package.html |    14 +
 .../org/h2/test/scripts/query-optimisations.sql    |    19 +
 .../test/java/org/h2/test/scripts/range_table.sql  |   224 +
 .../test/java/org/h2/test/scripts/testScript.sql   |  7957 ++++++++++++
 .../test/java/org/h2/test/scripts/testSimple.sql   |  1416 +++
 .../src/test/java/org/h2/test/scripts/window.sql   |   229 +
 .../java/org/h2/test/server/TestAutoServer.java    |   180 +
 .../src/test/java/org/h2/test/server/TestInit.java |    80 +
 .../java/org/h2/test/server/TestNestedLoop.java    |    68 +
 .../src/test/java/org/h2/test/server/TestWeb.java  |  1198 ++
 .../test/java/org/h2/test/server/WebClient.java    |   153 +
 .../src/test/java/org/h2/test/server/package.html  |    14 +
 .../org/h2/test/store/CalculateHashConstant.java   |   554 +
 .../h2/test/store/CalculateHashConstantLong.java   |   435 +
 .../test/java/org/h2/test/store/FreeSpaceList.java |   217 +
 .../test/java/org/h2/test/store/FreeSpaceTree.java |   206 +
 .../test/java/org/h2/test/store/RowDataType.java   |    95 +
 .../test/java/org/h2/test/store/SequenceMap.java   |    78 +
 .../test/java/org/h2/test/store/TestBenchmark.java |   273 +
 .../org/h2/test/store/TestCacheConcurrentLIRS.java |    94 +
 .../test/java/org/h2/test/store/TestCacheLIRS.java |   574 +
 .../org/h2/test/store/TestCacheLongKeyLIRS.java    |   515 +
 .../java/org/h2/test/store/TestConcurrent.java     |   821 ++
 .../test/java/org/h2/test/store/TestDataUtils.java |   360 +
 .../test/java/org/h2/test/store/TestDefrag.java    |    70 +
 .../test/java/org/h2/test/store/TestFreeSpace.java |   145 +
 .../java/org/h2/test/store/TestImmutableArray.java |   162 +
 .../h2/test/store/TestKillProcessWhileWriting.java |   155 +
 .../test/java/org/h2/test/store/TestMVRTree.java   |   447 +
 .../test/java/org/h2/test/store/TestMVStore.java   |  2099 ++++
 .../org/h2/test/store/TestMVStoreBenchmark.java    |   194 +
 .../h2/test/store/TestMVStoreCachePerformance.java |    97 +
 .../org/h2/test/store/TestMVStoreStopCompact.java  |    78 +
 .../java/org/h2/test/store/TestMVStoreTool.java    |   158 +
 .../java/org/h2/test/store/TestMVTableEngine.java  |  1461 +++
 .../java/org/h2/test/store/TestObjectDataType.java |   186 +
 .../java/org/h2/test/store/TestRandomMapOps.java   |   187 +
 .../java/org/h2/test/store/TestShardedMap.java     |    99 +
 .../test/java/org/h2/test/store/TestSpinLock.java  |   155 +
 .../java/org/h2/test/store/TestStreamStore.java    |   483 +
 .../org/h2/test/store/TestTransactionStore.java    |  1021 ++
 .../src/test/java/org/h2/test/store/package.html   |    14 +
 .../src/test/java/org/h2/test/synth/BnfRandom.java |   203 +
 .../test/java/org/h2/test/synth/OutputCatcher.java |    97 +
 .../java/org/h2/test/synth/TestBtreeIndex.java     |   201 +
 .../org/h2/test/synth/TestConcurrentUpdate.java    |   116 +
 .../test/java/org/h2/test/synth/TestCrashAPI.java  |   550 +
 .../test/java/org/h2/test/synth/TestDiskFull.java  |   139 +
 .../org/h2/test/synth/TestFuzzOptimizations.java   |   274 +
 .../src/test/java/org/h2/test/synth/TestHalt.java  |   354 +
 .../test/java/org/h2/test/synth/TestHaltApp.java   |   183 +
 .../src/test/java/org/h2/test/synth/TestJoin.java  |   309 +
 .../src/test/java/org/h2/test/synth/TestKill.java  |   166 +
 .../java/org/h2/test/synth/TestKillProcess.java    |    92 +
 .../java/org/h2/test/synth/TestKillRestart.java    |   232 +
 .../org/h2/test/synth/TestKillRestartMulti.java    |   330 +
 .../src/test/java/org/h2/test/synth/TestLimit.java |    93 +
 .../java/org/h2/test/synth/TestMultiThreaded.java  |   191 +
 .../java/org/h2/test/synth/TestNestedJoins.java    |   657 +
 .../java/org/h2/test/synth/TestOuterJoins.java     |   592 +
 .../java/org/h2/test/synth/TestPowerOffFs.java     |   102 +
 .../java/org/h2/test/synth/TestPowerOffFs2.java    |   229 +
 .../java/org/h2/test/synth/TestRandomCompare.java  |   308 +
 .../test/java/org/h2/test/synth/TestRandomSQL.java |   122 +
 .../org/h2/test/synth/TestReleaseSelectLock.java   |    84 +
 .../java/org/h2/test/synth/TestSimpleIndex.java    |   177 +
 .../h2/test/synth/TestStringAggCompatibility.java  |    79 +
 .../test/java/org/h2/test/synth/TestThreads.java   |   175 +
 .../src/test/java/org/h2/test/synth/TestTimer.java |   145 +
 .../src/test/java/org/h2/test/synth/package.html   |    14 +
 .../test/java/org/h2/test/synth/sql/Column.java    |   228 +
 .../test/java/org/h2/test/synth/sql/Command.java   |   427 +
 .../java/org/h2/test/synth/sql/DbConnection.java   |   209 +
 .../java/org/h2/test/synth/sql/DbInterface.java    |   118 +
 .../test/java/org/h2/test/synth/sql/DbState.java   |   120 +
 .../java/org/h2/test/synth/sql/Expression.java     |   379 +
 .../src/test/java/org/h2/test/synth/sql/Index.java |    52 +
 .../test/java/org/h2/test/synth/sql/RandomGen.java |   345 +
 .../test/java/org/h2/test/synth/sql/Result.java    |   154 +
 .../src/test/java/org/h2/test/synth/sql/Row.java   |    51 +
 .../src/test/java/org/h2/test/synth/sql/Table.java |   264 +
 .../test/java/org/h2/test/synth/sql/TestSynth.java |   346 +
 .../src/test/java/org/h2/test/synth/sql/Value.java |   338 +
 .../test/java/org/h2/test/synth/sql/package.html   |    14 +
 .../java/org/h2/test/synth/thread/TestMulti.java   |    64 +
 .../org/h2/test/synth/thread/TestMultiNews.java    |   134 +
 .../h2/test/synth/thread/TestMultiNewsSimple.java  |    95 +
 .../org/h2/test/synth/thread/TestMultiOrder.java   |   167 +
 .../org/h2/test/synth/thread/TestMultiThread.java  |    72 +
 .../java/org/h2/test/synth/thread/package.html     |    14 +
 .../java/org/h2/test/todo/TestDiskSpaceLeak.java   |    80 +
 .../java/org/h2/test/todo/TestDropTableLarge.java  |    58 +
 .../h2/test/todo/TestLinkedTableFullCondition.java |    44 +
 .../java/org/h2/test/todo/TestTempTableCrash.java  |    82 +
 .../java/org/h2/test/todo/TestUndoLogLarge.java    |    55 +
 .../src/test/java/org/h2/test/todo/columnAlias.txt |    31 +
 .../test/java/org/h2/test/todo/dateFunctions.txt   |    10 +
 .../h2/src/test/java/org/h2/test/todo/package.html |    14 +
 .../java/org/h2/test/todo/recursiveQueries.txt     |   130 +
 .../java/org/h2/test/todo/supportTemplates.txt     |   251 +
 modules/h2/src/test/java/org/h2/test/todo/todo.txt |    94 +
 .../h2/src/test/java/org/h2/test/todo/tools.sql    |    83 +
 .../src/test/java/org/h2/test/todo/versionlist.txt |    65 +
 .../h2/src/test/java/org/h2/test/trace/Arg.java    |    88 +
 .../h2/src/test/java/org/h2/test/trace/Parser.java |   279 +
 .../h2/src/test/java/org/h2/test/trace/Player.java |   179 +
 .../src/test/java/org/h2/test/trace/Statement.java |   165 +
 .../src/test/java/org/h2/test/trace/package.html   |    14 +
 .../java/org/h2/test/unit/TestAnsCompression.java  |   110 +
 .../java/org/h2/test/unit/TestAutoReconnect.java   |   218 +
 .../h2/test/unit/TestBinaryArithmeticStream.java   |   172 +
 .../test/java/org/h2/test/unit/TestBitStream.java  |   160 +
 .../h2/src/test/java/org/h2/test/unit/TestBnf.java |   177 +
 .../src/test/java/org/h2/test/unit/TestCache.java  |   293 +
 .../java/org/h2/test/unit/TestCharsetCollator.java |    70 +
 .../java/org/h2/test/unit/TestClassLoaderLeak.java |   128 +
 .../java/org/h2/test/unit/TestClearReferences.java |   235 +
 .../test/java/org/h2/test/unit/TestCollation.java  |    53 +
 .../test/java/org/h2/test/unit/TestCompress.java   |   329 +
 .../test/java/org/h2/test/unit/TestConcurrent.java |    91 +
 .../java/org/h2/test/unit/TestConnectionInfo.java  |    97 +
 .../test/java/org/h2/test/unit/TestDataPage.java   |   361 +
 .../src/test/java/org/h2/test/unit/TestDate.java   |   476 +
 .../java/org/h2/test/unit/TestDateIso8601.java     |   282 +
 .../java/org/h2/test/unit/TestDateTimeUtils.java   |   272 +
 .../java/org/h2/test/unit/TestDbException.java     |    55 +
 .../src/test/java/org/h2/test/unit/TestExit.java   |   170 +
 .../src/test/java/org/h2/test/unit/TestFile.java   |   204 +
 .../test/java/org/h2/test/unit/TestFileLock.java   |   163 +
 .../java/org/h2/test/unit/TestFileLockProcess.java |   128 +
 .../org/h2/test/unit/TestFileLockSerialized.java   |   704 ++
 .../test/java/org/h2/test/unit/TestFileSystem.java |   873 ++
 .../h2/src/test/java/org/h2/test/unit/TestFtp.java |    82 +
 .../java/org/h2/test/unit/TestGeometryUtils.java   |   494 +
 .../test/java/org/h2/test/unit/TestIntArray.java   |   112 +
 .../java/org/h2/test/unit/TestIntIntHashMap.java   |    79 +
 .../java/org/h2/test/unit/TestIntPerfectHash.java  |   109 +
 .../test/java/org/h2/test/unit/TestInterval.java   |   616 +
 .../h2/src/test/java/org/h2/test/unit/TestJmx.java |   197 +
 .../test/java/org/h2/test/unit/TestKeywords.java   |   175 +
 .../org/h2/test/unit/TestLocalResultFactory.java   |    66 +
 .../src/test/java/org/h2/test/unit/TestLocale.java |    88 +
 .../java/org/h2/test/unit/TestMVTempResult.java    |    81 +
 .../test/java/org/h2/test/unit/TestMathUtils.java  |    65 +
 .../java/org/h2/test/unit/TestMemoryUnmapper.java  |    51 +
 .../src/test/java/org/h2/test/unit/TestMode.java   |    90 +
 .../java/org/h2/test/unit/TestModifyOnWrite.java   |    78 +
 .../org/h2/test/unit/TestMultiThreadedKernel.java  |    90 +
 .../test/java/org/h2/test/unit/TestNetUtils.java   |   274 +
 .../h2/test/unit/TestObjectDeserialization.java    |    76 +
 .../test/java/org/h2/test/unit/TestOldVersion.java |   171 +
 .../test/java/org/h2/test/unit/TestOverflow.java   |   130 +
 .../test/java/org/h2/test/unit/TestPageStore.java  |   910 ++
 .../org/h2/test/unit/TestPageStoreCoverage.java    |   270 +
 .../test/java/org/h2/test/unit/TestPattern.java    |   124 +
 .../java/org/h2/test/unit/TestPerfectHash.java     |   329 +
 .../test/java/org/h2/test/unit/TestPgServer.java   |   578 +
 .../src/test/java/org/h2/test/unit/TestReader.java |    43 +
 .../test/java/org/h2/test/unit/TestRecovery.java   |   371 +
 .../src/test/java/org/h2/test/unit/TestReopen.java |   201 +
 .../test/java/org/h2/test/unit/TestSampleApps.java |   151 +
 .../java/org/h2/test/unit/TestScriptReader.java    |   199 +
 .../test/java/org/h2/test/unit/TestSecurity.java   |   296 +
 .../test/java/org/h2/test/unit/TestServlet.java    |   402 +
 .../src/test/java/org/h2/test/unit/TestShell.java  |   239 +
 .../src/test/java/org/h2/test/unit/TestSort.java   |   166 +
 .../test/java/org/h2/test/unit/TestStreams.java    |   121 +
 .../java/org/h2/test/unit/TestStringCache.java     |   180 +
 .../java/org/h2/test/unit/TestStringUtils.java     |   302 +
 .../h2/test/unit/TestTimeStampWithTimeZone.java    |   253 +
 .../src/test/java/org/h2/test/unit/TestTools.java  |  1343 ++
 .../java/org/h2/test/unit/TestTraceSystem.java     |    76 +
 .../src/test/java/org/h2/test/unit/TestUtils.java  |   325 +
 .../src/test/java/org/h2/test/unit/TestValue.java  |   621 +
 .../java/org/h2/test/unit/TestValueMemory.java     |   351 +
 .../h2/src/test/java/org/h2/test/unit/package.html |    14 +
 .../test/java/org/h2/test/utils/AssertThrows.java  |   121 +
 .../test/java/org/h2/test/utils/FilePathDebug.java |   336 +
 .../org/h2/test/utils/FilePathReorderWrites.java   |   401 +
 .../java/org/h2/test/utils/FilePathUnstable.java   |   307 +
 .../java/org/h2/test/utils/MemoryFootprint.java    |    84 +
 .../test/java/org/h2/test/utils/OutputCatcher.java |   218 +
 .../java/org/h2/test/utils/ProxyCodeGenerator.java |   360 +
 .../java/org/h2/test/utils/ResultVerifier.java     |    26 +
 .../java/org/h2/test/utils/SelfDestructor.java     |   108 +
 .../java/org/h2/test/utils/TestColumnNamer.java    |    57 +
 .../src/test/java/org/h2/test/utils/package.html   |    14 +
 modules/h2/src/test/tools/WEB-INF/console.html     |    15 +
 modules/h2/src/test/tools/WEB-INF/web.xml          |    67 +
 modules/h2/src/test/tools/org/h2/build/Build.java  |  1192 ++
 .../h2/src/test/tools/org/h2/build/BuildBase.java  |  1108 ++
 .../test/tools/org/h2/build/code/AbbaDetect.java   |   101 +
 .../test/tools/org/h2/build/code/CheckJavadoc.java |   130 +
 .../tools/org/h2/build/code/CheckTextFiles.java    |   313 +
 .../src/test/tools/org/h2/build/code/package.html  |    14 +
 .../test/tools/org/h2/build/doc/BnfRailroad.java   |   175 +
 .../src/test/tools/org/h2/build/doc/BnfSyntax.java |   114 +
 .../test/tools/org/h2/build/doc/FileConverter.java |    65 +
 .../test/tools/org/h2/build/doc/GenerateDoc.java   |   298 +
 .../test/tools/org/h2/build/doc/GenerateHelp.java  |    75 +
 .../test/tools/org/h2/build/doc/LinkChecker.java   |   276 +
 .../src/test/tools/org/h2/build/doc/MergeDocs.java |   130 +
 .../tools/org/h2/build/doc/RailroadImages.java     |   130 +
 .../test/tools/org/h2/build/doc/SpellChecker.java  |   305 +
 .../test/tools/org/h2/build/doc/UploadBuild.java   |   261 +
 .../src/test/tools/org/h2/build/doc/WebSite.java   |   168 +
 .../test/tools/org/h2/build/doc/XMLChecker.java    |   149 +
 .../src/test/tools/org/h2/build/doc/XMLParser.java |   511 +
 .../test/tools/org/h2/build/doc/buildNewsfeed.sql  |    31 +
 .../src/test/tools/org/h2/build/doc/dictionary.txt |   813 ++
 .../src/test/tools/org/h2/build/doc/package.html   |    14 +
 .../src/test/tools/org/h2/build/doclet/Doclet.java |   590 +
 .../tools/org/h2/build/doclet/ResourceDoclet.java  |   132 +
 .../test/tools/org/h2/build/doclet/package.html    |    14 +
 .../org/h2/build/i18n/PrepareTranslation.java      |   542 +
 .../tools/org/h2/build/i18n/PropertiesToUTF8.java  |   158 +
 .../src/test/tools/org/h2/build/i18n/package.html  |    14 +
 .../tools/org/h2/build/indexer/HtmlConverter.java  |   190 +
 .../test/tools/org/h2/build/indexer/Indexer.java   |   369 +
 .../src/test/tools/org/h2/build/indexer/Page.java  |    49 +
 .../test/tools/org/h2/build/indexer/Weight.java    |    43 +
 .../src/test/tools/org/h2/build/indexer/Word.java  |    82 +
 .../test/tools/org/h2/build/indexer/package.html   |    14 +
 .../h2/src/test/tools/org/h2/build/package.html    |    14 +
 .../src/test/tools/org/h2/dev/cache/CacheLIRS.java |  1081 ++
 .../src/test/tools/org/h2/dev/cache/package.html   |    14 +
 .../test/tools/org/h2/dev/cluster/ShardedMap.java  |   335 +
 .../src/test/tools/org/h2/dev/cluster/package.html |    14 +
 .../src/test/tools/org/h2/dev/fs/ArchiveTool.java  |  1200 ++
 .../test/tools/org/h2/dev/fs/ArchiveToolStore.java |   532 +
 .../src/test/tools/org/h2/dev/fs/FilePathZip2.java |   447 +
 .../h2/src/test/tools/org/h2/dev/fs/FileShell.java |   516 +
 .../h2/src/test/tools/org/h2/dev/fs/package.html   |    14 +
 .../src/test/tools/org/h2/dev/ftp/FtpClient.java   |   477 +
 .../h2/src/test/tools/org/h2/dev/ftp/package.html  |    14 +
 .../tools/org/h2/dev/ftp/server/FtpControl.java    |   420 +
 .../test/tools/org/h2/dev/ftp/server/FtpData.java  |   145 +
 .../test/tools/org/h2/dev/ftp/server/FtpEvent.java |    48 +
 .../org/h2/dev/ftp/server/FtpEventListener.java    |    34 +
 .../tools/org/h2/dev/ftp/server/FtpServer.java     |   572 +
 .../test/tools/org/h2/dev/ftp/server/package.html  |    14 +
 .../test/tools/org/h2/dev/hash/IntPerfectHash.java |   409 +
 .../tools/org/h2/dev/hash/MinimalPerfectHash.java  |   783 ++
 .../test/tools/org/h2/dev/hash/PerfectHash.java    |   258 +
 .../h2/src/test/tools/org/h2/dev/hash/package.html |    14 +
 .../test/tools/org/h2/dev/mail/SendMail.java.txt   |    45 +
 .../test/tools/org/h2/dev/net/PgTcpRedirect.java   |   559 +
 .../h2/src/test/tools/org/h2/dev/net/package.html  |    14 +
 .../org/h2/dev/security/SecureKeyStoreBuilder.java |   106 +
 .../test/tools/org/h2/dev/security/package.html    |    14 +
 .../org/h2/dev/sort/InPlaceStableMergeSort.java    |   322 +
 .../org/h2/dev/sort/InPlaceStableQuicksort.java    |   310 +
 .../h2/src/test/tools/org/h2/dev/sort/package.html |    14 +
 .../test/tools/org/h2/dev/util/AnsCompression.java |   188 +
 .../src/test/tools/org/h2/dev/util/ArrayUtils.java |    65 +
 .../h2/src/test/tools/org/h2/dev/util/Base64.java  |   234 +
 .../org/h2/dev/util/BinaryArithmeticStream.java    |   269 +
 .../src/test/tools/org/h2/dev/util/BitStream.java  |   298 +
 .../org/h2/dev/util/ConcurrentLinkedList.java      |   153 +
 .../h2/dev/util/ConcurrentLinkedListWithTail.java  |   155 +
 .../test/tools/org/h2/dev/util/ConcurrentRing.java |   155 +
 .../tools/org/h2/dev/util/FileContentHash.java     |   171 +
 .../src/test/tools/org/h2/dev/util/FileViewer.java |   214 +
 .../test/tools/org/h2/dev/util/ImmutableArray.java |   177 +
 .../tools/org/h2/dev/util/ImmutableArray2.java     |   215 +
 .../tools/org/h2/dev/util/ImmutableArray3.java     |   457 +
 .../tools/org/h2/dev/util/JavaProcessKiller.java   |   126 +
 .../h2/src/test/tools/org/h2/dev/util/Migrate.java |   249 +
 .../tools/org/h2/dev/util/ReaderInputStream.java   |    67 +
 .../tools/org/h2/dev/util/RemovePasswords.java     |    85 +
 .../tools/org/h2/dev/util/ThreadDumpCleaner.java   |   144 +
 .../tools/org/h2/dev/util/ThreadDumpFilter.java    |    42 +
 .../tools/org/h2/dev/util/ThreadDumpInliner.java   |    55 +
 .../h2/src/test/tools/org/h2/dev/util/package.html |    14 +
 .../h2/src/test/tools/org/h2/java/ClassObj.java    |   463 +
 modules/h2/src/test/tools/org/h2/java/Expr.java    |   736 ++
 modules/h2/src/test/tools/org/h2/java/Ignore.java  |    13 +
 .../h2/src/test/tools/org/h2/java/JavaParser.java  |  1848 +++
 modules/h2/src/test/tools/org/h2/java/Local.java   |    14 +
 .../h2/src/test/tools/org/h2/java/Statement.java   |   504 +
 modules/h2/src/test/tools/org/h2/java/Test.java    |    92 +
 modules/h2/src/test/tools/org/h2/java/TestApp.java |    58 +
 .../src/test/tools/org/h2/java/io/PrintStream.java |    24 +
 .../h2/src/test/tools/org/h2/java/io/package.html  |    14 +
 .../src/test/tools/org/h2/java/lang/Integer.java   |    61 +
 .../h2/src/test/tools/org/h2/java/lang/Long.java   |    62 +
 .../h2/src/test/tools/org/h2/java/lang/Math.java   |    24 +
 .../h2/src/test/tools/org/h2/java/lang/Object.java |    27 +
 .../h2/src/test/tools/org/h2/java/lang/String.java |   222 +
 .../test/tools/org/h2/java/lang/StringBuilder.java |    66 +
 .../h2/src/test/tools/org/h2/java/lang/System.java |    77 +
 .../src/test/tools/org/h2/java/lang/package.html   |    14 +
 modules/h2/src/test/tools/org/h2/java/package.html |    14 +
 .../h2/src/test/tools/org/h2/java/util/Arrays.java |    74 +
 .../src/test/tools/org/h2/java/util/package.html   |    14 +
 .../h2/src/test/tools/org/h2/jcr/Railroads.java    |   129 +
 modules/h2/src/test/tools/org/h2/jcr/help.csv      |    99 +
 modules/h2/src/test/tools/org/h2/jcr/jcr-sql2.html |    72 +
 modules/h2/src/test/tools/org/h2/jcr/package.html  |    14 +
 .../h2/src/test/tools/org/h2/jcr/stylesheet.css    |   340 +
 modules/hibernate-4.2/pom.xml                      |     6 +-
 modules/hibernate-5.1/pom.xml                      |     6 +-
 modules/hibernate-5.3/pom.xml                      |     6 +-
 modules/indexing/pom.xml                           |     6 +-
 .../processors/query/h2/CommandProcessor.java      |    24 +-
 .../processors/query/h2/H2TableDescriptor.java     |     2 +-
 .../internal/processors/query/h2/H2Utils.java      |     5 +-
 .../processors/query/h2/IgniteH2Indexing.java      |     6 +-
 .../query/h2/affinity/PartitionExtractor.java      |    14 +-
 .../query/h2/database/H2PkHashIndex.java           |    21 +-
 .../processors/query/h2/database/H2Tree.java       |     2 +-
 .../query/h2/database/H2TreeClientIndex.java       |    66 +-
 .../processors/query/h2/database/H2TreeIndex.java  |   196 +-
 .../query/h2/database/H2TreeIndexBase.java         |   110 +-
 .../query/h2/database/InlineIndexHelper.java       |    44 +-
 .../processors/query/h2/dml/DmlAstUtils.java       |     4 +-
 .../internal/processors/query/h2/dml/DmlUtils.java |     3 +-
 .../processors/query/h2/dml/UpdatePlanBuilder.java |     2 +-
 .../query/h2/opt/GridH2DefaultTableEngine.java     |     4 +-
 .../processors/query/h2/opt/GridH2IndexBase.java   |    32 +-
 .../processors/query/h2/opt/GridH2MetaTable.java   |    17 +-
 .../processors/query/h2/opt/GridH2ProxyIndex.java  |     8 +-
 .../query/h2/opt/GridH2ProxySpatialIndex.java      |     9 +-
 .../processors/query/h2/opt/GridH2Table.java       |     3 +-
 .../query/h2/opt/GridH2ValueCacheObject.java       |    17 +-
 .../processors/query/h2/opt/H2CacheRow.java        |     6 +
 .../processors/query/h2/opt/H2PlainRow.java        |     9 +
 .../processors/query/h2/opt/H2PlainRowPair.java    |     9 +
 .../processors/query/h2/opt/H2PlainRowSingle.java  |     9 +
 .../internal/processors/query/h2/opt/H2Row.java    |    38 +-
 .../processors/query/h2/opt/H2ScanIndex.java       |    22 +-
 .../processors/query/h2/opt/H2TableScanIndex.java  |    10 +-
 .../query/h2/opt/join/CollocationModel.java        |     4 +-
 .../query/h2/opt/join/DistributedLookupBatch.java  |     1 +
 .../query/h2/sql/GridSqlAggregateFunction.java     |    22 +-
 .../processors/query/h2/sql/GridSqlAlias.java      |     8 +-
 .../processors/query/h2/sql/GridSqlArray.java      |    16 +-
 .../processors/query/h2/sql/GridSqlColumn.java     |    26 +-
 .../processors/query/h2/sql/GridSqlConst.java      |     2 +-
 .../query/h2/sql/GridSqlCreateIndex.java           |     8 +-
 .../processors/query/h2/sql/GridSqlDelete.java     |     3 +-
 .../processors/query/h2/sql/GridSqlDropIndex.java  |     4 +-
 .../processors/query/h2/sql/GridSqlFunction.java   |    23 +-
 .../query/h2/sql/GridSqlFunctionType.java          |     2 +-
 .../processors/query/h2/sql/GridSqlInsert.java     |    33 +-
 .../processors/query/h2/sql/GridSqlJoin.java       |     5 +-
 .../processors/query/h2/sql/GridSqlKeyword.java    |     2 +-
 .../processors/query/h2/sql/GridSqlMerge.java      |    46 +-
 .../processors/query/h2/sql/GridSqlOperation.java  |     2 +-
 .../query/h2/sql/GridSqlOperationType.java         |     7 +-
 .../processors/query/h2/sql/GridSqlParameter.java  |     2 +-
 .../query/h2/sql/GridSqlPlaceholder.java           |     2 +-
 .../processors/query/h2/sql/GridSqlQuery.java      |    30 +-
 .../query/h2/sql/GridSqlQueryParser.java           |   153 +-
 .../processors/query/h2/sql/GridSqlSelect.java     |    27 +-
 .../processors/query/h2/sql/GridSqlStatement.java  |     2 +-
 .../processors/query/h2/sql/GridSqlSubquery.java   |     2 +-
 .../processors/query/h2/sql/GridSqlTable.java      |    14 +-
 .../processors/query/h2/sql/GridSqlType.java       |    12 +-
 .../processors/query/h2/sql/GridSqlUnion.java      |     5 +-
 .../processors/query/h2/sql/GridSqlUpdate.java     |    14 +-
 .../processors/query/h2/sql/GridSqlValueRow.java   |    49 +
 .../processors/query/h2/sys/SqlSystemIndex.java    |    17 +-
 .../query/h2/twostep/GridReduceQueryExecutor.java  |    15 +-
 .../processors/query/h2/twostep/ReduceIndex.java   |    16 +-
 .../query/h2/twostep/ReduceIndexSorted.java        |     5 +-
 .../query/h2/twostep/ReduceIndexUnsorted.java      |    17 +-
 .../processors/query/h2/twostep/ReduceTable.java   |     6 +-
 .../query/h2/twostep/ReduceTableWrapper.java       |     9 +-
 .../query/h2/twostep/msg/GridH2Array.java          |     2 +-
 .../query/h2/twostep/msg/GridH2Boolean.java        |     2 +-
 .../query/h2/twostep/msg/GridH2Byte.java           |     2 +-
 .../query/h2/twostep/msg/GridH2Bytes.java          |     2 +-
 .../query/h2/twostep/msg/GridH2Date.java           |     2 +-
 .../query/h2/twostep/msg/GridH2Decimal.java        |     2 +-
 .../query/h2/twostep/msg/GridH2Double.java         |     2 +-
 .../query/h2/twostep/msg/GridH2Float.java          |     2 +-
 .../query/h2/twostep/msg/GridH2Geometry.java       |     2 +-
 .../query/h2/twostep/msg/GridH2Integer.java        |     2 +-
 .../query/h2/twostep/msg/GridH2JavaObject.java     |     2 +-
 .../query/h2/twostep/msg/GridH2Long.java           |     2 +-
 .../query/h2/twostep/msg/GridH2Short.java          |     2 +-
 .../query/h2/twostep/msg/GridH2String.java         |     6 +-
 .../query/h2/twostep/msg/GridH2Time.java           |     2 +-
 .../query/h2/twostep/msg/GridH2Timestamp.java      |     2 +-
 .../query/h2/twostep/msg/GridH2Uuid.java           |     2 +-
 .../h2/twostep/msg/GridH2ValueMessageFactory.java  |     2 +-
 .../cache/IgniteCrossCachesJoinsQueryTest.java     |    13 +-
 .../index/ComplexPrimaryKeyUnwrapSelfTest.java     |     4 +-
 .../cache/index/DynamicColumnsAbstractTest.java    |     4 +-
 .../H2DynamicColumnsAbstractBasicSelfTest.java     |     9 +-
 .../index/H2DynamicIndexAbstractSelfTest.java      |     4 +-
 .../cache/index/H2DynamicTableSelfTest.java        |     9 +-
 .../mvcc/CacheMvccSelectForUpdateQueryTest.java    |     6 +-
 .../query/IgniteSqlKeyValueFieldsTest.java         |     4 +-
 .../query/IgniteSqlSplitterSelfTest.java           |     8 +-
 .../query/h2/database/InlineIndexHelperTest.java   |    11 +-
 .../query/h2/sql/GridQueryParsingTest.java         |     9 +-
 modules/ml/pom.xml                                 |     7 +-
 .../platforms/cpp/odbc-test/src/queries_test.cpp   |     2 +-
 modules/platforms/dotnet/build.ps1                 |     4 +-
 modules/spring/pom.xml                             |     7 +-
 parent/pom.xml                                     |    23 +-
 pom.xml                                            |     1 +
 1709 files changed, 417482 insertions(+), 694 deletions(-)

diff --git a/modules/clients/pom.xml b/modules/clients/pom.xml
index 05c40d9..301b901 100644
--- a/modules/clients/pom.xml
+++ b/modules/clients/pom.xml
@@ -112,9 +112,9 @@
         </dependency>
 
         <dependency>
-            <groupId>com.h2database</groupId>
-            <artifactId>h2</artifactId>
-            <version>${h2.version}</version>
+            <groupId>org.gridgain</groupId>
+            <artifactId>ignite-h2</artifactId>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDynamicIndexAbstractSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDynamicIndexAbstractSelfTest.java
index 019efc2..ee9f4c9 100644
--- a/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDynamicIndexAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/internal/jdbc2/JdbcDynamicIndexAbstractSelfTest.java
@@ -151,10 +151,10 @@ public abstract class JdbcDynamicIndexAbstractSelfTest extends JdbcAbstractDmlSt
 
             assertEquals(F.asList(
                 Collections.singletonList("SELECT\n" +
-                    "    ID\n" +
-                    "FROM \"default\".PERSON\n" +
-                    "    /* \"default\".IDX: ID = 5 */\n" +
-                    "WHERE ID = 5")
+                    "    \"ID\"\n" +
+                    "FROM \"default\".\"PERSON\"\n" +
+                    "    /* default.IDX: ID = 5 */\n" +
+                    "WHERE \"ID\" = 5")
             ), locRes);
         }
 
@@ -209,10 +209,10 @@ public abstract class JdbcDynamicIndexAbstractSelfTest extends JdbcAbstractDmlSt
 
             assertEquals(F.asList(
                 Collections.singletonList("SELECT\n" +
-                    "    ID\n" +
-                    "FROM \"default\".PERSON\n" +
-                    "    /* \"default\".PERSON.__SCAN_ */\n" +
-                    "WHERE ID = 5")
+                    "    \"ID\"\n" +
+                    "FROM \"default\".\"PERSON\"\n" +
+                    "    /* default.PERSON.__SCAN_ */\n" +
+                    "WHERE \"ID\" = 5")
             ), locRes);
         }
 
diff --git a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinDynamicIndexAbstractSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinDynamicIndexAbstractSelfTest.java
index 664e45d..7f2df47 100644
--- a/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinDynamicIndexAbstractSelfTest.java
+++ b/modules/clients/src/test/java/org/apache/ignite/jdbc/thin/JdbcThinDynamicIndexAbstractSelfTest.java
@@ -158,10 +158,10 @@ public abstract class JdbcThinDynamicIndexAbstractSelfTest extends JdbcThinAbstr
 
             assertEquals(F.asList(
                 Collections.singletonList("SELECT\n" +
-                    "    ID\n" +
-                    "FROM \"" + DEFAULT_CACHE_NAME + "\".PERSON\n" +
-                    "    /* \"" + DEFAULT_CACHE_NAME + "\".IDX: ID = 5 */\n" +
-                    "WHERE ID = 5")
+                    "    \"ID\"\n" +
+                    "FROM \"" + DEFAULT_CACHE_NAME + "\".\"PERSON\"\n" +
+                    "    /* " + DEFAULT_CACHE_NAME + ".IDX: ID = 5 */\n" +
+                    "WHERE \"ID\" = 5")
             ), locRes);
         }
 
@@ -220,10 +220,10 @@ public abstract class JdbcThinDynamicIndexAbstractSelfTest extends JdbcThinAbstr
 
             assertEquals(F.asList(
                 Collections.singletonList("SELECT\n" +
-                    "    ID\n" +
-                    "FROM \"" + DEFAULT_CACHE_NAME + "\".PERSON\n" +
-                    "    /* \"" + DEFAULT_CACHE_NAME + "\".PERSON.__SCAN_ */\n" +
-                    "WHERE ID = 5")
+                    "    \"ID\"\n" +
+                    "FROM \"" + DEFAULT_CACHE_NAME + "\".\"PERSON\"\n" +
+                    "    /* " + DEFAULT_CACHE_NAME + ".PERSON.__SCAN_ */\n" +
+                    "WHERE \"ID\" = 5")
             ), locRes);
         }
 
diff --git a/modules/core/pom.xml b/modules/core/pom.xml
index e73f080..3e55208 100644
--- a/modules/core/pom.xml
+++ b/modules/core/pom.xml
@@ -116,9 +116,9 @@
         </dependency>
 
         <dependency>
-            <groupId>com.h2database</groupId>
-            <artifactId>h2</artifactId>
-            <version>${h2.version}</version>
+            <groupId>org.gridgain</groupId>
+            <artifactId>ignite-h2</artifactId>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
 
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
index 140aeb5..e7c0d08 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
@@ -80,7 +80,7 @@ public class H2CacheStoreStrategy implements TestCacheStoreStrategy {
         Server srv = null;
 
         try {
-            srv = Server.createTcpServer().start();
+            srv = Server.createTcpServer("-ifNotExists").start();
 
             port = srv.getPort();
 
diff --git a/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java b/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
index 012e0ed..d339132 100644
--- a/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
+++ b/modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2SpatialIndex.java
@@ -18,7 +18,6 @@ package org.apache.ignite.internal.processors.query.h2.opt;
 
 import java.util.ArrayList;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
@@ -34,6 +33,7 @@ import org.apache.ignite.internal.util.GridCursorIteratorWrapper;
 import org.apache.ignite.internal.util.lang.GridCursor;
 import org.apache.ignite.spi.indexing.IndexingQueryCacheFilter;
 import org.apache.ignite.spi.indexing.IndexingQueryFilter;
+import org.h2.command.dml.AllColumnsForPlan;
 import org.h2.engine.Session;
 import org.h2.index.Cursor;
 import org.h2.index.IndexLookupBatch;
@@ -47,7 +47,6 @@ import org.h2.mvstore.rtree.MVRTreeMap;
 import org.h2.mvstore.rtree.SpatialKey;
 import org.h2.result.SearchRow;
 import org.h2.result.SortOrder;
-import org.h2.table.Column;
 import org.h2.table.IndexColumn;
 import org.h2.table.TableFilter;
 import org.h2.value.Value;
@@ -104,8 +103,25 @@ public class GridH2SpatialIndex extends GridH2IndexBase implements SpatialIndex
      */
     @SuppressWarnings("unchecked")
     public GridH2SpatialIndex(GridH2Table tbl, String idxName, int segmentsCnt, IndexColumn... cols) {
-        super(tbl);
+        super(tbl, idxName,  validateColumns(cols), IndexType.createNonUnique(false, false, true));
 
+        // Index in memory
+        store = MVStore.open(null);
+
+        segments = new MVRTreeMap[segmentsCnt];
+
+        for (int i = 0; i < segmentsCnt; i++)
+            segments[i] = store.openMap("spatialIndex-" + i, new MVRTreeMap.Builder<Long>());
+
+        ctx = tbl.rowDescriptor().context();
+    }
+
+    /**
+     * Validate if index is applicable for given columns.
+     * @return {@code cols} as is.
+     * @throws DbException If parameter is invalid.
+     */
+    private static IndexColumn[] validateColumns(IndexColumn[] cols) {
         if (cols.length > 1)
             throw DbException.getUnsupportedException("can only do one column");
 
@@ -118,24 +134,12 @@ public class GridH2SpatialIndex extends GridH2IndexBase implements SpatialIndex
         if ((cols[0].sortType & SortOrder.NULLS_LAST) != 0)
             throw DbException.getUnsupportedException("cannot do nulls last");
 
-        initBaseIndex(tbl, 0, idxName, cols, IndexType.createNonUnique(false, false, true));
-
-        table = tbl;
-
-        if (cols[0].column.getType() != Value.GEOMETRY) {
+        if (cols[0].column.getType().getValueType() != Value.GEOMETRY) {
             throw DbException.getUnsupportedException("spatial index on non-geometry column, " +
                 cols[0].column.getCreateSQL());
         }
 
-        // Index in memory
-        store = MVStore.open(null);
-
-        segments = new MVRTreeMap[segmentsCnt];
-
-        for (int i = 0; i < segmentsCnt; i++)
-            segments[i] = store.openMap("spatialIndex-" + i, new MVRTreeMap.Builder<Long>());
-
-        ctx = tbl.rowDescriptor().context();
+        return cols;
     }
 
     /** {@inheritDoc} */
@@ -295,7 +299,7 @@ public class GridH2SpatialIndex extends GridH2IndexBase implements SpatialIndex
 
     /** {@inheritDoc} */
     @Override public double getCost(Session ses, int[] masks, TableFilter[] filters, int filter,
-        SortOrder sortOrder, HashSet<Column> cols) {
+        SortOrder sortOrder, AllColumnsForPlan cols) {
         return SpatialTreeIndex.getCostRangeIndex(masks, columns) / 10;
     }
 
diff --git a/modules/h2/README.txt b/modules/h2/README.txt
new file mode 100644
index 0000000..c39afaf
--- /dev/null
+++ b/modules/h2/README.txt
@@ -0,0 +1,32 @@
+GridGain Ignite H2 Module
+-----------------------------
+
+GridGain Ignite H2 module provides SQL engine for ignite indexing.
+
+To enable H2 module when starting a standalone node, move 'optional/ignite-h2' folder to
+'libs' folder before running 'ignite.{sh|bat}' script. The content of the module folder will
+be added to classpath in this case.
+
+Importing h2 Module In Maven Project
+------------------------------------------
+
+If you are using Maven to manage dependencies of your project, you can add H2 module
+dependency like this (replace '${ignite.version}' with actual Ignite version you are
+interested in):
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+                        http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    ...
+    <dependencies>
+        ...
+        <dependency>
+            <groupId>org.gridgain</groupId>
+            <artifactId>ignite-h2</artifactId>
+            <version>${ignite.version}</version>
+        </dependency>
+        ...
+    </dependencies>
+    ...
+</project>
diff --git a/modules/h2/licenses/EPL-1.0.txt b/modules/h2/licenses/EPL-1.0.txt
new file mode 100644
index 0000000..3fa0083
--- /dev/null
+++ b/modules/h2/licenses/EPL-1.0.txt
@@ -0,0 +1,86 @@
+Eclipse Public License - v 1.0
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+1. DEFINITIONS
+
+"Contribution" means:
+
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
+
+b) in the case of each subsequent Contributor:
+
+i) changes to the Program, and
+
+ii) additions to the Program;
+
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
+
+"Contributor" means any person or entity that distributes the Program.
+
+"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
+
+"Program" means the Contributions distributed in accordance with this Agreement.
+
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
+
+2. GRANT OF RIGHTS
+
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
+
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contributio [...]
+
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted here [...]
+
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
+
+3. REQUIREMENTS
+
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
+
+a) it complies with the terms and conditions of this Agreement; and
+
+b) its license agreement:
+
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
+
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
+
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
+
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
+
+When the Program is made available in source code form:
+
+a) it must be made available under this Agreement; and
+
+b) a copy of this Agreement must be included with each copy of the Program.
+
+Contributors may not remove or alter any copyright notices contained within the Program.
+
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
+
+4. COMMERCIAL DISTRIBUTION
+
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Con [...]
+
+For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims  [...]
+
+5. NO WARRANTY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Ag [...]
+
+6. DISCLAIMER OF LIABILITY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF [...]
+
+7. GENERAL
+
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+
+If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
+
+All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Reci [...]
+
+Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respons [...]
+
+This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
\ No newline at end of file
diff --git a/modules/h2/licenses/MPL-2.0.txt b/modules/h2/licenses/MPL-2.0.txt
new file mode 100644
index 0000000..4fb8136
--- /dev/null
+++ b/modules/h2/licenses/MPL-2.0.txt
@@ -0,0 +1,151 @@
+Mozilla Public License Version 2.0
+
+1. Definitions
+1.1. “Contributor”
+means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.
+
+1.2. “Contributor Version”
+means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.
+
+1.3. “Contribution”
+means Covered Software of a particular Contributor.
+
+1.4. “Covered Software”
+means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.
+
+1.5. “Incompatible With Secondary Licenses”
+means
+
+that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or
+
+that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.
+
+1.6. “Executable Form”
+means any form of the work other than Source Code Form.
+
+1.7. “Larger Work”
+means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.
+
+1.8. “License”
+means this document.
+
+1.9. “Licensable”
+means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.
+
+1.10. “Modifications”
+means any of the following:
+
+any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or
+
+any new file in Source Code Form that contains any Covered Software.
+
+1.11. “Patent Claims” of a Contributor
+means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.
+
+1.12. “Secondary License”
+means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.
+
+1.13. “Source Code Form”
+means the form of the work preferred for making modifications.
+
+1.14. “You” (or “Your”)
+means an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
+
+2. License Grants and Conditions
+2.1. Grants
+Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:
+
+under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and
+
+under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.
+
+2.2. Effective Date
+The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:
+
+for any code that a Contributor has removed from Covered Software; or
+
+for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or
+
+under Patent Claims infringed by Covered Software in the absence of its Contributions.
+
+This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).
+
+2.5. Representation
+Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.
+
+2.7. Conditions
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.
+
+3. Responsibilities
+3.1. Distribution of Source Form
+All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.
+
+3.2. Distribution of Executable Form
+If You distribute Covered Software in Executable Form then:
+
+such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and
+
+You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of [...]
+
+3.4. Notices
+You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, supp [...]
+
+4. Inability to Comply Due to Statute or Regulation
+If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or r [...]
+
+5. Termination
+5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come  [...]
+
+5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.
+
+6. Disclaimer of Warranty
+Covered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necess [...]
+
+7. Limitation of Liability
+Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such pa [...]
+
+8. Litigation
+Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.
+
+9. Miscellaneous
+This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+10.1. New Versions
+Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.
+
+10.2. Effect of New Versions
+You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.
+
+10.3. Modified Versions
+If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
+If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - “Incompatible With Secondary Licenses” Notice
+This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.
\ No newline at end of file
diff --git a/modules/h2/licenses/gg-community.txt b/modules/h2/licenses/gg-community.txt
new file mode 100644
index 0000000..4f2f7db
--- /dev/null
+++ b/modules/h2/licenses/gg-community.txt
@@ -0,0 +1,13 @@
+Copyright 2019 GridGain Systems, Inc. and Contributors.
+
+Licensed under the GridGain Community Edition License (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/modules/h2/pom.xml b/modules/h2/pom.xml
new file mode 100644
index 0000000..480e68a
--- /dev/null
+++ b/modules/h2/pom.xml
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright 2019 GridGain Systems, Inc. and Contributors.
+
+ Licensed under the GridGain Community Edition License (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+     https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+    POM file.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.gridgain</groupId>
+        <artifactId>community.parent</artifactId>
+        <version>1</version>
+        <relativePath>../../parent</relativePath>
+    </parent>
+
+    <artifactId>ignite-h2</artifactId>
+    <version>8.8.0-SNAPSHOT</version>
+    <description>H2 Database Engine Fork</description>
+
+    <licenses>
+        <license>
+            <name>MPL 2.0</name>
+            <url>https://www.mozilla.org/en-US/MPL/2.0/</url>
+            <distribution>repo</distribution>
+        </license>
+        <license>
+            <name>EPL 1.0</name>
+            <url>https://opensource.org/licenses/eclipse-1.0.php</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+
+    <properties>
+        <maven.compiler.source>1.7</maven.compiler.source>
+        <osgi.version>4.2.0</osgi.version>
+        <h2.lucene.version>5.5.5</h2.lucene.version>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <dependencies>
+        <!-- START COMPILE DEPENDENCIES !-->
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>javax.servlet-api</artifactId>
+            <version>3.1.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.lucene</groupId>
+            <artifactId>lucene-core</artifactId>
+            <version>${h2.lucene.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.lucene</groupId>
+            <artifactId>lucene-analyzers-common</artifactId>
+            <version>${h2.lucene.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.lucene</groupId>
+            <artifactId>lucene-queryparser</artifactId>
+            <version>${h2.lucene.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>${slf4j16.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>${osgi.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.enterprise</artifactId>
+            <version>${osgi.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.locationtech.jts</groupId>
+            <artifactId>jts-core</artifactId>
+            <version>1.15.0</version>
+        </dependency>
+        <!-- END COMPILE DEPENDENCIES !-->
+
+
+        <!-- START TEST DEPENDENCIES !-->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <version>${slf4j16.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+            <version>42.2.5.jre7</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.ow2.asm</groupId>
+            <artifactId>asm</artifactId>
+            <version>7.0</version>
+            <scope>test</scope>
+        </dependency>
+        <!-- END TEST DEPENDENCIES !-->
+    </dependencies>
+
+    <!-- The test code creates proxy files using javac or tools.jar. Through maven we need to tell it
+         where to possibly find tools.jar and annoyingly its called classes.jar on OSX -->
+    <profiles>
+        <profile>
+            <id>java9+</id>
+            <activation>
+                <jdk>[1.9,)</jdk>
+            </activation>
+            <dependencies/>
+        </profile>
+    </profiles>
+
+    <build>
+        <sourceDirectory>src/main/java</sourceDirectory>
+        <testSourceDirectory>src/test/java</testSourceDirectory>
+        <!-- Resources do not follow maven project layout. We need to manually copy them -->
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+                <includes>
+                    <include>**/*.prop</include>
+                    <include>**/*.png</include>
+                    <include>**/*.jsp</include>
+                    <include>**/*.ico</include>
+                    <include>**/*.gif</include>
+                    <include>**/*.css</include>
+                    <include>**/*.js</include>
+                    <include>org/h2/res/help.csv</include>
+                    <include>org/h2/res/javadoc.properties</include>
+                    <include>org/h2/server/pg/pg_catalog.sql</include>
+                    <include>META-INF/**</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>src/main/resources/precompiled</directory>
+                <targetPath>META-INF/versions/9</targetPath>
+            </resource>
+        </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/java</directory>
+                <includes>
+                    <include>org/h2/test/scripts/**/*.sql</include>
+                    <include>org/h2/samples/newsfeed.sql</include>
+                    <include>org/h2/samples/optimizations.sql</include>
+                </includes>
+            </testResource>
+        </testResources>
+        <plugins>
+            <!-- Add tools folder to test sources but consider moving them to src/test -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>3.0.0</version>
+                <executions>
+                    <execution>
+                        <phase>generate-test-sources</phase>
+                        <goals>
+                            <goal>add-test-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>src/test/tools</source>
+                                <source>src/test/java/META-INF/**</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemPropertyVariables>
+                        <h2.maxMemoryRows>100</h2.maxMemoryRows>
+                        <h2.delayWrongPasswordMin>0</h2.delayWrongPasswordMin>
+                        <h2.delayWrongPasswordMax>0</h2.delayWrongPasswordMax>
+                        <h2.useThreadContextClassLoader>true</h2.useThreadContextClassLoader>
+                        <h2.clientTraceDirectory>target/trace.db/</h2.clientTraceDirectory>
+                        <h2.javaSystemCompiler>false</h2.javaSystemCompiler>
+                        <!--<java.io.tmpdir>./target/temp</java.io.tmpdir>-->
+                    </systemPropertyVariables>
+                    <additionalClasspathElements>
+                        <additionalClasspathElement>${project.build.outputDirectory}</additionalClasspathElement>
+                        <additionalClasspathElement>${project.build.testOutputDirectory}</additionalClasspathElement>
+                    </additionalClasspathElements>
+                    <excludes>
+                        <exclude>TestAllJunit.java</exclude>
+                        <exclude>H2TestCase.java</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
\ No newline at end of file
diff --git a/modules/h2/src/docsrc/help/help.csv b/modules/h2/src/docsrc/help/help.csv
new file mode 100644
index 0000000..f85898d
--- /dev/null
+++ b/modules/h2/src/docsrc/help/help.csv
@@ -0,0 +1,5739 @@
+# Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
+# and the EPL 1.0 (http://h2database.com/html/license.html).
+# Initial Developer: H2 Group
+
+"SECTION","TOPIC","SYNTAX","TEXT","EXAMPLE"
+
+"Commands (DML)","SELECT","
+SELECT [ TOP term [ PERCENT ] [ WITH TIES ] ]
+[ DISTINCT [ ON ( expression [,...] ) ] | ALL ]
+selectExpression [,...]
+[ FROM tableExpression [,...] ]
+[ WHERE expression ]
+[ GROUP BY expression [,...] ] [ HAVING expression ]
+[ WINDOW { { windowName AS windowSpecification } [,...] } ]
+[ QUALIFY expression ]
+[ { UNION [ ALL ] | EXCEPT | MINUS | INTERSECT } select ]
+[ ORDER BY order [,...] ]
+[ LIMIT expression [ OFFSET expression ] [ SAMPLE_SIZE rowCountInt ] ]
+[ [ OFFSET expression { ROW | ROWS } ]
+    [ FETCH { FIRST | NEXT } [ expression [ PERCENT ] ] { ROW | ROWS }
+        { ONLY | WITH TIES } ] [ SAMPLE_SIZE rowCountInt ] ]
+[ FOR UPDATE ]
+","
+Selects data from a table or multiple tables.
+
+Command is executed in the following logical order:
+
+1. Data is taken from table value expressions that are specified in the FROM clause, joins are executed.
+If FROM clause is not specified a single row is constructed.
+
+2. WHERE filters rows. Aggregate or window functions are not allowed in this clause.
+
+3. GROUP BY groups the result by the given expression(s).
+If GROUP BY clause is not specified, but non-window aggregate functions are used or HAVING is specified
+all rows are grouped together.
+
+4. Aggregate functions are evaluated, SAMPLE_SIZE limits the number of rows read.
+
+5. HAVING filters rows after grouping and evaluation of aggregate functions.
+Non-window aggregate functions are allowed in this clause.
+
+6. Window functions are evaluated.
+
+7. QUALIFY filters rows after evaluation of window functions.
+Aggregate and window functions are allowed in this clause.
+
+8. DISTINCT removes duplicates.
+If DISTINCT ON is used only the specified expressions are checked for duplicates;
+ORDER BY clause, if any, is used to determine preserved rows.
+First row is each DISTINCT ON group is preserved.
+In absence of ORDER BY preserved rows are not determined, database may choose any row from each DISTINCT ON group.
+
+9. UNION, EXCEPT (MINUS), and INTERSECT combine the result of this query with the results of another query.
+Multiple set operators (UNION, INTERSECT, MINUS, EXCEPT) are evaluated from left to right.
+For compatibility with other databases and future versions of H2 please use parentheses.
+
+10. ORDER BY sorts the result by the given column(s) or expression(s).
+
+11. Number of rows in output can be limited either with standard OFFSET / FETCH,
+with non-standard LIMIT / OFFSET, or with non-standard TOP clauses.
+Different clauses cannot be used together.
+OFFSET specifies how many rows to skip.
+Please note that queries with high offset values can be slow.
+FETCH FIRST/NEXT, LIMIT or TOP limits the number of rows returned by the query (no limit if null or smaller than zero).
+If PERCENT is specified number of rows is specified as a percent of the total number of rows
+and should be an integer value between 0 and 100 inclusive.
+WITH TIES can be used only together with ORDER BY and means that all additional rows that have the same sorting position
+as the last row will be also returned.
+
+WINDOW clause specifies window definitions for window functions and window aggregate functions.
+This clause can be used to reuse the same definition in multiple functions.
+
+If FOR UPDATE is specified, the tables or rows are locked for writing.
+This clause is not allowed in DISTINCT queries and in queries with non-window aggregates, GROUP BY, or HAVING clauses.
+When using default MVStore engine only the selected rows are locked as in an UPDATE statement.
+Rows from the right side of a left join and from the left side of a right join, including nested joins, aren't locked.
+Locking behavior for rows that were excluded from result using OFFSET / FETCH / LIMIT / TOP or QUALIFY is undefined,
+to avoid possible locking of excessive rows try to filter out unneeded rows with the WHERE criteria when possible.
+Rows are processed one by one. Committed row is read, tested with WHERE criteria, locked, read again and re-tested,
+because its value may be changed by concurrent transaction before lock acquisition.
+Note that new uncommitted rows from other transactions are not visible due to read committed isolation level
+and therefore cannot be locked.
+With PageStore engine the whole tables are locked;
+to avoid deadlocks with this engine always lock the tables in the same order in all transactions.
+","
+SELECT * FROM TEST;
+SELECT * FROM TEST ORDER BY NAME;
+SELECT ID, COUNT(*) FROM TEST GROUP BY ID;
+SELECT NAME, COUNT(*) FROM TEST GROUP BY NAME HAVING COUNT(*) > 2;
+SELECT 'ID' COL, MAX(ID) AS MAX FROM TEST UNION SELECT 'NAME', MAX(NAME) FROM TEST;
+SELECT * FROM TEST OFFSET 1000 ROWS FETCH FIRST 1000 ROWS ONLY;
+SELECT A, B FROM TEST ORDER BY A FETCH FIRST 10 ROWS WITH TIES;
+SELECT * FROM (SELECT ID, COUNT(*) FROM TEST
+    GROUP BY ID UNION SELECT NULL, COUNT(*) FROM TEST)
+    ORDER BY 1 NULLS LAST;
+SELECT DISTINCT C1, C2 FROM TEST;
+SELECT DISTINCT ON(C1) C1, C2 FROM TEST ORDER BY C1;
+"
+
+"Commands (DML)","INSERT","
+INSERT INTO tableName insertColumnsAndSource
+","
+Inserts a new row / new rows into a table.
+
+When using DIRECT, then the results from the query are directly applied in the target table without any intermediate step.
+
+When using SORTED, b-tree pages are split at the insertion point. This can improve performance and reduce disk usage.
+","
+INSERT INTO TEST VALUES(1, 'Hello')
+"
+
+"Commands (DML)","UPDATE","
+UPDATE tableName [ [ AS ] newTableAlias ] SET setClauseList
+[ WHERE expression ] [ ORDER BY order [,...] ] [ LIMIT expression ]
+","
+Updates data in a table.
+ORDER BY is supported for MySQL compatibility, but it is ignored.
+","
+UPDATE TEST SET NAME='Hi' WHERE ID=1;
+UPDATE PERSON P SET NAME=(SELECT A.NAME FROM ADDRESS A WHERE A.ID=P.ID);
+"
+
+"Commands (DML)","DELETE","
+DELETE [ TOP term ] FROM tableName [ WHERE expression ] [ LIMIT term ]
+","
+Deletes rows form a table.
+If TOP or LIMIT is specified, at most the specified number of rows are deleted (no limit if null or smaller than zero).
+","
+DELETE FROM TEST WHERE ID=2
+"
+
+"Commands (DML)","BACKUP","
+BACKUP TO fileNameString
+","
+Backs up the database files to a .zip file. Objects are not locked, but
+the backup is transactionally consistent because the transaction log is also copied.
+Admin rights are required to execute this command.
+","
+BACKUP TO 'backup.zip'
+"
+
+"Commands (DML)","CALL","
+CALL expression
+","
+Calculates a simple expression. This statement returns a result set with one row,
+except if the called function returns a result set itself.
+If the called function returns an array, then each element in this array is returned as a column.
+","
+CALL 15*25
+"
+
+"Commands (DML)","EXPLAIN","
+EXPLAIN { [ PLAN FOR ] | ANALYZE }
+{ select | insert | update | delete | merge }
+","
+Shows the execution plan for a statement.
+When using EXPLAIN ANALYZE, the statement is actually executed, and the query plan
+will include the actual row scan count for each table.
+","
+EXPLAIN SELECT * FROM TEST WHERE ID=1
+"
+
+"Commands (DML)","MERGE","
+MERGE INTO tableName [ ( columnName [,...] ) ]
+[ KEY ( columnName [,...] ) ]
+{ insertValues | select }
+","
+Updates existing rows, and insert rows that don't exist. If no key column is
+specified, the primary key columns are used to find the row. If more than one
+row per new row is affected, an exception is thrown.
+","
+MERGE INTO TEST KEY(ID) VALUES(2, 'World')
+"
+
+"Commands (DML)","MERGE USING","
+MERGE INTO targetTableName [ [AS] targetAlias]
+USING { ( select ) | sourceTableName }[ [AS] sourceAlias ]
+ON expression
+mergeWhenClause [,...]
+","
+Updates or deletes existing rows, and insert rows that don't exist.
+
+The ON clause specifies the matching column expression.
+Different rows from a source table may not match with the same target row,
+but one source row may be matched with multiple target rows.
+
+If statement doesn't need a source table a DUAL table can be substituted.
+","
+MERGE INTO TARGET_TABLE AS T USING SOURCE_TABLE AS S
+    ON T.ID = S.ID
+    WHEN MATCHED AND T.COL2 <> 'FINAL' THEN
+        UPDATE SET T.COL1 = S.COL1
+    WHEN MATCHED AND T.COL2 = 'FINAL' THEN
+        DELETE
+    WHEN NOT MATCHED THEN
+        INSERT (ID, COL1, COL2) VALUES(S.ID, S.COL1, S.COL2)
+MERGE INTO TARGET_TABLE AS T USING (SELECT * FROM SOURCE_TABLE) AS S
+    ON T.ID = S.ID
+    WHEN MATCHED AND T.COL2 <> 'FINAL' THEN
+        UPDATE SET T.COL1 = S.COL1
+    WHEN MATCHED AND T.COL2 = 'FINAL' THEN
+        DELETE
+    WHEN NOT MATCHED THEN
+        INSERT VALUES (S.ID, S.COL1, S.COL2)
+MERGE INTO TARGET_TABLE USING DUAL ON ID = 1
+    WHEN NOT MATCHED THEN INSERT VALUES (1, 'Test')
+    WHEN MATCHED THEN UPDATE SET NAME = 'Test'
+"
+
+"Commands (DML)","RUNSCRIPT","
+RUNSCRIPT FROM fileNameString scriptCompressionEncryption
+[ CHARSET charsetString ]
+","
+Runs a SQL script from a file. The script is a text file containing SQL
+statements; each statement must end with ';'. This command can be used to
+restore a database from a backup. The password must be in single quotes; it is
+case sensitive and can contain spaces.
+
+Instead of a file name, an URL may be used.
+To read a stream from the classpath, use the prefix 'classpath:'.
+See the Pluggable File System section on the Advanced page.
+
+The compression algorithm must match the one used when creating the script.
+Instead of a file, an URL may be used.
+
+Admin rights are required to execute this command.
+","
+RUNSCRIPT FROM 'backup.sql'
+RUNSCRIPT FROM 'classpath:/com/acme/test.sql'
+"
+
+"Commands (DML)","SCRIPT","
+SCRIPT { [ NODATA ] | [ SIMPLE ] [ COLUMNS ] }
+[ NOPASSWORDS ] [ NOSETTINGS ]
+[ DROP ] [ BLOCKSIZE blockSizeInt ]
+[ TO fileNameString scriptCompressionEncryption
+    [ CHARSET charsetString ] ]
+[ TABLE tableName [, ...] ]
+[ SCHEMA schemaName [, ...] ]
+","
+Creates a SQL script from the database.
+
+NODATA will not emit INSERT statements.
+SIMPLE does not use multi-row insert statements.
+COLUMNS includes column name lists into insert statements.
+If the DROP option is specified, drop statements are created for tables, views,
+and sequences. If the block size is set, CLOB and BLOB values larger than this
+size are split into separate blocks.
+BLOCKSIZE is used when writing out LOB data, and specifies the point at the
+values transition from being inserted as inline values, to be inserted using
+out-of-line commands.
+NOSETTINGS turns off dumping the database settings (the SET XXX commands)
+
+If no 'TO fileName' clause is specified, the
+script is returned as a result set. This command can be used to create a backup
+of the database. For long term storage, it is more portable than copying the
+database files.
+
+If a 'TO fileName' clause is specified, then the whole
+script (including insert statements) is written to this file, and a result set
+without the insert statements is returned.
+
+The password must be in single quotes; it is case sensitive and can contain spaces.
+
+This command locks objects while it is running.
+Admin rights are required to execute this command.
+
+When using the TABLE or SCHEMA option, only the selected table(s) / schema(s) are included.
+","
+SCRIPT NODATA
+"
+
+"Commands (DML)","SHOW","
+SHOW { SCHEMAS | TABLES [ FROM schemaName ] |
+    COLUMNS FROM tableName [ FROM schemaName ] }
+","
+Lists the schemas, tables, or the columns of a table.
+","
+SHOW TABLES
+"
+
+"Commands (DML)","Explicit table","
+TABLE [schemaName.]tableName
+[ ORDER BY order [,...] ]
+[ OFFSET expression { ROW | ROWS } ]
+[ FETCH { FIRST | NEXT } [ expression [ PERCENT ] ] { ROW | ROWS }
+    { ONLY | WITH TIES } ]
+","
+Selects data from a table.
+
+This command is an equivalent to SELECT * FROM tableName.
+See SELECT command for description of ORDER BY, OFFSET, and FETCH.
+","
+TABLE TEST;
+TABLE TEST ORDER BY ID FETCH FIRST ROW ONLY;
+"
+
+"Commands (DML)","Table value","
+VALUES rowValueExpression [,...]
+[ ORDER BY order [,...] ]
+[ OFFSET expression { ROW | ROWS } ]
+[ FETCH { FIRST | NEXT } [ expression [ PERCENT ] ] { ROW | ROWS }
+    { ONLY | WITH TIES } ]
+","
+A list of rows that can be used like a table.
+See SELECT command for description of ORDER BY, OFFSET, and FETCH.
+The column list of the resulting table is C1, C2, and so on.
+","
+VALUES (1, 'Hello'), (2, 'World');
+"
+
+"Commands (DML)","WITH","
+WITH [ RECURSIVE ] { name [( columnName [,...] )] AS ( select ) [,...] }
+{ select | insert | update | merge | delete | createTable }
+","
+Can be used to create a recursive or non-recursive query (common table expression).
+For recursive queries the first select has to be a UNION.
+One or more common table entries can be referred to by name.
+Column name declarations are now optional - the column names will be inferred from the named select queries.
+The final action in a WITH statement can be a select, insert, update, merge, delete or create table.
+","
+WITH RECURSIVE cte(n) AS (
+        SELECT 1
+    UNION ALL
+        SELECT n + 1
+        FROM cte
+        WHERE n < 100
+)
+SELECT sum(n) FROM cte;
+
+Example 2:
+WITH cte1 AS (
+        SELECT 1 AS FIRST_COLUMN
+), cte2 AS (
+        SELECT FIRST_COLUMN+1 AS FIRST_COLUMN FROM cte1
+)
+SELECT sum(FIRST_COLUMN) FROM cte2;
+"
+
+"Commands (DDL)","ALTER INDEX RENAME","
+ALTER INDEX [ IF EXISTS ] indexName RENAME TO newIndexName
+","
+Renames an index.
+This command commits an open transaction in this connection.
+","
+ALTER INDEX IDXNAME RENAME TO IDX_TEST_NAME
+"
+
+"Commands (DDL)","ALTER SCHEMA RENAME","
+ALTER SCHEMA [ IF EXISTS ] schema RENAME TO newSchemaName
+","
+Renames a schema.
+This command commits an open transaction in this connection.
+","
+ALTER SCHEMA TEST RENAME TO PRODUCTION
+"
+
+"Commands (DDL)","ALTER SEQUENCE","
+ALTER SEQUENCE [ IF EXISTS ] sequenceName
+[ RESTART WITH long ]
+[ INCREMENT BY long ]
+[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
+[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
+[ CYCLE long | NOCYCLE | NO CYCLE ]
+[ CACHE long | NOCACHE | NO CACHE ]
+","
+Changes the parameters of a sequence.
+This command does not commit the current transaction; however the new value is used by other
+transactions immediately, and rolling back this command has no effect.
+","
+ALTER SEQUENCE SEQ_ID RESTART WITH 1000
+"
+
+"Commands (DDL)","ALTER TABLE ADD","
+ALTER TABLE [ IF EXISTS ] tableName ADD [ COLUMN ]
+{ [ IF NOT EXISTS ] columnName columnDefinition
+    | ( { columnName columnDefinition | constraint } [,...] ) }
+[ { { BEFORE | AFTER } columnName } | FIRST ]
+","
+Adds a new column to a table.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST ADD CREATEDATE TIMESTAMP
+"
+
+"Commands (DDL)","ALTER TABLE ADD CONSTRAINT","
+ALTER TABLE [ IF EXISTS ] tableName ADD constraint [ CHECK | NOCHECK ]
+","
+Adds a constraint to a table. If NOCHECK is specified, existing rows are not
+checked for consistency (the default is to check consistency for existing rows).
+The required indexes are automatically created if they don't exist yet.
+It is not possible to disable checking for unique constraints.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST ADD CONSTRAINT NAME_UNIQUE UNIQUE(NAME)
+"
+
+"Commands (DDL)","ALTER TABLE RENAME CONSTRAINT","
+ALTER TABLE [ IF EXISTS ] tableName RENAME oldConstraintName
+TO newConstraintName
+","
+Renames a constraint.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST RENAME CONSTRAINT FOO TO BAR
+"
+
+"Commands (DDL)","ALTER TABLE ALTER COLUMN","
+ALTER TABLE [ IF EXISTS ] tableName ALTER COLUMN columnName
+{ { columnDefinition }
+    | { RENAME TO name }
+    | { RESTART WITH long }
+    | { SELECTIVITY int }
+    | { SET DEFAULT expression }
+    | { DROP DEFAULT }
+    | { SET ON UPDATE expression }
+    | { DROP ON UPDATE }
+    | { SET NOT NULL }
+    | { DROP NOT NULL } | { SET NULL }
+    | { SET DATA TYPE dataType }
+    | { SET { VISIBLE | INVISIBLE } } }
+","
+Changes the data type of a column, rename a column,
+change the identity value, or change the selectivity.
+
+Changing the data type fails if the data can not be converted.
+
+RESTART changes the next value of an auto increment column.
+The column must already be an auto increment column.
+For RESTART, the same transactional rules as for ALTER SEQUENCE apply.
+
+SELECTIVITY sets the selectivity (1-100) for a column.
+Setting the selectivity to 0 means the default value.
+Selectivity is used by the cost based optimizer to calculate the estimated cost of an index.
+Selectivity 100 means values are unique, 10 means every distinct value appears 10 times on average.
+
+SET DEFAULT changes the default value of a column.
+
+DROP DEFAULT removes the default value of a column.
+
+SET ON UPDATE changes the value that is set on update if value for this column is not specified in update statement.
+
+DROP ON UPDATE removes the value that is set on update of a column.
+
+SET NOT NULL sets a column to not allow NULL. Rows may not contains NULL in this column.
+
+DROP NOT NULL and SET NULL set a column to allow NULL. The row may not be part of a primary key.
+
+SET DATA TYPE changes the data type of a column.
+
+SET INVISIBLE makes the column hidden, i.e. it will not appear in SELECT * results.
+SET VISIBLE has the reverse effect.
+
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST ALTER COLUMN NAME CLOB;
+ALTER TABLE TEST ALTER COLUMN NAME RENAME TO TEXT;
+ALTER TABLE TEST ALTER COLUMN ID RESTART WITH 10000;
+ALTER TABLE TEST ALTER COLUMN NAME SELECTIVITY 100;
+ALTER TABLE TEST ALTER COLUMN NAME SET DEFAULT '';
+ALTER TABLE TEST ALTER COLUMN NAME SET NOT NULL;
+ALTER TABLE TEST ALTER COLUMN NAME SET NULL;
+ALTER TABLE TEST ALTER COLUMN NAME SET VISIBLE;
+ALTER TABLE TEST ALTER COLUMN NAME SET INVISIBLE;
+"
+
+"Commands (DDL)","ALTER TABLE DROP COLUMN","
+ALTER TABLE [ IF EXISTS ] tableName DROP COLUMN [ IF EXISTS ]
+columnName [,...] | ( columnName [,...] )
+","
+Removes column(s) from a table.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST DROP COLUMN NAME
+ALTER TABLE TEST DROP COLUMN NAME1, NAME2
+ALTER TABLE TEST DROP COLUMN (NAME1, NAME2)
+"
+
+"Commands (DDL)","ALTER TABLE DROP CONSTRAINT","
+ALTER TABLE [ IF EXISTS ] tableName DROP
+{ CONSTRAINT [ IF EXISTS ] constraintName | PRIMARY KEY }
+","
+Removes a constraint or a primary key from a table.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST DROP CONSTRAINT UNIQUE_NAME
+"
+
+"Commands (DDL)","ALTER TABLE SET","
+ALTER TABLE [ IF EXISTS ] tableName SET REFERENTIAL_INTEGRITY
+{ FALSE | TRUE } [ CHECK | NOCHECK ]
+","
+Disables or enables referential integrity checking for a table. This command can
+be used inside a transaction. Enabling referential integrity does not check
+existing data, except if CHECK is specified. Use SET REFERENTIAL_INTEGRITY to
+disable it for all tables; the global flag and the flag for each table are
+independent.
+
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST SET REFERENTIAL_INTEGRITY FALSE
+"
+
+"Commands (DDL)","ALTER TABLE RENAME","
+ALTER TABLE [ IF EXISTS ] tableName RENAME TO newName
+","
+Renames a table.
+This command commits an open transaction in this connection.
+","
+ALTER TABLE TEST RENAME TO MY_DATA
+"
+
+"Commands (DDL)","ALTER USER ADMIN","
+ALTER USER userName ADMIN { TRUE | FALSE }
+","
+Switches the admin flag of a user on or off.
+
+Only unquoted or uppercase user names are allowed.
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+ALTER USER TOM ADMIN TRUE
+"
+
+"Commands (DDL)","ALTER USER RENAME","
+ALTER USER userName RENAME TO newUserName
+","
+Renames a user.
+After renaming a user, the password becomes invalid and needs to be changed as well.
+
+Only unquoted or uppercase user names are allowed.
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+ALTER USER TOM RENAME TO THOMAS
+"
+
+"Commands (DDL)","ALTER USER SET PASSWORD","
+ALTER USER userName SET { PASSWORD string | SALT bytes HASH bytes }
+","
+Changes the password of a user.
+Only unquoted or uppercase user names are allowed.
+The password must be enclosed in single quotes. It is case sensitive
+and can contain spaces. The salt and hash values are hex strings.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+ALTER USER SA SET PASSWORD 'rioyxlgt'
+"
+
+"Commands (DDL)","ALTER VIEW RECOMPILE","
+ALTER VIEW [ IF EXISTS ] viewName RECOMPILE
+","
+Recompiles a view after the underlying tables have been changed or created.
+This command is used for views created using CREATE FORCE VIEW.
+This command commits an open transaction in this connection.
+","
+ALTER VIEW ADDRESS_VIEW RECOMPILE
+"
+
+"Commands (DDL)","ALTER VIEW RENAME","
+ALTER VIEW [ IF EXISTS ] viewName RENAME TO newName
+","
+Renames a view.
+This command commits an open transaction in this connection.
+","
+ALTER VIEW TEST RENAME TO MY_VIEW
+"
+
+"Commands (DDL)","ANALYZE","
+ANALYZE [ TABLE tableName ] [ SAMPLE_SIZE rowCountInt ]
+","
+Updates the selectivity statistics of tables.
+If no table name is given, all tables are analyzed.
+The selectivity is used by the
+cost based optimizer to select the best index for a given query. If no sample
+size is set, up to 10000 rows per table are read. The value 0 means all rows are
+read. The selectivity can be set manually using ALTER TABLE ALTER COLUMN
+SELECTIVITY. Manual values are overwritten by this statement. The selectivity is
+available in the INFORMATION_SCHEMA.COLUMNS table.
+
+This command commits an open transaction in this connection.
+","
+ANALYZE SAMPLE_SIZE 1000
+"
+
+"Commands (DDL)","COMMENT","
+COMMENT ON
+{ { COLUMN [ schemaName. ] tableName.columnName }
+    | { { TABLE | VIEW | CONSTANT | CONSTRAINT | ALIAS | INDEX | ROLE
+    | SCHEMA | SEQUENCE | TRIGGER | USER | DOMAIN } [ schemaName. ] objectName } }
+IS expression
+","
+Sets the comment of a database object. Use NULL to remove the comment.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+COMMENT ON TABLE TEST IS 'Table used for testing'
+"
+
+"Commands (DDL)","CREATE AGGREGATE","
+CREATE AGGREGATE [ IF NOT EXISTS ] newAggregateName FOR className
+","
+Creates a new user-defined aggregate function. The method name must be the full
+qualified class name. The class must implement the interface
+""org.h2.api.Aggregate"" or ""org.h2.api.AggregateFunction"".
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+CREATE AGGREGATE SIMPLE_MEDIAN FOR ""com.acme.db.Median""
+"
+
+"Commands (DDL)","CREATE ALIAS","
+CREATE ALIAS [ IF NOT EXISTS ] newFunctionAliasName [ DETERMINISTIC ]
+[ NOBUFFER ] { FOR classAndMethodName | AS sourceCodeString }
+","
+Creates a new function alias. If this is a ResultSet returning function,
+by default the return value is cached in a local temporary file.
+
+NOBUFFER - disables caching of ResultSet return value to temporary file.
+
+DETERMINISTIC - Deterministic functions must always return the same value for the same parameters.
+
+The method name must be the full qualified class and method name,
+and may optionally include the parameter classes as in
+""java.lang.Integer.parseInt(java.lang.String, int)"". The class and the method
+must both be public, and the method must be static. The class must be available
+in the classpath of the database engine (when using the server mode,
+it must be in the classpath of the server).
+
+When defining a function alias with source code, the Sun ""javac"" is compiler
+is used if the file ""tools.jar"" is in the classpath. If not, ""javac"" is run as a separate process.
+Only the source code is stored in the database; the class is compiled each time
+the database is re-opened. Source code is usually passed
+as dollar quoted text to avoid escaping problems. If import statements are used,
+then the tag @CODE must be added before the method.
+
+If the method throws an SQLException, it is directly re-thrown to the calling application;
+all other exceptions are first converted to a SQLException.
+
+If the first parameter of the Java function is a ""java.sql.Connection"", then a
+connection to the database is provided. This connection must not be closed.
+If the class contains multiple methods with the given name but different
+parameter count, all methods are mapped.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+
+If you have the Groovy jar in your classpath, it is also possible to write methods using Groovy.
+","
+CREATE ALIAS MY_SQRT FOR ""java.lang.Math.sqrt"";
+CREATE ALIAS GET_SYSTEM_PROPERTY FOR ""java.lang.System.getProperty"";
+CALL GET_SYSTEM_PROPERTY('java.class.path');
+CALL GET_SYSTEM_PROPERTY('com.acme.test', 'true');
+CREATE ALIAS REVERSE AS $$ String reverse(String s) { return new StringBuilder(s).reverse().toString(); } $$;
+CALL REVERSE('Test');
+CREATE ALIAS tr AS $$@groovy.transform.CompileStatic
+    static String tr(String str, String sourceSet, String replacementSet){
+        return str.tr(sourceSet, replacementSet);
+    }
+$$
+"
+
+"Commands (DDL)","CREATE CONSTANT","
+CREATE CONSTANT [ IF NOT EXISTS ] newConstantName VALUE expression
+","
+Creates a new constant.
+This command commits an open transaction in this connection.
+","
+CREATE CONSTANT ONE VALUE 1
+"
+
+"Commands (DDL)","CREATE DOMAIN","
+CREATE DOMAIN [ IF NOT EXISTS ] newDomainName AS dataType
+[ DEFAULT expression ] [ [ NOT ] NULL ] [ SELECTIVITY selectivity ]
+[ CHECK condition ]
+","
+Creates a new data type (domain). The check condition must evaluate to true or
+to NULL (to prevent NULL, use ""NOT NULL""). In the condition, the term VALUE refers
+to the value being tested.
+
+Domains are usable within the whole database. They can not be created in a specific schema.
+
+This command commits an open transaction in this connection.
+","
+CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
+"
+
+"Commands (DDL)","CREATE INDEX","
+CREATE
+{ [ UNIQUE ] [ HASH | SPATIAL] INDEX [ [ IF NOT EXISTS ] newIndexName ]
+    | PRIMARY KEY [ HASH ] }
+ON tableName ( indexColumn [,...] )
+","
+Creates a new index.
+This command commits an open transaction in this connection.
+
+Hash indexes are meant for in-memory databases and memory tables (CREATE MEMORY TABLE) when PageStore engine is used.
+For other tables, or if the index contains multiple columns, the HASH keyword is ignored.
+Hash indexes can only test for equality, do not support range queries (similar to a hash table), use more memory,
+but can perform lookups faster.
+Non-unique keys are supported.
+
+Spatial indexes are supported only on Geometry columns.
+","
+CREATE INDEX IDXNAME ON TEST(NAME)
+"
+
+"Commands (DDL)","CREATE LINKED TABLE","
+CREATE [ FORCE ] [ [ GLOBAL | LOCAL ] TEMPORARY ]
+LINKED TABLE [ IF NOT EXISTS ]
+name ( driverString, urlString, userString, passwordString,
+[ originalSchemaString, ] originalTableString ) [ EMIT UPDATES | READONLY ]
+","
+Creates a table link to an external table. The driver name may be empty if the
+driver is already loaded. If the schema name is not set, only one table with
+that name may exist in the target database.
+
+FORCE - Create the LINKED TABLE even if the remote database/table does not exist.
+
+EMIT UPDATES - Usually, for update statements, the old rows are deleted first and then the new
+rows are inserted. It is possible to emit update statements (except on
+rollback), however in this case multi-row unique key updates may not always
+work. Linked tables to the same database share one connection.
+
+READONLY - is set, the remote table may not be updated. This is enforced by H2.
+
+If the connection to the source database is lost, the connection is re-opened
+(this is a workaround for MySQL that disconnects after 8 hours of inactivity by default).
+
+If a query is used instead of the original table name, the table is read only.
+Queries must be enclosed in parenthesis: ""(SELECT * FROM ORDERS)"".
+
+To use JNDI to get the connection, the driver class must be a
+javax.naming.Context (for example ""javax.naming.InitialContext""), and the URL must
+be the resource name (for example ""java:comp/env/jdbc/Test"").
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+CREATE LINKED TABLE LINK('org.h2.Driver', 'jdbc:h2:test2',
+    'sa', 'sa', 'TEST');
+CREATE LINKED TABLE LINK('', 'jdbc:h2:test2', 'sa', 'sa',
+    '(SELECT * FROM TEST WHERE ID>0)');
+CREATE LINKED TABLE LINK('javax.naming.InitialContext',
+    'java:comp/env/jdbc/Test', NULL, NULL,
+    '(SELECT * FROM TEST WHERE ID>0)');
+"
+
+"Commands (DDL)","CREATE ROLE","
+CREATE ROLE [ IF NOT EXISTS ] newRoleName
+","
+Creates a new role.
+This command commits an open transaction in this connection.
+","
+CREATE ROLE READONLY
+"
+
+"Commands (DDL)","CREATE SCHEMA","
+CREATE SCHEMA [ IF NOT EXISTS ] name
+[ AUTHORIZATION ownerUserName ]
+[ WITH tableEngineParamName [,...] ]
+","
+Creates a new schema. If no owner is specified, the current user is used. The
+user that executes the command must have admin rights, as well as the owner.
+Specifying the owner currently has no effect.
+Optional table engine parameters are used when CREATE TABLE command
+is run on this schema without having its engine params set.
+
+This command commits an open transaction in this connection.
+","
+CREATE SCHEMA TEST_SCHEMA AUTHORIZATION SA
+"
+
+"Commands (DDL)","CREATE SEQUENCE","
+CREATE SEQUENCE [ IF NOT EXISTS ] newSequenceName
+sequenceOptions
+","
+Creates a new sequence.
+The data type of a sequence is BIGINT.
+Used values are never re-used, even when the transaction is rolled back.
+
+The cache is the number of pre-allocated numbers.
+If the system crashes without closing the database, at most this many numbers are lost.
+The default cache size is 32.
+To disable caching, use the cache size 1 or lower.
+
+This command commits an open transaction in this connection.
+","
+CREATE SEQUENCE SEQ_ID
+"
+
+"Commands (DDL)","CREATE TABLE","
+CREATE [ CACHED | MEMORY ] [ TEMP | [ GLOBAL | LOCAL ] TEMPORARY ]
+TABLE [ IF NOT EXISTS ] name
+[ ( { columnName [columnDefinition] | constraint } [,...] ) ]
+[ ENGINE tableEngineName ]
+[ WITH tableEngineParamName [,...] ]
+[ NOT PERSISTENT ] [ TRANSACTIONAL ]
+[ AS select [ WITH [ NO ] DATA ] ]","
+Creates a new table.
+
+Cached tables (the default for regular tables) are persistent,
+and the number of rows is not limited by the main memory.
+Memory tables (the default for temporary tables) are persistent,
+but the index data is kept in main memory,
+that means memory tables should not get too large.
+
+Temporary tables are deleted when closing or opening a database.
+Temporary tables can be global (accessible by all connections)
+or local (only accessible by the current connection).
+The default for temporary tables is global.
+Indexes of temporary tables are kept fully in main memory,
+unless the temporary table is created using CREATE CACHED TABLE.
+
+The ENGINE option is only required when custom table implementations are used.
+The table engine class must implement the interface ""org.h2.api.TableEngine"".
+Any table engine parameters are passed down in the tableEngineParams field of the CreateTableData object.
+
+Either ENGINE, or WITH (table engine params), or both may be specified. If ENGINE is not specified
+in CREATE TABLE, then the engine specified by DEFAULT_TABLE_ENGINE option of database params is used.
+
+Tables with the NOT PERSISTENT modifier are kept fully in memory, and all
+rows are lost when the database is closed.
+
+The column definitions are optional if a query is specified.
+In that case the column list of the query is used.
+If the query is specified its results are inserted into created table unless WITH NO DATA is specified.
+
+This command commits an open transaction, except when using
+TRANSACTIONAL (only supported for temporary tables).
+","
+CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255))
+"
+
+"Commands (DDL)","CREATE TRIGGER","
+CREATE TRIGGER [ IF NOT EXISTS ] newTriggerName
+{ BEFORE | AFTER | INSTEAD OF }
+{ INSERT | UPDATE | DELETE | SELECT | ROLLBACK }
+[,...] ON tableName [ FOR EACH ROW ]
+[ QUEUE int ] [ NOWAIT ]
+{ CALL triggeredClassName | AS sourceCodeString }
+","
+Creates a new trigger.
+The trigger class must be public and implement ""org.h2.api.Trigger"".
+Inner classes are not supported.
+The class must be available in the classpath of the database engine
+(when using the server mode, it must be in the classpath of the server).
+
+The sourceCodeString must define a single method with no parameters that returns ""org.h2.api.Trigger"".
+See CREATE ALIAS for requirements regarding the compilation.
+Alternatively, javax.script.ScriptEngineManager can be used to create an instance of ""org.h2.api.Trigger"".
+Currently javascript (included in every JRE) and ruby (with JRuby) are supported.
+In that case the source must begin respectively with ""//javascript"" or ""#ruby"".
+
+BEFORE triggers are called after data conversion is made, default values are set,
+null and length constraint checks have been made;
+but before other constraints have been checked.
+If there are multiple triggers, the order in which they are called is undefined.
+
+ROLLBACK can be specified in combination with INSERT, UPDATE, and DELETE.
+Only row based AFTER trigger can be called on ROLLBACK.
+Exceptions that occur within such triggers are ignored.
+As the operations that occur within a trigger are part of the transaction,
+ROLLBACK triggers are only required if an operation communicates outside of the database.
+
+INSTEAD OF triggers are implicitly row based and behave like BEFORE triggers.
+Only the first such trigger is called. Such triggers on views are supported.
+They can be used to make views updatable.
+
+A BEFORE SELECT trigger is fired just before the database engine tries to read from the table.
+The trigger can be used to update a table on demand.
+The trigger is called with both 'old' and 'new' set to null.
+
+The MERGE statement will call both INSERT and UPDATE triggers.
+Not supported are SELECT triggers with the option FOR EACH ROW,
+and AFTER SELECT triggers.
+
+Committing or rolling back a transaction within a trigger is not allowed, except for SELECT triggers.
+
+By default a trigger is called once for each statement, without the old and new rows.
+FOR EACH ROW triggers are called once for each inserted, updated, or deleted row.
+
+QUEUE is implemented for syntax compatibility with HSQL and has no effect.
+
+The trigger need to be created in the same schema as the table.
+The schema name does not need to be specified when creating the trigger.
+
+This command commits an open transaction in this connection.
+","
+CREATE TRIGGER TRIG_INS BEFORE INSERT ON TEST FOR EACH ROW CALL ""MyTrigger"";
+CREATE TRIGGER TRIG_SRC BEFORE INSERT ON TEST AS $$org.h2.api.Trigger create() { return new MyTrigger(""constructorParam""); } $$;
+CREATE TRIGGER TRIG_JS BEFORE INSERT ON TEST AS $$//javascript\nreturn new Packages.MyTrigger(""constructorParam""); $$;
+CREATE TRIGGER TRIG_RUBY BEFORE INSERT ON TEST AS $$#ruby\nJava::MyPackage::MyTrigger.new(""constructorParam"") $$;
+"
+"Commands (DDL)","CREATE USER","
+CREATE USER [ IF NOT EXISTS ] newUserName
+{ PASSWORD string | SALT bytes HASH bytes } [ ADMIN ]
+","
+Creates a new user. For compatibility, only unquoted or uppercase user names are allowed.
+The password must be in single quotes. It is case sensitive and can contain spaces.
+The salt and hash values are hex strings.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+CREATE USER GUEST PASSWORD 'abc'
+"
+
+"Commands (DDL)","CREATE VIEW","
+CREATE [ OR REPLACE ] [ FORCE ] VIEW [ IF NOT EXISTS ] newViewName
+[ ( columnName [,...] ) ] AS select
+","
+Creates a new view. If the force option is used, then the view is created even
+if the underlying table(s) don't exist.
+
+If the OR REPLACE clause is used an existing view will be replaced, and any
+dependent views will not need to be recreated. If dependent views will become
+invalid as a result of the change an error will be generated, but this error
+can be ignored if the FORCE clause is also used.
+
+Views are not updatable except when using 'instead of' triggers.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+CREATE VIEW TEST_VIEW AS SELECT * FROM TEST WHERE ID < 100
+"
+
+"Commands (DDL)","DROP AGGREGATE","
+DROP AGGREGATE [ IF EXISTS ] aggregateName
+","
+Drops an existing user-defined aggregate function.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+DROP AGGREGATE SIMPLE_MEDIAN
+"
+
+"Commands (DDL)","DROP ALIAS","
+DROP ALIAS [ IF EXISTS ] existingFunctionAliasName
+","
+Drops an existing function alias.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+DROP ALIAS MY_SQRT
+"
+
+"Commands (DDL)","DROP ALL OBJECTS","
+DROP ALL OBJECTS [ DELETE FILES ]
+","
+Drops all existing views, tables, sequences, schemas, function aliases, roles,
+user-defined aggregate functions, domains, and users (except the current user).
+If DELETE FILES is specified, the database files will be removed when the last
+user disconnects from the database. Warning: this command can not be rolled
+back.
+
+Admin rights are required to execute this command.
+","
+DROP ALL OBJECTS
+"
+
+"Commands (DDL)","DROP CONSTANT","
+DROP CONSTANT [ IF EXISTS ] constantName
+","
+Drops a constant.
+This command commits an open transaction in this connection.
+","
+DROP CONSTANT ONE
+"
+
+"Commands (DDL)","DROP DOMAIN","
+DROP DOMAIN [ IF EXISTS ] domainName [ RESTRICT | CASCADE ]
+","
+Drops a data type (domain).
+The command will fail if it is referenced by a column (the default).
+Column descriptors are replaced with original definition of specified domain if the CASCADE clause is used.
+This command commits an open transaction in this connection.
+","
+DROP DOMAIN EMAIL
+"
+
+"Commands (DDL)","DROP INDEX","
+DROP INDEX [ IF EXISTS ] indexName
+","
+Drops an index.
+This command commits an open transaction in this connection.
+","
+DROP INDEX IF EXISTS IDXNAME
+"
+
+"Commands (DDL)","DROP ROLE","
+DROP ROLE [ IF EXISTS ] roleName
+","
+Drops a role.
+This command commits an open transaction in this connection.
+","
+DROP ROLE READONLY
+"
+
+"Commands (DDL)","DROP SCHEMA","
+DROP SCHEMA [ IF EXISTS ] schemaName [ RESTRICT | CASCADE ]
+","
+Drops a schema.
+The command will fail if objects in this schema exist and the RESTRICT clause is used (the default).
+All objects in this schema are dropped as well if the CASCADE clause is used.
+This command commits an open transaction in this connection.
+","
+DROP SCHEMA TEST_SCHEMA
+"
+
+"Commands (DDL)","DROP SEQUENCE","
+DROP SEQUENCE [ IF EXISTS ] sequenceName
+","
+Drops a sequence.
+This command commits an open transaction in this connection.
+","
+DROP SEQUENCE SEQ_ID
+"
+
+"Commands (DDL)","DROP TABLE","
+DROP TABLE [ IF EXISTS ] tableName [,...] [ RESTRICT | CASCADE ]
+","
+Drops an existing table, or a list of tables.
+The command will fail if dependent objects exist and the RESTRICT clause is used (the default).
+All dependent views and constraints are dropped as well if the CASCADE clause is used.
+This command commits an open transaction in this connection.
+","
+DROP TABLE TEST
+"
+
+"Commands (DDL)","DROP TRIGGER","
+DROP TRIGGER [ IF EXISTS ] triggerName
+","
+Drops an existing trigger.
+This command commits an open transaction in this connection.
+","
+DROP TRIGGER TRIG_INS
+"
+
+"Commands (DDL)","DROP USER","
+DROP USER [ IF EXISTS ] userName
+","
+Drops a user. The current user cannot be dropped.
+For compatibility, only unquoted or uppercase user names are allowed.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+DROP USER TOM
+"
+
+"Commands (DDL)","DROP VIEW","
+DROP VIEW [ IF EXISTS ] viewName [ RESTRICT | CASCADE ]
+","
+Drops an existing view.
+All dependent views are dropped as well if the CASCADE clause is used (the default).
+The command will fail if dependent views exist and the RESTRICT clause is used.
+This command commits an open transaction in this connection.
+","
+DROP VIEW TEST_VIEW
+"
+
+"Commands (DDL)","TRUNCATE TABLE","
+TRUNCATE TABLE tableName [ [ CONTINUE | RESTART ] IDENTITY ]
+","
+Removes all rows from a table.
+Unlike DELETE FROM without where clause, this command can not be rolled back.
+This command is faster than DELETE without where clause.
+Only regular data tables without foreign key constraints can be truncated
+(except if referential integrity is disabled for this database or for this table).
+Linked tables can't be truncated.
+If RESTART IDENTITY is specified next values for auto-incremented columns are restarted.
+
+This command commits an open transaction in this connection.
+","
+TRUNCATE TABLE TEST
+"
+
+"Commands (Other)","CHECKPOINT","
+CHECKPOINT
+","
+Flushes the data to disk.
+
+Admin rights are required to execute this command.
+","
+CHECKPOINT
+"
+
+"Commands (Other)","CHECKPOINT SYNC","
+CHECKPOINT SYNC
+","
+Flushes the data to disk and forces all system buffers be written
+to the underlying device.
+
+Admin rights are required to execute this command.
+","
+CHECKPOINT SYNC
+"
+
+"Commands (Other)","COMMIT","
+COMMIT [ WORK ]
+","
+Commits a transaction.
+","
+COMMIT
+"
+
+"Commands (Other)","COMMIT TRANSACTION","
+COMMIT TRANSACTION transactionName
+","
+Sets the resolution of an in-doubt transaction to 'commit'.
+
+Admin rights are required to execute this command.
+This command is part of the 2-phase-commit protocol.
+","
+COMMIT TRANSACTION XID_TEST
+"
+
+"Commands (Other)","GRANT RIGHT","
+GRANT { SELECT | INSERT | UPDATE | DELETE | ALL } [,...] ON
+{ { SCHEMA schemaName } | { tableName [,...] } }
+TO { PUBLIC | userName | roleName }
+","
+Grants rights for a table to a user or role.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+GRANT SELECT ON TEST TO READONLY
+"
+
+"Commands (Other)","GRANT ALTER ANY SCHEMA","
+GRANT ALTER ANY SCHEMA TO userName
+","
+Grant schema altering rights to a user.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+GRANT ALTER ANY SCHEMA TO Bob
+"
+
+"Commands (Other)","GRANT ROLE","
+GRANT roleName TO { PUBLIC | userName | roleName }
+","
+Grants a role to a user or role.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+GRANT READONLY TO PUBLIC
+"
+
+"Commands (Other)","HELP","
+HELP [ anything [...] ]
+","
+Displays the help pages of SQL commands or keywords.
+","
+HELP SELECT
+"
+
+"Commands (Other)","PREPARE COMMIT","
+PREPARE COMMIT newTransactionName
+","
+Prepares committing a transaction.
+This command is part of the 2-phase-commit protocol.
+","
+PREPARE COMMIT XID_TEST
+"
+
+"Commands (Other)","REVOKE RIGHT","
+REVOKE { SELECT | INSERT | UPDATE | DELETE | ALL } [,...] ON
+{ { SCHEMA schemaName } | { tableName [,...] } }
+FROM { PUBLIC | userName | roleName }
+","
+Removes rights for a table from a user or role.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+REVOKE SELECT ON TEST FROM READONLY
+"
+
+"Commands (Other)","REVOKE ROLE","
+REVOKE roleName FROM { PUBLIC | userName | roleName }
+","
+Removes a role from a user or role.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+REVOKE READONLY FROM TOM
+"
+
+"Commands (Other)","ROLLBACK","
+ROLLBACK [ TO SAVEPOINT savepointName ]
+","
+Rolls back a transaction. If a savepoint name is used, the transaction is only
+rolled back to the specified savepoint.
+","
+ROLLBACK
+"
+
+"Commands (Other)","ROLLBACK TRANSACTION","
+ROLLBACK TRANSACTION transactionName
+","
+Sets the resolution of an in-doubt transaction to 'rollback'.
+
+Admin rights are required to execute this command.
+This command is part of the 2-phase-commit protocol.
+","
+ROLLBACK TRANSACTION XID_TEST
+"
+
+"Commands (Other)","SAVEPOINT","
+SAVEPOINT savepointName
+","
+Create a new savepoint. See also ROLLBACK.
+Savepoints are only valid until the transaction is committed or rolled back.
+","
+SAVEPOINT HALF_DONE
+"
+
+"Commands (Other)","SET @","
+SET @variableName [ = ] expression
+","
+Updates a user-defined variable.
+Variables are not persisted and session scoped, that means only visible from within the session in which they are defined.
+This command does not commit a transaction, and rollback does not affect it.
+","
+SET @TOTAL=0
+"
+
+"Commands (Other)","SET ALLOW_LITERALS","
+SET ALLOW_LITERALS { NONE | ALL | NUMBERS }
+","
+This setting can help solve the SQL injection problem. By default, text and
+number literals are allowed in SQL statements. However, this enables SQL
+injection if the application dynamically builds SQL statements. SQL injection is
+not possible if user data is set using parameters ('?').
+
+NONE means literals of any kind are not allowed, only parameters and constants
+are allowed. NUMBERS mean only numerical and boolean literals are allowed. ALL
+means all literals are allowed (default).
+
+See also CREATE CONSTANT.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;ALLOW_LITERALS=NONE""
+","
+SET ALLOW_LITERALS NONE
+"
+
+"Commands (Other)","SET AUTOCOMMIT","
+SET AUTOCOMMIT { TRUE | ON | FALSE | OFF }
+","
+Switches auto commit on or off.
+This setting can be appended to the database URL: ""jdbc:h2:test;AUTOCOMMIT=OFF"" -
+however this will not work as expected when using a connection pool
+(the connection pool manager will re-enable autocommit when returning
+the connection to the pool, so autocommit will only be disabled the first
+time the connection is used.
+","
+SET AUTOCOMMIT OFF
+"
+
+"Commands (Other)","SET CACHE_SIZE","
+SET CACHE_SIZE int
+","
+Sets the size of the cache in KB (each KB being 1024 bytes) for the current database.
+The default is 65536 per available GB of RAM, i.e. 64 MB per GB.
+The value is rounded to the next higher power of two.
+Depending on the virtual machine, the actual memory required may be higher.
+
+This setting is persistent and affects all connections as there is only one cache per database.
+Using a very small value (specially 0) will reduce performance a lot.
+This setting only affects the database engine (the server in a client/server environment;
+in embedded mode, the database engine is in the same process as the application).
+It has no effect for in-memory databases.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;CACHE_SIZE=8192""
+","
+SET CACHE_SIZE 8192
+"
+
+"Commands (Other)","SET CLUSTER","
+SET CLUSTER serverListString
+","
+This command should not be used directly by an application, the statement is
+executed automatically by the system. The behavior may change in future
+releases. Sets the cluster server list. An empty string switches off the cluster
+mode. Switching on the cluster mode requires admin rights, but any user can
+switch it off (this is automatically done when the client detects the other
+server is not responding).
+
+This command is effective immediately, but does not commit an open transaction.
+","
+SET CLUSTER ''
+"
+
+"Commands (Other)","SET BINARY_COLLATION","
+SET BINARY_COLLATION { UNSIGNED | SIGNED }
+","
+Sets the collation used for comparing BINARY columns, the default is SIGNED
+for version 1.3 and older, and UNSIGNED for version 1.4 and newer.
+This command can only be executed if there are no tables defined.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET BINARY_COLLATION SIGNED
+"
+
+"Commands (Other)","SET UUID_COLLATION","
+SET UUID_COLLATION { UNSIGNED | SIGNED }
+","
+Sets the collation used for comparing UUID columns, the default is SIGNED.
+This command can only be executed if there are no tables defined.
+
+SIGNED means signed comparison between first 64 bits of compared values treated as long values
+and if they are equal a signed comparison of the last 64 bits of compared values treated as long values.
+See also Java ""UUID.compareTo()"".
+UNSIGNED means RFC 4122 compatible unsigned comparison.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET UUID_COLLATION UNSIGNED
+"
+
+"Commands (Other)","SET BUILTIN_ALIAS_OVERRIDE","
+SET BUILTIN_ALIAS_OVERRIDE { TRUE | FALSE }
+","
+Allows the overriding of the builtin system date/time functions
+for unit testing purposes.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+SET BUILTIN_ALIAS_OVERRIDE TRUE
+"
+
+"Commands (Other)","SET COLLATION","
+SET [ DATABASE ] COLLATION
+{ OFF | collationName
+    [ STRENGTH { PRIMARY | SECONDARY | TERTIARY | IDENTICAL } ] }
+","
+Sets the collation used for comparing strings.
+This command can only be executed if there are no tables defined.
+See ""java.text.Collator"" for details about the supported collations and the STRENGTH
+(PRIMARY is usually case- and umlaut-insensitive; SECONDARY is case-insensitive but umlaut-sensitive;
+TERTIARY is both case- and umlaut-sensitive; IDENTICAL is sensitive to all differences and only affects ordering).
+
+The ICU4J collator is used if it is in the classpath.
+It is also used if the collation name starts with ICU4J_
+(in that case, the ICU4J must be in the classpath, otherwise an exception is thrown).
+The default collator is used if the collation name starts with DEFAULT_
+(even if ICU4J is in the classpath).
+The charset collator is used if the collation name starts with CHARSET_ (e.g. CHARSET_CP500). This collator sorts
+strings according to the binary representation in the given charset.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;COLLATION='ENGLISH'""
+","
+SET COLLATION ENGLISH
+SET COLLATION CHARSET_CP500
+"
+
+"Commands (Other)","SET COMPRESS_LOB","
+SET COMPRESS_LOB { NO | LZF | DEFLATE }
+","
+This feature is only available for the PageStore storage engine.
+For the MVStore engine (the default for H2 version 1.4.x),
+append "";COMPRESS=TRUE"" to the database URL instead.
+
+Sets the compression algorithm for BLOB and CLOB data. Compression is usually
+slower, but needs less disk space. LZF is faster but uses more space.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET COMPRESS_LOB LZF
+"
+
+"Commands (Other)","SET DATABASE_EVENT_LISTENER","
+SET DATABASE_EVENT_LISTENER classNameString
+","
+Sets the event listener class. An empty string ('') means no listener should be
+used. This setting is not persistent.
+
+Admin rights are required to execute this command, except if it is set when
+opening the database (in this case it is reset just after opening the database).
+This setting can be appended to the database URL: ""jdbc:h2:test;DATABASE_EVENT_LISTENER='sample.MyListener'""
+","
+SET DATABASE_EVENT_LISTENER 'sample.MyListener'
+"
+
+"Commands (Other)","SET DB_CLOSE_DELAY","
+SET DB_CLOSE_DELAY int
+","
+Sets the delay for closing a database if all connections are closed.
+The value -1 means the database is never closed until the close delay is set to some other value or SHUTDOWN is called.
+The value 0 means no delay (default; the database is closed if the last connection to it is closed).
+Values 1 and larger mean the number of seconds the database is left open after closing the last connection.
+
+If the application exits normally or System.exit is called, the database is closed immediately, even if a delay is set.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;DB_CLOSE_DELAY=-1""
+","
+SET DB_CLOSE_DELAY -1
+"
+
+"Commands (Other)","SET DEFAULT_LOCK_TIMEOUT","
+SET DEFAULT LOCK_TIMEOUT int
+","
+Sets the default lock timeout (in milliseconds) in this database that is used
+for the new sessions. The default value for this setting is 1000 (one second).
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET DEFAULT_LOCK_TIMEOUT 5000
+"
+
+"Commands (Other)","SET DEFAULT_TABLE_TYPE","
+SET DEFAULT_TABLE_TYPE { MEMORY | CACHED }
+","
+Sets the default table storage type that is used when creating new tables.
+Memory tables are kept fully in the main memory (including indexes), however
+the data is still stored in the database file. The size of memory tables is
+limited by the memory. The default is CACHED.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+It has no effect for in-memory databases.
+","
+SET DEFAULT_TABLE_TYPE MEMORY
+"
+
+"Commands (Other)","SET EXCLUSIVE","
+SET EXCLUSIVE { 0 | 1 | 2 }
+","
+Switched the database to exclusive mode (1, 2) and back to normal mode (0).
+
+In exclusive mode, new connections are rejected, and operations by
+other connections are paused until the exclusive mode is disabled.
+When using the value 1, existing connections stay open.
+When using the value 2, all existing connections are closed
+(and current transactions are rolled back) except the connection
+that executes SET EXCLUSIVE.
+Only the connection that set the exclusive mode can disable it.
+When the connection is closed, it is automatically disabled.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+","
+SET EXCLUSIVE 1
+"
+
+"Commands (Other)","SET IGNORECASE","
+SET IGNORECASE { TRUE | FALSE }
+","
+If IGNORECASE is enabled, text columns in newly created tables will be
+case-insensitive. Already existing tables are not affected. The effect of
+case-insensitive columns is similar to using a collation with strength PRIMARY.
+Case-insensitive columns are compared faster than when using a collation.
+String literals and parameters are however still considered case sensitive even if this option is set.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;IGNORECASE=TRUE""
+","
+SET IGNORECASE TRUE
+"
+
+"Commands (Other)","SET JAVA_OBJECT_SERIALIZER","
+SET JAVA_OBJECT_SERIALIZER
+{ null | className }
+","
+Sets the object used to serialize and deserialize java objects being stored in column of type OTHER.
+The serializer class must be public and implement ""org.h2.api.JavaObjectSerializer"".
+Inner classes are not supported.
+The class must be available in the classpath of the database engine
+(when using the server mode, it must be both in the classpath of the server and the client).
+This command can only be executed if there are no tables defined.
+
+Admin rights are required to execute this command.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;JAVA_OBJECT_SERIALIZER='com.acme.SerializerClassName'""
+","
+SET JAVA_OBJECT_SERIALIZER 'com.acme.SerializerClassName'
+"
+
+"Commands (Other)","SET LAZY_QUERY_EXECUTION","
+SET LAZY_QUERY_EXECUTION int
+","
+Sets the lazy query execution mode. The values 0, 1 are supported.
+
+If true, then large results are retrieved in chunks.
+
+Note that not all queries support this feature, queries which do not are processed normally.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is not persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;LAZY_QUERY_EXECUTION=1""
+","
+SET LAZY_QUERY_EXECUTION 1
+"
+
+"Commands (Other)","SET LOG","
+SET LOG int
+","
+Sets the transaction log mode. The values 0, 1, and 2 are supported, the default is 2.
+This setting affects all connections.
+
+LOG 0 means the transaction log is disabled completely. It is the fastest mode,
+but also the most dangerous: if the process is killed while the database is open in this mode,
+the data might be lost. It must only be used if this is not a problem, for example when
+initially loading a database, or when running tests.
+
+LOG 1 means the transaction log is enabled, but FileDescriptor.sync is disabled.
+This setting is about half as fast as with LOG 0. This setting is useful if no protection
+against power failure is required, but the data must be protected against killing the process.
+
+LOG 2 (the default) means the transaction log is enabled, and FileDescriptor.sync is called
+for each checkpoint. This setting is about half as fast as LOG 1. Depending on the
+file system, this will also protect against power failure in the majority if cases.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is not persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;LOG=0""
+","
+SET LOG 1
+"
+
+"Commands (Other)","SET LOCK_MODE","
+SET LOCK_MODE int
+","
+Sets the lock mode. The values 0, 1, 2, and 3 are supported. The default is 3
+(READ_COMMITTED). This setting affects all connections.
+
+The value 0 means no locking (should only be used for testing; also known as
+READ_UNCOMMITTED). Please note that using SET LOCK_MODE 0 while at the same time
+using multiple connections may result in inconsistent transactions.
+
+The value 1 means table level locking (also known as SERIALIZABLE).
+
+The value 2 means table level locking with garbage collection (if the
+application does not close all connections).
+
+The value 3 means table level locking, but read locks are released immediately
+(default; also known as READ_COMMITTED).
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;LOCK_MODE=3""
+","
+SET LOCK_MODE 1
+"
+
+"Commands (Other)","SET LOCK_TIMEOUT","
+SET LOCK_TIMEOUT int
+","
+Sets the lock timeout (in milliseconds) for the current session. The default
+value for this setting is 1000 (one second).
+
+This command does not commit a transaction, and rollback does not affect it.
+This setting can be appended to the database URL: ""jdbc:h2:test;LOCK_TIMEOUT=10000""
+","
+SET LOCK_TIMEOUT 1000
+"
+
+"Commands (Other)","SET MAX_LENGTH_INPLACE_LOB","
+SET MAX_LENGTH_INPLACE_LOB int
+","
+Sets the maximum size of an in-place LOB object.
+
+This is the maximum length of an LOB that is stored with the record itself,
+and the default value is 128.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET MAX_LENGTH_INPLACE_LOB 128
+"
+
+"Commands (Other)","SET MAX_LOG_SIZE","
+SET MAX_LOG_SIZE int
+","
+Sets the maximum size of the transaction log, in megabytes.
+If the log is larger, and if there is no open transaction, the transaction log is truncated.
+If there is an open transaction, the transaction log will continue to grow however.
+The default max size is 16 MB.
+This setting has no effect for in-memory databases.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+","
+SET MAX_LOG_SIZE 2
+"
+
+"Commands (Other)","SET MAX_MEMORY_ROWS","
+SET MAX_MEMORY_ROWS int
+","
+The maximum number of rows in a result set that are kept in-memory. If more rows
+are read, then the rows are buffered to disk.
+The default is 40000 per GB of available RAM.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+It has no effect for in-memory databases.
+","
+SET MAX_MEMORY_ROWS 1000
+"
+
+"Commands (Other)","SET MAX_MEMORY_UNDO","
+SET MAX_MEMORY_UNDO int
+","
+The maximum number of undo records per a session that are kept in-memory.
+If a transaction is larger, the records are buffered to disk.
+The default value is 50000.
+Changes to tables without a primary key can not be buffered to disk.
+This setting is not supported when using multi-version concurrency.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+It has no effect for in-memory databases.
+","
+SET MAX_MEMORY_UNDO 1000
+"
+
+"Commands (Other)","SET MAX_OPERATION_MEMORY","
+SET MAX_OPERATION_MEMORY int
+","
+Sets the maximum memory used for large operations (delete and insert), in bytes.
+Operations that use more memory are buffered to disk, slowing down the
+operation. The default max size is 100000. 0 means no limit.
+
+This setting is not persistent.
+Admin rights are required to execute this command, as it affects all connections.
+It has no effect for in-memory databases.
+This setting can be appended to the database URL: ""jdbc:h2:test;MAX_OPERATION_MEMORY=10000""
+","
+SET MAX_OPERATION_MEMORY 0
+"
+
+"Commands (Other)","SET MODE","
+SET MODE { REGULAR | DB2 | DERBY | HSQLDB | MSSQLSERVER | MYSQL | ORACLE | POSTGRESQL }
+","
+Changes to another database compatibility mode. For details, see Compatibility
+Modes in the feature section.
+
+This setting is not persistent.
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting can be appended to the database URL: ""jdbc:h2:test;MODE=MYSQL""
+","
+SET MODE HSQLDB
+"
+
+"Commands (Other)","SET MULTI_THREADED","
+SET MULTI_THREADED { 0 | 1 }
+","
+Enabled (1) or disabled (0) multi-threading inside the database engine.
+MULTI_THREADED is enabled by default with default MVStore storage engine.
+MULTI_THREADED is disabled by default when using PageStore storage engine, enabling this with PageStore is experimental only.
+
+This is a global setting, which means it is not possible to open multiple databases with different modes at the same time in the same virtual machine.
+This setting is not persistent, however the value is kept until the virtual machine exits or it is changed.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting can be appended to the database URL: ""jdbc:h2:test;MULTI_THREADED=1""
+","
+SET MULTI_THREADED 1
+"
+
+"Commands (Other)","SET OPTIMIZE_REUSE_RESULTS","
+SET OPTIMIZE_REUSE_RESULTS { 0 | 1 }
+","
+Enabled (1) or disabled (0) the result reuse optimization. If enabled,
+subqueries and views used as subqueries are only re-run if the data in one of
+the tables was changed. This option is enabled by default.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting can be appended to the database URL: ""jdbc:h2:test;OPTIMIZE_REUSE_RESULTS=0""
+","
+SET OPTIMIZE_REUSE_RESULTS 0
+"
+
+"Commands (Other)","SET PASSWORD","
+SET PASSWORD string
+","
+Changes the password of the current user. The password must be in single quotes.
+It is case sensitive and can contain spaces.
+
+This command commits an open transaction in this connection.
+","
+SET PASSWORD 'abcstzri!.5'
+"
+
+"Commands (Other)","SET QUERY_STATISTICS","
+SET QUERY_STATISTICS { TRUE | FALSE }
+","
+Disabled or enables query statistics gathering for the whole database.
+The statistics are reflected in the INFORMATION_SCHEMA.QUERY_STATISTICS meta-table.
+
+This setting is not persistent.
+This command commits an open transaction in this connection.
+Admin rights are required to execute this command, as it affects all connections.
+","
+SET QUERY_STATISTICS FALSE
+"
+
+"Commands (Other)","SET QUERY_STATISTICS_MAX_ENTRIES","
+SET QUERY_STATISTICS int
+","
+Set the maximum number of entries in query statistics meta-table.
+Default value is 100.
+
+This setting is not persistent.
+This command commits an open transaction in this connection.
+Admin rights are required to execute this command, as it affects all connections.
+","
+SET QUERY_STATISTICS_MAX_ENTRIES 500
+"
+
+"Commands (Other)","SET QUERY_TIMEOUT","
+SET QUERY_TIMEOUT int
+","
+Set the query timeout of the current session to the given value. The timeout is
+in milliseconds. All kinds of statements will throw an exception if they take
+longer than the given value. The default timeout is 0, meaning no timeout.
+
+This command does not commit a transaction, and rollback does not affect it.
+","
+SET QUERY_TIMEOUT 10000
+"
+
+"Commands (Other)","SET REFERENTIAL_INTEGRITY","
+SET REFERENTIAL_INTEGRITY { TRUE | FALSE }
+","
+Disabled or enables referential integrity checking for the whole database.
+Enabling it does not check existing data. Use ALTER TABLE SET to disable it only
+for one table.
+
+This setting is not persistent.
+This command commits an open transaction in this connection.
+Admin rights are required to execute this command, as it affects all connections.
+","
+SET REFERENTIAL_INTEGRITY FALSE
+"
+
+"Commands (Other)","SET RETENTION_TIME","
+SET RETENTION_TIME int
+","
+This property is only used when using the MVStore storage engine.
+How long to retain old, persisted data, in milliseconds.
+The default is 45000 (45 seconds), 0 means overwrite data as early as possible.
+It is assumed that a file system and hard disk will flush all write buffers within this time.
+Using a lower value might be dangerous, unless the file system and hard disk flush the buffers earlier.
+To manually flush the buffers, use CHECKPOINT SYNC,
+however please note that according to various tests this does not always work as expected
+depending on the operating system and hardware.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting is persistent.
+This setting can be appended to the database URL: ""jdbc:h2:test;RETENTION_TIME=0""
+","
+SET RETENTION_TIME 0
+"
+
+"Commands (Other)","SET SALT HASH","
+SET SALT bytes HASH bytes
+","
+Sets the password salt and hash for the current user. The password must be in
+single quotes. It is case sensitive and can contain spaces.
+
+This command commits an open transaction in this connection.
+","
+SET SALT '00' HASH '1122'
+"
+
+"Commands (Other)","SET SCHEMA","
+SET SCHEMA schemaName
+","
+Changes the default schema of the current connection. The default schema is used
+in statements where no schema is set explicitly. The default schema for new
+connections is PUBLIC.
+
+This command does not commit a transaction, and rollback does not affect it.
+This setting can be appended to the database URL: ""jdbc:h2:test;SCHEMA=ABC""
+","
+SET SCHEMA INFORMATION_SCHEMA
+"
+
+"Commands (Other)","SET SCHEMA_SEARCH_PATH","
+SET SCHEMA_SEARCH_PATH schemaName [,...]
+","
+Changes the schema search path of the current connection. The default schema is
+used in statements where no schema is set explicitly. The default schema for new
+connections is PUBLIC.
+
+This command does not commit a transaction, and rollback does not affect it.
+This setting can be appended to the database URL: ""jdbc:h2:test;SCHEMA_SEARCH_PATH=ABC,DEF""
+","
+SET SCHEMA_SEARCH_PATH INFORMATION_SCHEMA, PUBLIC
+"
+
+"Commands (Other)","SET THROTTLE","
+SET THROTTLE int
+","
+Sets the throttle for the current connection. The value is the number of
+milliseconds delay after each 50 ms. The default value is 0 (throttling
+disabled).
+
+This command does not commit a transaction, and rollback does not affect it.
+This setting can be appended to the database URL: ""jdbc:h2:test;THROTTLE=50""
+","
+SET THROTTLE 200
+"
+
+"Commands (Other)","SET TRACE_LEVEL","
+SET { TRACE_LEVEL_FILE | TRACE_LEVEL_SYSTEM_OUT } int
+","
+Sets the trace level for file the file or system out stream. Levels are: 0=off,
+1=error, 2=info, 3=debug. The default level is 1 for file and 0 for system out.
+To use SLF4J, append "";TRACE_LEVEL_FILE=4"" to the database URL when opening the database.
+
+This setting is not persistent.
+Admin rights are required to execute this command, as it affects all connections.
+This command does not commit a transaction, and rollback does not affect it.
+This setting can be appended to the database URL: ""jdbc:h2:test;TRACE_LEVEL_SYSTEM_OUT=3""
+","
+SET TRACE_LEVEL_SYSTEM_OUT 3
+"
+
+"Commands (Other)","SET TRACE_MAX_FILE_SIZE","
+SET TRACE_MAX_FILE_SIZE int
+","
+Sets the maximum trace file size. If the file exceeds the limit, the file is
+renamed to .old and a new file is created. If another .old file exists, it is
+deleted. The default max size is 16 MB.
+
+This setting is persistent.
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting can be appended to the database URL: ""jdbc:h2:test;TRACE_MAX_FILE_SIZE=3""
+","
+SET TRACE_MAX_FILE_SIZE 10
+"
+
+"Commands (Other)","SET UNDO_LOG","
+SET UNDO_LOG int
+","
+Enables (1) or disables (0) the per session undo log. The undo log is enabled by
+default. When disabled, transactions can not be rolled back. This setting should
+only be used for bulk operations that don't need to be atomic.
+
+This command commits an open transaction in this connection.
+","
+SET UNDO_LOG 0
+"
+
+"Commands (Other)","SET WRITE_DELAY","
+SET WRITE_DELAY int
+","
+Set the maximum delay between a commit and flushing the log, in milliseconds.
+This setting is persistent. The default is 500 ms.
+
+Admin rights are required to execute this command, as it affects all connections.
+This command commits an open transaction in this connection.
+This setting can be appended to the database URL: ""jdbc:h2:test;WRITE_DELAY=0""
+","
+SET WRITE_DELAY 2000
+"
+
+"Commands (Other)","SHUTDOWN","
+SHUTDOWN [ IMMEDIATELY | COMPACT | DEFRAG ]
+","
+This statement closes all open connections to the database and closes the
+database. This command is usually not required, as the database is
+closed automatically when the last connection to it is closed.
+
+If no option is used, then the database is closed normally.
+All connections are closed, open transactions are rolled back.
+
+SHUTDOWN COMPACT fully compacts the database (re-creating the database may further reduce the database size).
+If the database is closed normally (using SHUTDOWN or by closing all connections), then the database is also compacted,
+but only for at most the time defined by the database setting ""h2.maxCompactTime"" in milliseconds (see there).
+
+SHUTDOWN IMMEDIATELY closes the database files without any cleanup and without compacting.
+
+SHUTDOWN DEFRAG re-orders the pages when closing the database so that table scans are faster. In case of MVStore it is currently equivalent to COMPACT.
+
+Admin rights are required to execute this command.
+","
+SHUTDOWN COMPACT
+"
+
+"Literals","Value","
+string | dollarQuotedString | numeric | dateAndTime | boolean | bytes
+    | interval | array | null
+","
+A literal value of any data type, or null.
+","
+10
+"
+
+"Literals","Array","
+ARRAY '[' [ expression, [,...] ] ']'
+","
+An array of values.
+","
+ARRAY[1, 2]
+ARRAY[1]
+ARRAY[]
+"
+
+"Literals","Boolean","
+TRUE | FALSE
+","
+A boolean value.
+","
+TRUE
+"
+
+"Literals","Bytes","
+X'hex'
+","
+A binary value. The hex value is not case sensitive.
+","
+X'01FF'
+"
+
+"Literals","Date","
+DATE 'yyyy-MM-dd'
+","
+A date literal. The limitations are the same as for the Java data type
+""java.sql.Date"", but for compatibility with other databases the suggested minimum
+and maximum years are 0001 and 9999.
+","
+DATE '2004-12-31'
+"
+
+"Literals","Date and time","
+date | time | timestamp | timestampWithTimeZone
+","
+A literal value of any date-time data type.
+","
+TIMESTAMP '1999-01-31 10:00:00'
+"
+
+"Literals","Decimal","
+[ + | - ] { { number [ . number ] } | { . number } }
+[ E [ + | - ] expNumber [...] ] ]
+","
+A decimal number with fixed precision and scale.
+Internally, ""java.lang.BigDecimal"" is used.
+To ensure the floating point representation is used, use CAST(X AS DOUBLE).
+There are some special decimal values: to represent positive infinity, use ""POWER(0, -1)"";
+for negative infinity, use ""(-POWER(0, -1))""; for -0.0, use ""(-CAST(0 AS DOUBLE))"";
+for ""NaN"" (not a number), use ""SQRT(-1)"".
+","
+SELECT -1600.05
+SELECT CAST(0 AS DOUBLE)
+SELECT -1.4e-10
+"
+
+"Literals","Dollar Quoted String","
+$$anythingExceptTwoDollarSigns$$
+","
+A string starts and ends with two dollar signs. Two dollar signs are not allowed
+within the text. A whitespace is required before the first set of dollar signs.
+No escaping is required within the text.
+","
+$$John's car$$
+"
+
+"Literals","Hex Number","
+[ + | - ] 0x hex
+","
+A number written in hexadecimal notation.
+","
+0xff
+"
+
+"Literals","Int","
+[ + | - ] number
+","
+The maximum integer number is 2147483647, the minimum is -2147483648.
+","
+10
+"
+
+"Literals","Long","
+[ + | - ] number
+","
+Long numbers are between -9223372036854775808 and 9223372036854775807.
+","
+100000
+"
+
+"Literals","Null","
+NULL
+","
+NULL is a value without data type and means 'unknown value'.
+","
+NULL
+"
+
+"Literals","Number","
+digit [...]
+","
+The maximum length of the number depends on the data type used.
+","
+100
+"
+
+"Literals","Numeric","
+decimal | int | long | hexNumber
+","
+The data type of a numeric value is always the lowest possible for the given value.
+If the number contains a dot this is decimal; otherwise it is int, long, or decimal (depending on the value).
+","
+SELECT -1600.05
+SELECT CAST(0 AS DOUBLE)
+SELECT -1.4e-10
+"
+
+"Literals","String","
+'anythingExceptSingleQuote'
+","
+A string starts and ends with a single quote. Two single quotes can be used to
+create a single quote inside a string.
+","
+'John''s car'
+"
+
+"Literals","Time","
+TIME [ WITHOUT TIME ZONE ] 'hh:mm:ss[.nnnnnnnnn]'
+","
+A time literal. A value is between 0:00:00 and 23:59:59.999999999
+and has nanosecond resolution.
+","
+TIME '23:59:59'
+"
+
+"Literals","Timestamp","
+TIMESTAMP [ WITHOUT TIME ZONE ] 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]'
+","
+A timestamp literal. The limitations are the same as for the Java data type
+""java.sql.Timestamp"", but for compatibility with other databases the suggested
+minimum and maximum years are 0001 and 9999.
+","
+TIMESTAMP '2005-12-31 23:59:59'
+"
+
+"Literals","Timestamp with time zone","
+TIMESTAMP WITH TIME ZONE 'yyyy-MM-dd hh:mm:ss[.nnnnnnnnn]
+[Z | { - | + } timeZoneOffsetString | timeZoneNameString ]'
+","
+A timestamp with time zone literal.
+If name of time zone is specified it will be converted to time zone offset.
+","
+TIMESTAMP WITH TIME ZONE '2005-12-31 23:59:59Z'
+TIMESTAMP WITH TIME ZONE '2005-12-31 23:59:59-10:00'
+TIMESTAMP WITH TIME ZONE '2005-12-31 23:59:59.123+05'
+TIMESTAMP WITH TIME ZONE '2005-12-31 23:59:59.123456789 Europe/London'
+"
+
+"Literals","Interval","
+intervalYear | intervalMonth | intervalDay | intervalHour | intervalMinute
+    | intervalSecond | intervalYearToMonth | intervalDayToHour
+    | intervalDayToMinute | intervalDayToSecond | intervalHourToMinute
+    | intervalHourToSecond | intervalMinuteToSecond
+","
+An interval literal.
+","
+INTERVAL '1-2' YEAR TO MONTH
+"
+
+"Literals","INTERVAL YEAR","
+INTERVAL [-|+] '[-|+]yearInt' YEAR
+","
+An INTERVAL YEAR literal.
+","
+INTERVAL '10' YEAR
+"
+
+"Literals","INTERVAL MONTH","
+INTERVAL [-|+] '[-|+]monthInt' MONTH
+","
+An INTERVAL MONTH literal.
+","
+INTERVAL '10' MONTH
+"
+
+"Literals","INTERVAL DAY","
+INTERVAL [-|+] '[-|+]dayInt' DAY
+","
+An INTERVAL DAY literal.
+","
+INTERVAL '10' DAY
+"
+
+"Literals","INTERVAL HOUR","
+INTERVAL [-|+] '[-|+]hourInt' HOUR
+","
+An INTERVAL HOUR literal.
+","
+INTERVAL '10' HOUR
+"
+
+"Literals","INTERVAL MINUTE","
+INTERVAL [-|+] '[-|+]minuteInt' MINUTE
+","
+An INTERVAL MINUTE literal.
+","
+INTERVAL '10' MINUTE
+"
+
+"Literals","INTERVAL SECOND","
+INTERVAL [-|+] '[-|+]secondInt[.nnnnnnnnn]' SECOND
+","
+An INTERVAL SECOND literal.
+","
+INTERVAL '10.123' SECOND
+"
+
+"Literals","INTERVAL YEAR TO MONTH","
+INTERVAL [-|+] '[-|+]yearInt-monthInt' YEAR TO MONTH
+","
+An INTERVAL YEAR TO MONTH literal.
+","
+INTERVAL '1-6' YEAR TO MONTH
+"
+
+"Literals","INTERVAL DAY TO HOUR","
+INTERVAL [-|+] '[-|+]dayInt hoursInt' DAY TO HOUR
+","
+An INTERVAL DAY TO HOUR literal.
+","
+INTERVAL '10 11' DAY TO HOUR
+"
+
+"Literals","INTERVAL DAY TO MINUTE","
+INTERVAL [-|+] '[-|+]dayInt hh:mm' DAY TO MINUTE
+","
+An INTERVAL DAY TO MINUTE literal.
+","
+INTERVAL '10 11:12' DAY TO MINUTE
+"
+
+"Literals","INTERVAL DAY TO SECOND","
+INTERVAL [-|+] '[-|+]dayInt hh:mm:ss[.nnnnnnnnn]' DAY TO SECOND
+","
+An INTERVAL DAY TO SECOND literal.
+","
+INTERVAL '10 11:12:13.123' DAY TO SECOND
+"
+
+"Literals","INTERVAL HOUR TO MINUTE","
+INTERVAL [-|+] '[-|+]hh:mm' HOUR TO MINUTE
+","
+An INTERVAL HOUR TO MINUTE literal.
+","
+INTERVAL '10:11' HOUR TO MINUTE
+"
+
+"Literals","INTERVAL HOUR TO SECOND","
+INTERVAL [-|+] '[-|+]hh:mm:ss[.nnnnnnnnn]' HOUR TO SECOND
+","
+An INTERVAL HOUR TO SECOND literal.
+","
+INTERVAL '10:11:12.123' HOUR TO SECOND
+"
+
+"Literals","INTERVAL MINUTE TO SECOND","
+INTERVAL [-|+] '[-|+]mm:ss[.nnnnnnnnn]' MINUTE TO SECOND
+","
+An INTERVAL MINUTE TO SECOND literal.
+","
+INTERVAL '11:12.123' MINUTE TO SECOND
+"
+
+"Datetime fields","Datetime field","
+yearField | monthField | dayOfMonthField
+    | hourField | minuteField | secondField
+    | millisecondField | microsecondField | nanosecondField
+    | timezoneHourField | timezoneMinuteField
+    | dayOfWeekField | isoWeekYearField | isoDayOfWeekField
+    | weekOfYearField | isoWeekOfYearField
+    | quarterField | dayOfYearField | epochField
+","
+Fields for EXTRACT, DATEADD, and DATEDIFF functions.
+","
+YEAR
+"
+
+"Datetime fields","Year field","
+YEAR | YYYY | YY | SQL_TSI_YEAR
+","
+Year.
+","
+YEAR
+"
+
+"Datetime fields","Month field","
+MONTH | MM | M | SQL_TSI_MONTH
+","
+Month (1-12).
+","
+MONTH
+"
+
+"Datetime fields","Day of month field","
+DAY | DD | D | SQL_TSI_DAY
+","
+Day of month (1-31).
+","
+DAY
+"
+
+"Datetime fields","Hour field","
+HOUR | HH | SQL_TSI_HOUR
+","
+Hour (0-23).
+","
+HOUR
+"
+
+"Datetime fields","Minute field","
+MINUTE | MI | N | SQL_TSI_MINUTE
+","
+Minute (0-59).
+","
+MINUTE
+"
+
+"Datetime fields","Second field","
+SECOND | SS | S | SQL_TSI_SECOND
+","
+Second (0-59).
+","
+SECOND
+"
+
+"Datetime fields","Millisecond field","
+MILLISECOND | MS
+","
+Millisecond (0-999).
+","
+MILLISECOND
+"
+
+"Datetime fields","Microsecond field","
+MICROSECOND | MCS
+","
+Microsecond (0-999999).
+","
+MICROSECOND
+"
+
+"Datetime fields","Nanosecond field","
+NANOSECOND | NS
+","
+Nanosecond (0-999999999).
+","
+NANOSECOND
+"
+
+"Datetime fields","Timezone hour field","
+TIMEZONE_HOUR
+","
+Timezone hour (from -18 to +18).
+","
+TIMEZONE_HOUR
+"
+
+"Datetime fields","Timezone minute field","
+TIMEZONE_MINUTE
+","
+Timezone minute (from -59 to +59).
+","
+TIMEZONE_MINUTE
+"
+
+"Datetime fields","Day of week field","
+DAY_OF_WEEK | DAYOFWEEK | DOW
+","
+Day of week (1-7). Sunday is 1.
+","
+DAY_OF_WEEK
+"
+
+"Datetime fields","ISO week year field","
+ISO_YEAR | ISOYEAR
+","
+Returns the ISO week year from a date/time value.
+","
+ISO_YEAR
+"
+
+"Datetime fields","ISO day of week field","
+ISO_DAY_OF_WEEK | ISODOW
+","
+ISO day of week (1-7). Monday is 1.
+","
+ISO_DAY_OF_WEEK
+"
+
+"Datetime fields","Week of year field","
+WEEK | WW | W | SQL_TSI_WEEK
+","
+Week of year (1-53).
+EXTRACT function uses local rules to get number of week in year.
+DATEDIFF function uses Sunday as a first day of week.
+","
+WEEK
+"
+
+"Datetime fields","ISO week of year field","
+ISO_WEEK
+","
+ISO week of year (1-53).
+ISO definition is used when first week of year should have at least four days
+and week is started with Monday.
+","
+ISO_WEEK
+"
+
+"Datetime fields","Quarter field","
+QUARTER
+","
+Quarter (1-4).
+","
+QUARTER
+"
+
+"Datetime fields","Day of year field","
+DAYOFYEAR | DAY_OF_YEAR | DOY | DY
+","
+Day of year (1-366).
+","
+DAYOFYEAR
+"
+
+"Datetime fields","Epoch field","
+EPOCH
+","
+For TIMESTAMP values number of seconds since 1970-01-01 00:00:00 in local time zone.
+For TIMESTAMP WITH TIME ZONE values number of seconds since 1970-01-01 00:00:00 in UTC time zone.
+For DATE values number of seconds since 1970-01-01.
+For TIME values number of seconds since midnight.
+","
+EPOCH
+"
+
+"Other Grammar","Alias","
+name
+","
+An alias is a name that is only valid in the context of the statement.
+","
+A
+"
+
+"Other Grammar","And Condition","
+condition [ { AND condition } [...] ]
+","
+Value or condition.
+","
+ID=1 AND NAME='Hi'
+"
+
+"Other Grammar","Case","
+CASE expression { WHEN expression THEN expression } [...]
+[ ELSE expression ] END
+","
+Returns the first expression where the value is equal to the test expression. If
+no else part is specified, return NULL.
+","
+CASE CNT WHEN 0 THEN 'No' WHEN 1 THEN 'One' ELSE 'Some' END
+"
+
+"Other Grammar","Case When","
+CASE { WHEN expression THEN expression} [...]
+[ ELSE expression ] END
+","
+Returns the first expression where the condition is true. If no else part is
+specified, return NULL.
+","
+CASE WHEN CNT<10 THEN 'Low' ELSE 'High' END
+"
+
+"Other Grammar","Cipher","
+AES
+","
+Only the algorithm AES (""AES-128"") is supported currently.
+","
+AES
+"
+
+"Other Grammar","Column Definition","
+dataType [ VISIBLE | INVISIBLE ]
+[ { DEFAULT expression
+    | AS computedColumnExpression
+    | GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY [(sequenceOptions)]} ]
+[ ON UPDATE expression ] [ [ NOT ] NULL ]
+[ { AUTO_INCREMENT | IDENTITY } [ ( startInt [, incrementInt ] ) ] ]
+[ SELECTIVITY selectivity ] [ COMMENT expression ]
+[ PRIMARY KEY [ HASH ] | UNIQUE ] [ CHECK condition ]
+","
+Default expressions are used if no explicit value was used when adding a row.
+The computed column expression is evaluated and assigned whenever the row changes.
+On update column expression is used if row is updated,
+at least one column have a new value that is different from its previous value
+and value for this column is not set explicitly in update statement.
+
+Identity, auto-increment, or generated as identity columns are columns with a sequence as the default.
+The column declared as the identity columns with IDENTITY data type or with IDENTITY () clause
+is implicitly the primary key column of this table.
+AUTO_INCREMENT and GENERATED clauses do not create the primary key constraint.
+GENERATED ALWAYS is accepted by treated in the same way as GENERATED BY DEFAULT.
+
+The invisible column will not be displayed as a result of SELECT * query.
+Otherwise, it works as normal column.
+
+The options PRIMARY KEY, UNIQUE, and CHECK are not supported for ALTER statements.
+
+Check constraints can reference columns of the table,
+and they can reference objects that exist while the statement is executed.
+Conditions are only checked when a row is added or modified
+in the table where the constraint exists.
+
+","
+CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255) DEFAULT '');
+CREATE TABLE TEST(ID BIGINT IDENTITY);
+CREATE TABLE TEST(QUANTITY INT, PRICE DECIMAL, AMOUNT DECIMAL AS QUANTITY*PRICE);
+"
+
+"Other Grammar","Comments","
+-- anythingUntilEndOfLine | // anythingUntilEndOfLine | /* anythingUntilEndComment */
+","
+Comments can be used anywhere in a command and are ignored by the database. Line
+comments end with a newline. Block comments cannot be nested, but can be
+multiple lines long.
+","
+// This is a comment
+"
+
+"Other Grammar","Compare","
+<> | <= | >= | = | < | > | != | &&
+","
+Comparison operator. The operator != is the same as <>.
+The operator ""&&"" means overlapping; it can only be used with geometry types.
+","
+<>
+"
+
+"Other Grammar","Condition","
+operand [ conditionRightHandSide ] | NOT condition | EXISTS ( select )
+","
+Boolean value or condition.
+","
+ID<>2
+"
+
+"Other Grammar","Condition Right Hand Side","
+compare { { { ALL | ANY | SOME } ( select ) } | operand }
+    | IS [ NOT ] NULL
+    | IS [ NOT ] [ DISTINCT FROM ] operand
+    | BETWEEN operand AND operand
+    | IN ( { select | expression [,...] } )
+    | [ NOT ] [ LIKE | ILIKE ] operand [ ESCAPE string ]
+    | [ NOT ] REGEXP operand
+","
+The right hand side of a condition.
+
+Quantified comparison predicate ALL returns TRUE if specified comparison operation between
+left size of condition and each row from a subquery returns TRUE, including case when there are no rows.
+ALL predicate returns FALSE if at least one such comparison returns FALSE.
+Otherwise it returns NULL.
+
+Quantified comparison predicates ANY and SOME return TRUE if specified comparison operation between
+left size of condition and at least one row from a subquery returns TRUE.
+ANY and SOME predicates return FALSE if all such comparisons return FALSE.
+Otherwise it returns NULL.
+Note that these predicates have priority over ANY and SOME aggregate functions with subquery on the right side.
+Use parentheses around aggregate function.
+
+The conditions ""IS [ NOT ]"" and ""IS [ NOT ] DISTINCT FROM"" are null-safe, meaning
+NULL is considered the same as NULL, and the condition never evaluates to NULL.
+
+When comparing with LIKE, the wildcards characters are ""_"" (any one character)
+and ""%"" (any characters). The database uses an index when comparing with LIKE
+except if the operand starts with a wildcard. To search for the characters ""%"" and
+""_"", the characters need to be escaped. The default escape character is "" \ "" (backslash).
+To select no escape character, use ""ESCAPE ''"" (empty string).
+At most one escape character is allowed.
+Each character that follows the escape character in the pattern needs to match exactly.
+Patterns that end with an escape character are invalid and the expression returns NULL.
+
+ILIKE does a case-insensitive compare.
+
+When comparing with REGEXP, regular expression matching is used.
+See Java ""Matcher.find"" for details.
+","
+VALUE > 10
+A IS NOT DISTINCT FROM B
+LIKE 'Jo%'
+"
+
+"Other Grammar","Constraint","
+[ constraintNameDefinition ]
+{ CHECK expression
+    | UNIQUE ( columnName [,...] )
+    | referentialConstraint
+    | PRIMARY KEY [ HASH ] ( columnName [,...] ) }
+","
+Defines a constraint.
+The check condition must evaluate to TRUE, FALSE or NULL.
+TRUE and NULL mean the operation is to be permitted,
+and FALSE means the operation is to be rejected.
+To prevent NULL in a column, use NOT NULL instead of a check constraint.
+","
+PRIMARY KEY(ID, NAME)
+"
+
+"Other Grammar","Constraint Name Definition","
+CONSTRAINT [ IF NOT EXISTS ] newConstraintName
+","
+Defines a constraint name.
+","
+CONSTRAINT CONST_ID
+"
+
+"Other Grammar","Csv Options","
+charsetString [, fieldSepString [, fieldDelimString [, escString [, nullString]]]]]
+    | optionString
+","
+Optional parameters for CSVREAD and CSVWRITE.
+Instead of setting the options one by one, all options can be
+combined into a space separated key-value pairs, as follows:
+""STRINGDECODE('charset=UTF-8 escape=\"" fieldDelimiter=\"" fieldSeparator=, ' ||""
+""'lineComment=# lineSeparator=\n null= rowSeparator=')"".
+The following options are supported:
+
+""caseSensitiveColumnNames"" (true or false; disabled by default),
+
+""charset"" (for example 'UTF-8'),
+
+""escape"" (the character that escapes the field delimiter),
+
+""fieldDelimiter"" (a double quote by default),
+
+""fieldSeparator"" (a comma by default),
+
+""lineComment"" (disabled by default),
+
+""lineSeparator"" (the line separator used for writing; ignored for reading),
+
+""null"", Support reading existing CSV files that contain explicit ""null"" delimiters.
+Note that an empty, unquoted values are also treated as null.
+
+""preserveWhitespace"" (true or false; disabled by default),
+
+""writeColumnHeader"" (true or false; enabled by default).
+
+For a newline or other special character, use STRINGDECODE as in the example above.
+A space needs to be escaped with a backslash (""'\ '""), and
+a backslash needs to be escaped with another backslash (""'\\'"").
+All other characters are not to be escaped, that means
+newline and tab characters are written as such.
+","
+CALL CSVWRITE('test2.csv', 'SELECT * FROM TEST', 'charset=UTF-8 fieldSeparator=|');
+"
+
+"Other Grammar","Data Type","
+intType | booleanType | tinyintType | smallintType | bigintType | identityType
+    | decimalType | doubleType | realType | dateType | timeType | timestampType
+    | timestampWithTimeZoneType | binaryType | otherType | varcharType
+    | varcharIgnorecaseType | charType | blobType | clobType | uuidType
+    | arrayType | enumType | intervalType
+","
+A data type definition.
+","
+INT
+"
+
+"Other Grammar","Digit","
+0-9
+","
+A digit.
+","
+0
+"
+
+"Other Grammar","Expression","
+andCondition [ { OR andCondition } [...] ]
+","
+Value or condition.
+","
+ID=1 OR NAME='Hi'
+"
+
+"Other Grammar","Factor","
+term [ { { * | / | % } term } [...] ]
+","
+A value or a numeric factor.
+","
+ID * 10
+"
+
+"Other Grammar","Hex","
+{ { digit | a-f | A-F } { digit | a-f | A-F } } [...]
+","
+The hexadecimal representation of a number or of bytes. Two characters are one
+byte.
+","
+cafe
+"
+
+"Other Grammar","Index Column","
+columnName [ ASC | DESC ] [ NULLS { FIRST | LAST } ]
+","
+Indexes this column in ascending or descending order. Usually it is not required
+to specify the order; however doing so will speed up large queries that order
+the column in the same way.
+","
+NAME
+"
+
+"Other Grammar","Insert columns and source","
+{ [ ( columnName [,...] ) ]
+    { insertValues | [ DIRECT ] [ SORTED ] select | DEFAULT VALUES } }
+    | { SET { columnName = { DEFAULT | expression } } [,...] }
+","
+Names of columns and their values for INSERT statement.
+","
+(ID, NAME) VALUES (1, 'Test')
+"
+
+"Other Grammar","Insert values","
+VALUES { DEFAULT|expression | [ROW] ({DEFAULT|expression} [,...]) }, [,...]
+","
+Values for INSERT statement.
+","
+VALUES (1, 'Test')
+"
+
+"Other Grammar","Merge when clause","
+mergeWhenMatchedClause|mergeWhenNotMatchedClause
+","
+WHEN MATCHED or WHEN NOT MATCHED clause for MERGE USING command.
+","
+WHEN MATCHED THEN DELETE
+"
+
+"Other Grammar","Merge when matched clause","
+WHEN MATCHED [ AND expression ] THEN
+UPDATE SET setClauseList
+    | DELETE
+    | {UPDATE SET setClauseList [ WHERE expression ] DELETE [ WHERE expression ]}
+","
+WHEN MATCHED clause for MERGE USING command.
+
+If both UPDATE and DELETE are specified, DELETE can delete only rows that were updated,
+WHERE condition in DELETE clause can be used to specify which updated rows should be deleted.
+This condition checks values in updated row.
+","
+WHEN MATCHED THEN UPDATE SET VALUE = S.VALUE
+WHEN MATCHED THEN DELETE
+"
+
+"Other Grammar","Merge when not matched clause","
+WHEN NOT MATCHED [ AND expression ] THEN INSERT insertColumnsAndSource
+","
+WHEN NOT MATCHED clause for MERGE USING command.
+","
+WHEN NOT MATCHED THEN INSERT (ID, NAME) VALUES (S.ID, S.NAME)
+"
+
+"Other Grammar","Name","
+{ { A-Z|_ } [ { A-Z|_|0-9 } [...] ] } | quotedName
+","
+Names are not case sensitive. There is no maximum name length.
+","
+TEST
+"
+
+"Other Grammar","Operand","
+summand [ { || summand } [...] ]
+","
+A value or a concatenation of values.
+In the default mode, the result is NULL if either parameter is NULL.
+","
+'Hi' || ' Eva'
+"
+
+"Other Grammar","Order","
+{ int | expression } [ ASC | DESC ] [ NULLS { FIRST | LAST } ]
+","
+Sorts the result by the given column number, or by an expression. If the
+expression is a single parameter, then the value is interpreted as a column
+number. Negative column numbers reverse the sort order.
+","
+NAME DESC NULLS LAST
+"
+
+"Other Grammar","Quoted Name","
+""anythingExceptDoubleQuote""
+","
+Quoted names are case sensitive, and can contain spaces. There is no maximum
+name length. Two double quotes can be used to create a single double quote
+inside an identifier.
+","
+""FirstName""
+"
+
+"Other Grammar","Referential Constraint","
+FOREIGN KEY ( columnName [,...] )
+REFERENCES [ refTableName ] [ ( refColumnName [,...] ) ]
+[ ON DELETE referentialAction ] [ ON UPDATE referentialAction ]
+","
+Defines a referential constraint.
+If the table name is not specified, then the same table is referenced.
+RESTRICT is the default action.
+If the referenced columns are not specified, then the primary key columns are used.
+The required indexes are automatically created if required.
+Some tables may not be referenced, such as metadata tables.
+","
+FOREIGN KEY(ID) REFERENCES TEST(ID)
+"
+
+"Other Grammar","Referential Action","
+CASCADE | RESTRICT | NO ACTION | SET { DEFAULT | NULL }
+","
+The action CASCADE will cause conflicting rows in the referencing (child) table to be deleted or updated.
+RESTRICT is the default action.
+As this database does not support deferred checking, RESTRICT and NO ACTION will both throw an exception if the constraint is violated.
+The action SET DEFAULT will set the column in the referencing (child) table to the default value, while SET NULL will set it to NULL.
+","
+FOREIGN KEY(ID) REFERENCES TEST(ID) ON UPDATE CASCADE
+"
+
+"Other Grammar","Script Compression Encryption","
+[ COMPRESSION { DEFLATE | LZF | ZIP | GZIP } ]
+[ CIPHER cipher PASSWORD string ]
+","
+The compression and encryption algorithm to use for script files.
+When using encryption, only DEFLATE and LZF are supported.
+LZF is faster but uses more space.
+","
+COMPRESSION LZF
+"
+
+"Other Grammar","Row value expression","
+ROW (expression, [,...])
+    | ( [ expression, expression [,...] ] )
+    | expression
+","
+A row value expression.
+","
+ROW (1)
+(1, 2)
+1
+"
+
+"Other Grammar","Select Expression","
+wildcardExpression | expression [ [ AS ] columnAlias ]
+","
+An expression in a SELECT statement.
+","
+ID AS VALUE
+"
+
+"Other Grammar","Sequence options","
+[ START WITH long ]
+[ INCREMENT BY long ]
+[ MINVALUE long | NOMINVALUE | NO MINVALUE ]
+[ MAXVALUE long | NOMAXVALUE | NO MAXVALUE ]
+[ CYCLE long | NOCYCLE | NO CYCLE ]
+[ CACHE long | NOCACHE | NO CACHE ]
+","
+Options of a sequence.
+","
+START WITH 1
+"
+
+"Other Grammar","Set clause list","
+{ { columnName = { DEFAULT | expression } } [,...] }
+    | { ( columnName [,...] ) = {rowValueExpression|(select)} }
+","
+List of SET clauses.
+","
+NAME = 'Test', VALUE = 2
+(A, B) = (1, 2)
+(A, B) = (SELECT X, Y FROM OTHER T2 WHERE T1.ID = T2.ID)
+"
+
+"Other Grammar","Summand","
+factor [ { { + | - } factor } [...] ]
+","
+A value or a numeric sum.
+
+Please note the text concatenation operator is ""||"".
+","
+ID + 20
+"
+
+"Other Grammar","Table Expression","
+{ [ schemaName. ] tableName | ( select ) | valuesExpression }
+[ [ AS ] newTableAlias [ ( columnName [,...] ) ] ]
+[ USE INDEX ([ indexName [,...] ]) ]
+[ { { LEFT | RIGHT } [ OUTER ] | [ INNER ] | CROSS | NATURAL }
+    JOIN tableExpression [ ON expression ] ]
+","
+Joins a table. The join expression is not supported for cross and natural joins.
+A natural join is an inner join, where the condition is automatically on the
+columns with the same name.
+","
+TEST AS T LEFT JOIN TEST AS T1 ON T.ID = T1.ID
+"
+
+"Other Grammar","Within group specification","
+WITHIN GROUP (ORDER BY {expression [ASC|DESC]} [,...])
+","
+Group specification for ordered set functions.
+","
+WITHIN GROUP (ORDER BY ID DESC)
+"
+
+"Other Grammar","Wildcard expression","
+{* | tableAlias.*} [EXCEPT ([tableAlias.]columnName, [,...])]
+","
+A wildcard expression in a SELECT statement.
+A wildcard expression represents all visible columns. Some columns can be excluded with optional EXCEPT clause.
+","
+*
+* EXCEPT (DATA)
+"
+
+"Other Grammar","Window name or specification","
+windowName | windowSpecification
+","
+A window name or inline specification for a window function or aggregate.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+W1
+(ORDER BY ID)
+"
+
+"Other Grammar","Window specification","
+([existingWindowName]
+[PARTITION BY expression [,...]] [ORDER BY order [,...]]
+[windowFrame])
+","
+A window specification for a window, window function or aggregate.
+
+If name of an existing window is specified its clauses are used by default.
+
+Optional window partition clause separates rows into independent partitions.
+Each partition is processed separately.
+If this clause is not present there is one implicit partition with all rows.
+
+Optional window order clause specifies order of rows in the partition.
+If some rows have the same order position they are considered as a group of rows in optional window frame clause.
+
+Optional window frame clause specifies which rows are processed by a window function,
+see its documentation for a more details.
+","
+()
+(W1 ORDER BY ID)
+(PARTITION BY CATEGORY)
+(PARTITION BY CATEGORY ORDER BY NAME, ID)
+(ORDER BY Y RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE TIES)
+"
+
+"Other Grammar","Window frame","
+ROWS|RANGE|GROUP
+{windowFramePreceding|BETWEEN windowFrameBound AND windowFrameBound}
+[EXCLUDE {CURRENT ROW|GROUP|TIES|NO OTHERS}]
+","
+A window frame clause.
+May be specified only for aggregates and FIRST_VALUE(), LAST_VALUE(), and NTH_VALUE() window functions.
+
+If this clause is not specified for an aggregate or window function that supports this clause
+the default window frame depends on window order clause.
+If window order clause is also not specified
+the default window frame contains all the rows in the partition.
+If window order clause is specified
+the default window frame contains all preceding rows and all rows from the current group.
+
+Window frame unit determines how rows or groups of rows are selected and counted.
+If ROWS is specified rows are not grouped in any way and relative numbers of rows are used in bounds.
+If RANGE is specified rows are grouped according window order clause,
+preceding and following values mean the difference between value in the current row and in the target rows,
+and CURRENT ROW in bound specification means current group of rows.
+If GROUPS is specified rows are grouped according window order clause,
+preceding and following values means relative number of groups of rows,
+and CURRENT ROW in bound specification means current group of rows.
+
+If only window frame preceding clause is specified it is treated as
+BETWEEN windowFramePreceding AND CURRENT ROW.
+
+Optional window frame exclusion clause specifies rows that should be excluded from the frame.
+EXCLUDE CURRENT ROW excludes only the current row regardless the window frame unit.
+EXCLUDE GROUP excludes the whole current group of rows, including the current row.
+EXCLUDE TIES excludes the current group of rows, but not the current row.
+EXCLUDE NO OTHERS is default and it does not exclude anything.
+","
+ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE TIES
+"
+
+"Other Grammar","Window frame preceding","
+UNBOUNDED PRECEDING|value PRECEDING|CURRENT ROW
+","
+A window frame preceding clause.
+If value is specified it should not be negative.
+","
+UNBOUNDED PRECEDING
+1 PRECEDING
+CURRENT ROW
+"
+
+"Other Grammar","Window frame bound","
+UNBOUNDED PRECEDING|value PRECEDING|CURRENT ROW
+    |value FOLLOWING|UNBOUNDED FOLLOWING
+","
+A window frame bound clause.
+If value is specified it should not be negative.
+","
+UNBOUNDED PRECEDING
+UNBOUNDED FOLLOWING
+1 FOLLOWING
+CURRENT ROW
+"
+
+"Other Grammar","Term","
+value
+    | column
+    | ?[ int ]
+    | NEXT VALUE FOR sequenceName
+    | function
+    | { - | + } term
+    | ( expression )
+    | select
+    | case
+    | caseWhen
+    | userDefinedFunctionName
+","
+A value. Parameters can be indexed, for example ""?1"" meaning the first parameter.
+","
+'Hello'
+"
+
+"Other Grammar","Column","
+[[schemaName.]tableAlias.] { columnName | _ROWID_ }
+","
+A column name with optional table alias and schema.
+_ROWID_ can be used to access unique row identifier.
+","
+ID
+"
+
+"Data Types","INT Type","
+INT | INTEGER | MEDIUMINT | INT4 | SIGNED
+","
+Possible values: -2147483648 to 2147483647.
+
+Mapped to ""java.lang.Integer"".
+","
+INT
+"
+
+"Data Types","BOOLEAN Type","
+BOOLEAN | BIT | BOOL
+","
+Possible values: TRUE and FALSE.
+
+Mapped to ""java.lang.Boolean"".
+","
+BOOLEAN
+"
+
+"Data Types","TINYINT Type","
+TINYINT
+","
+Possible values are: -128 to 127.
+
+Mapped to ""java.lang.Byte"".
+","
+TINYINT
+"
+
+"Data Types","SMALLINT Type","
+SMALLINT | INT2 | YEAR
+","
+Possible values: -32768 to 32767.
+
+Mapped to ""java.lang.Short"".
+","
+SMALLINT
+"
+
+"Data Types","BIGINT Type","
+BIGINT | INT8
+","
+Possible values: -9223372036854775808 to 9223372036854775807.
+
+Mapped to ""java.lang.Long"".
+","
+BIGINT
+"
+
+"Data Types","IDENTITY Type","
+IDENTITY
+","
+Auto-Increment value. Possible values: -9223372036854775808 to
+9223372036854775807. Used values are never re-used, even when the transaction is
+rolled back.
+
+Mapped to ""java.lang.Long"".
+","
+IDENTITY
+"
+
+"Data Types","DECIMAL Type","
+{ DECIMAL | NUMBER | DEC | NUMERIC } ( precisionInt [ , scaleInt ] )
+","
+Data type with fixed precision and scale. This data type is recommended for
+storing currency values.
+
+Mapped to ""java.math.BigDecimal"".
+","
+DECIMAL(20, 2)
+"
+
+"Data Types","DOUBLE Type","
+{ DOUBLE [ PRECISION ] | FLOAT [ ( precisionInt ) ] | FLOAT8 }
+","
+A floating point number. Should not be used to represent currency values, because
+of rounding problems.
+If precision value is specified for FLOAT type name, it should be from 25 to 53.
+
+Mapped to ""java.lang.Double"".
+","
+DOUBLE
+"
+
+"Data Types","REAL Type","
+{ REAL | FLOAT ( precisionInt ) | FLOAT4 }
+","
+A single precision floating point number. Should not be used to represent currency
+values, because of rounding problems.
+Precision value for FLOAT type name should be from 0 to 24.
+
+Mapped to ""java.lang.Float"".
+","
+REAL
+"
+
+"Data Types","TIME Type","
+TIME [ ( precisionInt ) ] [ WITHOUT TIME ZONE ]
+","
+The time data type. The format is hh:mm:ss[.nnnnnnnnn].
+If fractional seconds precision is specified it should be from 0 to 9, 0 is default.
+
+Mapped to ""java.sql.Time"". When converted to a ""java.sql.Date"", the date is set to ""1970-01-01"".
+""java.time.LocalTime"" is also supported on Java 8 and later versions.
+Use ""java.time.LocalTime"" or ""String"" instead of ""java.sql.Time"" when non-zero precision is needed.
+Cast from higher fractional seconds precision to lower fractional seconds precision performs round half up;
+if result of rounding is higher than maximum supported value 23:59:59.999999999 it is saturated to 23:59:59.999999999.
+","
+TIME
+TIME(9)
+"
+
+"Data Types","DATE Type","
+DATE
+","
+The date data type. The format is yyyy-MM-dd.
+
+Mapped to ""java.sql.Date"", with the time set to ""00:00:00""
+(or to the next possible time if midnight doesn't exist for the given date and timezone due to a daylight saving change).
+""java.time.LocalDate"" is also supported on Java 8 and later versions.
+","
+DATE
+"
+
+"Data Types","TIMESTAMP Type","
+{ TIMESTAMP [ ( precisionInt ) ] [ WITHOUT TIME ZONE ]
+    | DATETIME [ ( precisionInt ) ] | SMALLDATETIME }
+","
+The timestamp data type. The format is yyyy-MM-dd hh:mm:ss[.nnnnnnnnn].
+Stored internally as a BCD-encoded date, and nanoseconds since midnight.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+Fractional seconds precision of SMALLDATETIME is always 0 and cannot be specified.
+
+Mapped to ""java.sql.Timestamp"" (""java.util.Date"" may be used too).
+""java.time.LocalDateTime"" is also supported on Java 8 and later versions.
+Cast from higher fractional seconds precision to lower fractional seconds precision performs round half up.
+","
+TIMESTAMP
+TIMESTAMP(9)
+"
+
+"Data Types","TIMESTAMP WITH TIME ZONE Type","
+TIMESTAMP [ ( precisionInt ) ] WITH TIME ZONE
+","
+The timestamp with time zone data type.
+Stored internally as a BCD-encoded date, nanoseconds since midnight, and time zone offset in minutes.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+
+Mapped to ""org.h2.api.TimestampWithTimeZone"".
+""java.time.OffsetDateTime"" and ""java.time.Instant"" are also supported on Java 8 and later versions.
+
+Values of this data type are compared by UTC values. It means that ""2010-01-01 10:00:00+01"" is greater than ""2010-01-01 11:00:00+03"".
+
+Conversion to ""TIMESTAMP"" uses time zone offset to get UTC time and converts it to local time using the system time zone.
+Conversion from ""TIMESTAMP"" does the same operations in reverse and sets time zone offset to offset of the system time zone.
+Cast from higher fractional seconds precision to lower fractional seconds precision performs round half up.
+","
+TIMESTAMP WITH TIME ZONE
+TIMESTAMP(9) WITH TIME ZONE
+"
+
+"Data Types","BINARY Type","
+{ BINARY | VARBINARY | BINARY VARYING
+    | LONGVARBINARY | RAW | BYTEA }
+[ ( precisionInt ) ]
+","
+Represents a byte array. For very long arrays, use BLOB.
+The maximum size is 2 GB, but the whole object is kept in
+memory when using this data type. The precision is a size constraint;
+only the actual data is persisted. For large text data BLOB or CLOB
+should be used.
+
+Mapped to byte[].
+","
+BINARY(1000)
+"
+
+"Data Types","OTHER Type","
+OTHER
+","
+This type allows storing serialized Java objects. Internally, a byte array is used.
+Serialization and deserialization is done on the client side only.
+Deserialization is only done when ""getObject"" is called.
+Java operations cannot be executed inside the database engine for security reasons.
+Use ""PreparedStatement.setObject"" to store values.
+
+Mapped to ""java.lang.Object"" (or any subclass).
+","
+OTHER
+"
+
+"Data Types","VARCHAR Type","
+{ VARCHAR | CHARACTER VARYING | LONGVARCHAR | VARCHAR2 | NVARCHAR
+    | NVARCHAR2 | VARCHAR_CASESENSITIVE} [ ( precisionInt ) ]
+","
+A Unicode String.
+Use two single quotes ('') to create a quote.
+
+The maximum precision is ""Integer.MAX_VALUE"".
+The precision is a size constraint; only the actual data is persisted.
+
+The whole text is loaded into memory when using this data type.
+For large text data CLOB should be used; see there for details.
+
+Mapped to ""java.lang.String"".
+","
+VARCHAR(255)
+"
+
+"Data Types","VARCHAR_IGNORECASE Type","
+VARCHAR_IGNORECASE [ ( precisionInt ) ]
+","
+Same as VARCHAR, but not case sensitive when comparing.
+Stored in mixed case.
+
+The maximum precision is ""Integer.MAX_VALUE"".
+The precision is a size constraint; only the actual data is persisted.
+
+The whole text is loaded into memory when using this data type.
+For large text data CLOB should be used; see there for details.
+
+Mapped to ""java.lang.String"".
+","
+VARCHAR_IGNORECASE
+"
+
+"Data Types","CHAR Type","
+{ CHAR | CHARACTER | NCHAR } [ ( precisionInt ) ]
+","
+A Unicode String.
+This type is supported for compatibility with other databases and older applications.
+The difference to VARCHAR is that trailing spaces are ignored and not persisted.
+
+The maximum precision is ""Integer.MAX_VALUE"".
+The precision is a size constraint; only the actual data is persisted.
+
+The whole text is kept in memory when using this data type.
+For large text data CLOB should be used; see there for details.
+
+Mapped to ""java.lang.String"".
+","
+CHAR(10)
+"
+
+"Data Types","BLOB Type","
+{ BLOB | BINARY LARGE OBJECT
+    | TINYBLOB | MEDIUMBLOB | LONGBLOB | IMAGE | OID }
+[ ( precisionInt [K|M|G|T|P]) ]
+","
+Like BINARY, but intended for very large values such as files or images. Unlike
+when using BINARY, large objects are not kept fully in-memory. Use
+""PreparedStatement.setBinaryStream"" to store values. See also CLOB and
+Advanced / Large Objects.
+
+Mapped to ""java.sql.Blob"" (""java.io.InputStream"" is also supported).
+","
+BLOB
+BLOB(10K)
+"
+
+"Data Types","CLOB Type","
+{ CLOB | CHARACTER LARGE OBJECT
+    | TINYTEXT | TEXT | MEDIUMTEXT | LONGTEXT | NTEXT | NCLOB }
+[ ( precisionInt [K|M|G|T|P] [CHARACTERS|OCTETS]) ]
+","
+CLOB is like VARCHAR, but intended for very large values. Unlike when using
+VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed.
+CLOB should be used for documents and texts with arbitrary size such as XML or
+HTML documents, text files, or memo fields of unlimited size. Use
+""PreparedStatement.setCharacterStream"" to store values. See also Advanced / Large Objects.
+
+VARCHAR should be used for text with relatively short average size (for example
+shorter than 200 characters). Short CLOB values are stored inline, but there is
+an overhead compared to VARCHAR.
+
+Precision, if any, should be specified in characters, CHARACTERS and OCTETS units have no effect in H2.
+
+Mapped to ""java.sql.Clob"" (""java.io.Reader"" is also supported).
+","
+CLOB
+CLOB(10K)
+"
+
+"Data Types","UUID Type","
+UUID
+","
+Universally unique identifier. This is a 128 bit value.
+To store values, use ""PreparedStatement.setBytes"",
+""setString"", or ""setObject(uuid)"" (where ""uuid"" is a ""java.util.UUID"").
+""ResultSet.getObject"" will return a ""java.util.UUID"".
+
+Please note that using an index on randomly generated data will
+result on poor performance once there are millions of rows in a table.
+The reason is that the cache behavior is very bad with randomly distributed data.
+This is a problem for any database system.
+
+For details, see the documentation of ""java.util.UUID"".
+","
+UUID
+"
+
+"Data Types","ARRAY Type","
+ARRAY
+","
+An array of values.
+Mapped to ""java.lang.Object[]"" (arrays of any non-primitive type are also supported).
+
+Use a value list (1, 2) or ""PreparedStatement.setObject(.., new Object[] {..})"" to store values,
+and ""ResultSet.getObject(..)"" or ""ResultSet.getArray(..)"" to retrieve the values.
+","
+ARRAY
+"
+
+"Data Types","ENUM Type","
+{ ENUM (string [, ... ]) }
+","
+A type with enumerated values.
+Mapped to ""java.lang.Integer"".
+
+The first provided value is mapped to 0, the
+second mapped to 1, and so on.
+
+Duplicate and empty values are not permitted.
+","
+
+ENUM('clubs', 'diamonds', 'hearts', 'spades')
+"
+"Data Types","GEOMETRY Type","
+GEOMETRY
+    [({ GEOMETRY |
+    { POINT
+    | LINESTRING
+    | POLYGON
+    | MULTIPOINT
+    | MULTILINESTRING
+    | MULTIPOLYGON
+    | GEOMETRYCOLLECTION } [Z|M|ZM]}
+    [, sridInt] )]
+","
+A spatial geometry type.
+If additional constraints are not specified this type accepts all supported types of geometries.
+A constraint with required geometry type and dimension system can be set by specifying name of the type and
+dimension system. A whitespace between them is optional.
+2D dimension system does not have a name and assumed if only a geometry type name is specified.
+POINT means 2D point, POINT Z or POINTZ means 3D point.
+GEOMETRY constraint means no restrictions on type or dimension system of geometry.
+A constraint with required spatial reference system identifier (SRID) can be set by specifying this identifier.
+
+Mapped to ""org.locationtech.jts.geom.Geometry"" if JTS library is in classpath and to ""java.lang.String"" otherwise.
+May be represented in textual format using the WKT (well-known text) or EWKT (extended well-known text) format.
+Values are stored internally in EWKB (extended well-known binary) format.
+Only a subset of EWKB and EWKT features is supported.
+Supported objects are POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, and GEOMETRYCOLLECTION.
+Supported dimension systems are 2D (XY), Z (XYZ), M (XYM), and ZM (XYZM).
+SRID (spatial reference system identifier) is supported.
+
+Use a quoted string containing a WKT/EWKT formatted string or ""PreparedStatement.setObject()"" to store values,
+and ""ResultSet.getObject(..)"" or ""ResultSet.getString(..)"" to retrieve the values.
+","
+GEOMETRY
+GEOMETRY(POINT)
+GEOMETRY(POINT Z)
+GEOMETRY(POINT Z, 4326)
+GEOMETRY(GEOMETRY, 4326)
+"
+
+"Data Types","INTERVAL Type","
+intervalYearType | intervalMonthType | intervalDayType
+    | intervalHourType| intervalMinuteType | intervalSecondType
+    | intervalYearToMonthType | intervalDayToHourType
+    | intervalDayToMinuteType | intervalDayToSecondType
+    | intervalHourToMinuteType | intervalHourToSecondType
+    | intervalMinuteToSecondType
+","
+Interval data type.
+There are two classes of intervals. Year-month intervals can store years and months.
+Day-time intervals can store days, hours, minutes, and seconds.
+Year-month intervals are comparable only with another year-month intervals.
+Day-time intervals are comparable only with another day-time intervals.
+
+Mapped to ""org.h2.api.Interval"".
+","
+INTERVAL DAY TO SECOND
+"
+
+"Interval Data Types","INTERVAL YEAR Type","
+INTERVAL YEAR [ ( precisionInt ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Period"" is also supported on Java 8 and later versions.
+","
+INTERVAL YEAR
+"
+
+"Interval Data Types","INTERVAL MONTH Type","
+INTERVAL MONTH [ ( precisionInt ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Period"" is also supported on Java 8 and later versions.
+","
+INTERVAL MONTH
+"
+
+"Interval Data Types","INTERVAL DAY Type","
+INTERVAL DAY [ ( precisionInt ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL DAY
+"
+
+"Interval Data Types","INTERVAL HOUR Type","
+INTERVAL HOUR [ ( precisionInt ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL HOUR
+"
+
+"Interval Data Types","INTERVAL MINUTE Type","
+INTERVAL MINUTE [ ( precisionInt ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL MINUTE
+"
+
+"Interval Data Types","INTERVAL SECOND Type","
+INTERVAL SECOND [ ( precisionInt [, fractionalPrecisionInt ] ) ]
+","
+Interval data type.
+If precision is specified it should be from 1 to 18, 2 is default.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL SECOND
+"
+
+"Interval Data Types","INTERVAL YEAR TO MONTH Type","
+INTERVAL YEAR [ ( precisionInt ) ] TO MONTH
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Period"" is also supported on Java 8 and later versions.
+","
+INTERVAL YEAR TO MONTH
+"
+
+"Interval Data Types","INTERVAL DAY TO HOUR Type","
+INTERVAL DAY [ ( precisionInt ) ] TO HOUR
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL DAY TO HOUR
+"
+
+"Interval Data Types","INTERVAL DAY TO MINUTE Type","
+INTERVAL DAY [ ( precisionInt ) ] TO MINUTE
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL DAY TO MINUTE
+"
+
+"Interval Data Types","INTERVAL DAY TO SECOND Type","
+INTERVAL DAY [ ( precisionInt ) ] TO SECOND [ ( fractionalPrecisionInt ) ]
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL DAY TO SECOND
+"
+
+"Interval Data Types","INTERVAL HOUR TO MINUTE Type","
+INTERVAL HOUR [ ( precisionInt ) ] TO MINUTE
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL HOUR TO MINUTE
+"
+
+"Interval Data Types","INTERVAL HOUR TO SECOND Type","
+INTERVAL HOUR [ ( precisionInt ) ] TO SECOND [ ( fractionalPrecisionInt ) ]
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL HOUR TO SECOND
+"
+
+"Interval Data Types","INTERVAL MINUTE TO SECOND Type","
+INTERVAL MINUTE [ ( precisionInt ) ] TO SECOND [ ( fractionalPrecisionInt ) ]
+","
+Interval data type.
+If leading field precision is specified it should be from 1 to 18, 2 is default.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+
+Mapped to ""org.h2.api.Interval"".
+""java.time.Duration"" is also supported on Java 8 and later versions.
+","
+INTERVAL MINUTE TO SECOND
+"
+
+"Functions (Aggregate)","AVG","
+AVG ( [ DISTINCT|ALL ] { numeric } )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The average (mean) value.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+The returned value is of the same data type as the parameter.
+","
+AVG(X)
+"
+
+"Functions (Aggregate)","BIT_AND","
+BIT_AND(expression)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The bitwise AND of all non-null values.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+BIT_AND(ID)
+"
+
+"Functions (Aggregate)","BIT_OR","
+BIT_OR(expression)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The bitwise OR of all non-null values.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+BIT_OR(ID)
+"
+
+"Functions (Aggregate)","EVERY","
+{EVERY|BOOL_AND}(boolean)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns true if all expressions are true.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+EVERY(ID>10)
+"
+
+"Functions (Aggregate)","ANY","
+{ANY|SOME|BOOL_OR}(boolean)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns true if any expression is true.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+
+Note that if ANY or SOME aggregate function is placed on the right side of comparison operation
+and argument of this function is a subquery additional parentheses around aggregate function are required,
+otherwise it will be parsed as quantified comparison predicate.
+","
+ANY(NAME LIKE 'W%')
+A = (ANY((SELECT B FROM T)))
+"
+
+"Functions (Aggregate)","COUNT","
+COUNT( { * | { [ DISTINCT|ALL ] expression } } )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The count of all row, or of the non-null values.
+This method returns a long.
+If no rows are selected, the result is 0.
+Aggregates are only allowed in select statements.
+","
+COUNT(*)
+"
+
+"Functions (Aggregate)","LISTAGG","
+{ LISTAGG ( [ DISTINCT|ALL ] string [, separatorString] [ ON OVERFLOW ERROR ] )
+    withinGroupSpecification }
+| { GROUP_CONCAT ( [ DISTINCT|ALL ] string
+    [ ORDER BY { expression [ ASC | DESC ] } [,...] ]
+    [ SEPARATOR separatorString ] ) }
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Concatenates strings with a separator.
+Separator must be the same for all rows in the same group.
+The default separator is a ',' (without space).
+This method returns a string.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+LISTAGG(NAME, ', ') WITHIN GROUP (ORDER BY ID)
+LISTAGG(ID, ', ') WITHIN GROUP (ORDER BY ID) OVER (ORDER BY ID)
+"
+
+"Functions (Aggregate)","ARRAY_AGG","
+ARRAY_AGG ( [ DISTINCT|ALL ] string
+[ ORDER BY { expression [ ASC | DESC ] } [,...] ] )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Aggregate the value into an array.
+This method returns an array.
+If no rows are selected, the result is NULL.
+If ORDER BY is not specified order of values is not determined.
+When this aggregate is used with OVER clause that contains ORDER BY subclause
+it does not enforce exact order of values.
+This aggregate needs additional own ORDER BY clause to make it deterministic.
+Aggregates are only allowed in select statements.
+","
+ARRAY_AGG(NAME ORDER BY ID)
+ARRAY_AGG(ID ORDER BY ID) OVER (ORDER BY ID)
+"
+
+"Functions (Aggregate)","MAX","
+MAX(value)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The highest value.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+The returned value is of the same data type as the parameter.
+","
+MAX(NAME)
+"
+
+"Functions (Aggregate)","MIN","
+MIN(value)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The lowest value.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+The returned value is of the same data type as the parameter.
+","
+MIN(NAME)
+"
+
+"Functions (Aggregate)","SUM","
+SUM( [ DISTINCT|ALL ] { numeric } )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The sum of all values.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+The data type of the returned value depends on the parameter data type like this:
+""BOOLEAN, TINYINT, SMALLINT, INT -> BIGINT, BIGINT -> DECIMAL, REAL -> DOUBLE""
+","
+SUM(X)
+"
+
+"Functions (Aggregate)","SELECTIVITY","
+SELECTIVITY(value)
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Estimates the selectivity (0-100) of a value.
+The value is defined as (100 * distinctCount / rowCount).
+The selectivity of 0 rows is 0 (unknown).
+Up to 10000 values are kept in memory.
+Aggregates are only allowed in select statements.
+","
+SELECT SELECTIVITY(FIRSTNAME), SELECTIVITY(NAME) FROM TEST WHERE ROWNUM()<20000
+"
+
+"Functions (Aggregate)","STDDEV_POP","
+STDDEV_POP( [ DISTINCT|ALL ] numeric )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The population standard deviation.
+This method returns a double.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+STDDEV_POP(X)
+"
+
+"Functions (Aggregate)","STDDEV_SAMP","
+STDDEV_SAMP( [ DISTINCT|ALL ] numeric )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The sample standard deviation.
+This method returns a double.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+STDDEV(X)
+"
+
+"Functions (Aggregate)","VAR_POP","
+VAR_POP( [ DISTINCT|ALL ] numeric )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The population variance (square of the population standard deviation).
+This method returns a double.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+VAR_POP(X)
+"
+
+"Functions (Aggregate)","VAR_SAMP","
+VAR_SAMP( [ DISTINCT|ALL ] numeric )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The sample variance (square of the sample standard deviation).
+This method returns a double.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+VAR_SAMP(X)
+"
+
+"Functions (Aggregate)","RANK aggregate","
+RANK(value [,...])
+withinGroupSpecification
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the rank of the hypothetical row in specified collection of rows.
+The rank of a row is the number of rows that precede this row plus 1.
+If two or more rows have the same values in ORDER BY columns, these rows get the same rank from the first row with the same values.
+It means that gaps in ranks are possible.
+","
+SELECT RANK(5) WITHIN GROUP (ORDER BY V) FROM TEST;
+"
+
+"Functions (Aggregate)","DENSE_RANK aggregate","
+DENSE_RANK(value [,...])
+withinGroupSpecification
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the dense rank of the hypothetical row in specified collection of rows.
+The rank of a row is the number of groups of rows with the same values in ORDER BY columns that precede group with this row plus 1.
+If two or more rows have the same values in ORDER BY columns, these rows get the same rank.
+Gaps in ranks are not possible.
+","
+SELECT DENSE_RANK(5) WITHIN GROUP (ORDER BY V) FROM TEST;
+"
+
+"Functions (Aggregate)","PERCENT_RANK aggregate","
+PERCENT_RANK(value [,...])
+withinGroupSpecification
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the relative rank of the hypothetical row in specified collection of rows.
+The relative rank is calculated as (RANK - 1) / (NR - 1),
+where RANK is a rank of the row and NR is a total number of rows in the collection including hypothetical row.
+","
+SELECT PERCENT_RANK(5) WITHIN GROUP (ORDER BY V) FROM TEST;
+"
+
+"Functions (Aggregate)","CUME_DIST aggregate","
+CUME_DIST(value [,...])
+withinGroupSpecification
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the relative rank of the hypothetical row in specified collection of rows.
+The relative rank is calculated as NP / NR
+where NP is a number of rows that precede the current row or have the same values in ORDER BY columns
+and NR is a total number of rows in the collection including hypothetical row.
+","
+SELECT CUME_DIST(5) WITHIN GROUP (ORDER BY V) FROM TEST;
+"
+
+"Functions (Aggregate)","PERCENTILE_CONT","
+PERCENTILE_CONT(numeric) WITHIN GROUP (ORDER BY value [ASC|DESC])
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Return percentile of values from the group with interpolation.
+Interpolation is only supported for numeric, date-time, and interval data types.
+Argument must be between 0 and 1 inclusive.
+Argument must be the same for all rows in the same group.
+If argument is NULL, the result is NULL.
+NULL values are ignored in the calculation.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY V)
+"
+
+"Functions (Aggregate)","PERCENTILE_DISC","
+PERCENTILE_DISC(numeric) WITHIN GROUP (ORDER BY value [ASC|DESC])
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Return percentile of values from the group.
+Interpolation is not performed.
+Argument must be between 0 and 1 inclusive.
+Argument must be the same for all rows in the same group.
+If argument is NULL, the result is NULL.
+NULL values are ignored in the calculation.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+PERCENTILE_DISC(0.5) WITHIN GROUP (ORDER BY V)
+"
+
+"Functions (Aggregate)","MEDIAN","
+MEDIAN( [ DISTINCT|ALL ] value )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+The value separating the higher half of a values from the lower half.
+Returns the middle value or an interpolated value between two middle values if number of values is even.
+Interpolation is only supported for numeric, date-time, and interval data types.
+NULL values are ignored in the calculation.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+MEDIAN(X)
+"
+
+"Functions (Aggregate)","MODE","
+{ MODE( value ) [ ORDER BY expression [ ASC | DESC ] ] }
+    | { MODE() WITHIN GROUP (ORDER BY expression [ ASC | DESC ]) }
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the value that occurs with the greatest frequency.
+If there are multiple values with the same frequency only one value will be returned.
+In this situation value will be chosen based on optional ORDER BY clause
+that should specify exactly the same expression as argument of this function.
+Use ascending order to get smallest value or descending order to get largest value
+from multiple values with the same frequency.
+If this clause is not specified the exact chosen value is not determined in this situation.
+NULL values are ignored in the calculation.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+MODE(X)
+MODE(X ORDER BY X)
+MODE() WITHIN GROUP (ORDER BY X)
+"
+
+"Functions (Aggregate)","ENVELOPE","
+ENVELOPE( value )
+[FILTER (WHERE expression)] [OVER windowNameOrSpecification]
+","
+Returns the minimum bounding box that encloses all specified GEOMETRY values.
+Only 2D coordinate plane is supported.
+NULL values are ignored in the calculation.
+If no rows are selected, the result is NULL.
+Aggregates are only allowed in select statements.
+","
+ENVELOPE(X)
+"
+
+"Functions (Numeric)","ABS","
+ABS( { numeric | interval } )
+","
+Returns the absolute value of a specified value.
+The returned value is of the same data type as the parameter.
+
+Note that TINYINT, SMALLINT, INT, and BIGINT data types cannot represent absolute values
+of their minimum negative values, because they have more negative values than positive.
+For example, for INT data type allowed values are from -2147483648 to 2147483647.
+ABS(-2147483648) should be 2147483648, but this value is not allowed for this data type.
+It leads to an exception.
+To avoid it cast argument of this function to a higher data type.
+","
+ABS(VALUE)
+ABS(CAST(VALUE AS BIGINT))
+"
+
+"Functions (Numeric)","ACOS","
+ACOS(numeric)
+","
+Calculate the arc cosine.
+See also Java ""Math.acos"".
+This method returns a double.
+","
+ACOS(D)
+"
+
+"Functions (Numeric)","ASIN","
+ASIN(numeric)
+","
+Calculate the arc sine.
+See also Java ""Math.asin"".
+This method returns a double.
+","
+ASIN(D)
+"
+
+"Functions (Numeric)","ATAN","
+ATAN(numeric)
+","
+Calculate the arc tangent.
+See also Java ""Math.atan"".
+This method returns a double.
+","
+ATAN(D)
+"
+
+"Functions (Numeric)","COS","
+COS(numeric)
+","
+Calculate the trigonometric cosine.
+See also Java ""Math.cos"".
+This method returns a double.
+","
+COS(ANGLE)
+"
+
+"Functions (Numeric)","COSH","
+COSH(numeric)
+","
+Calculate the hyperbolic cosine.
+See also Java ""Math.cosh"".
+This method returns a double.
+","
+COSH(X)
+"
+
+"Functions (Numeric)","COT","
+COT(numeric)
+","
+Calculate the trigonometric cotangent (""1/TAN(ANGLE)"").
+See also Java ""Math.*"" functions.
+This method returns a double.
+","
+COT(ANGLE)
+"
+
+"Functions (Numeric)","SIN","
+SIN(numeric)
+","
+Calculate the trigonometric sine.
+See also Java ""Math.sin"".
+This method returns a double.
+","
+SIN(ANGLE)
+"
+
+"Functions (Numeric)","SINH","
+SINH(numeric)
+","
+Calculate the hyperbolic sine.
+See also Java ""Math.sinh"".
+This method returns a double.
+","
+SINH(ANGLE)
+"
+
+"Functions (Numeric)","TAN","
+TAN(numeric)
+","
+Calculate the trigonometric tangent.
+See also Java ""Math.tan"".
+This method returns a double.
+","
+TAN(ANGLE)
+"
+
+"Functions (Numeric)","TANH","
+TANH(numeric)
+","
+Calculate the hyperbolic tangent.
+See also Java ""Math.tanh"".
+This method returns a double.
+","
+TANH(X)
+"
+
+"Functions (Numeric)","ATAN2","
+ATAN2(numeric, numeric)
+","
+Calculate the angle when converting the rectangular coordinates to polar coordinates.
+See also Java ""Math.atan2"".
+This method returns a double.
+","
+ATAN2(X, Y)
+"
+
+"Functions (Numeric)","BITAND","
+BITAND(long, long)
+","
+The bitwise AND operation.
+This method returns a long.
+See also Java operator &.
+","
+BITAND(A, B)
+"
+
+"Functions (Numeric)","BITGET","
+BITGET(long, int)
+","
+Returns true if and only if the first parameter has a bit set in the
+position specified by the second parameter.
+This method returns a boolean.
+The second parameter is zero-indexed; the least significant bit has position 0.
+","
+BITGET(A, 1)
+"
+
+"Functions (Numeric)","BITOR","
+BITOR(long, long)
+","
+The bitwise OR operation.
+This method returns a long.
+See also Java operator |.
+","
+BITOR(A, B)
+"
+
+"Functions (Numeric)","BITXOR","
+BITXOR(long, long)
+","
+The bitwise XOR operation.
+This method returns a long.
+See also Java operator ^.
+","
+BITXOR(A, B)
+"
+
+"Functions (Numeric)","MOD","
+MOD(long, long)
+","
+The modulo operation.
+This method returns a long.
+See also Java operator %.
+","
+MOD(A, B)
+"
+
+"Functions (Numeric)","CEILING","
+{ CEILING | CEIL } (numeric)
+","
+See also Java ""Math.ceil"".
+This method returns a double.
+","
+CEIL(A)
+"
+
+"Functions (Numeric)","DEGREES","
+DEGREES(numeric)
+","
+See also Java ""Math.toDegrees"".
+This method returns a double.
+","
+DEGREES(A)
+"
+
+"Functions (Numeric)","EXP","
+EXP(numeric)
+","
+See also Java ""Math.exp"".
+This method returns a double.
+","
+EXP(A)
+"
+
+"Functions (Numeric)","FLOOR","
+FLOOR(numeric)
+","
+See also Java ""Math.floor"".
+This method returns a double.
+","
+FLOOR(A)
+"
+
+"Functions (Numeric)","LN","
+{LN|LOG}(numeric)
+","
+Calculates the natural (base e) logarithm as a double value.
+In the PostgreSQL mode, LOG(x) is base 10.
+See also Java ""Math.log"".
+","
+LN(A)
+"
+
+"Functions (Numeric)","LOG10","
+LOG10(numeric)
+","
+Calculates the base 10 logarithm as a double value.
+See also Java ""Math.log10"".
+","
+LOG10(A)
+"
+
+"Functions (Numeric)","ORA_HASH","
+ORA_HASH(expression [, bucketLong [, seedLong]])
+","
+Computes a hash value.
+Optional bucket argument determines the maximum returned value.
+This argument should be between 0 and 4294967295, default is 4294967295.
+Optional seed argument is combined with the given expression to return the different values for the same expression.
+This argument should be between 0 and 4294967295, default is 0.
+This method returns a long value between 0 and the specified or default bucket value inclusive.
+","
+ORA_HASH(A)
+"
+
+"Functions (Numeric)","RADIANS","
+RADIANS(numeric)
+","
+See also Java ""Math.toRadians"".
+This method returns a double.
+","
+RADIANS(A)
+"
+
+"Functions (Numeric)","SQRT","
+SQRT(numeric)
+","
+See also Java ""Math.sqrt"".
+This method returns a double.
+","
+SQRT(A)
+"
+
+"Functions (Numeric)","PI","
+PI()
+","
+See also Java ""Math.PI"".
+This method returns a double.
+","
+PI()
+"
+
+"Functions (Numeric)","POWER","
+POWER(numeric, numeric)
+","
+See also Java ""Math.pow"".
+This method returns a double.
+","
+POWER(A, B)
+"
+
+"Functions (Numeric)","RAND","
+{ RAND | RANDOM } ( [ int ] )
+","
+Calling the function without parameter returns the next a pseudo random number.
+Calling it with an parameter seeds the session's random number generator.
+This method returns a double between 0 (including) and 1 (excluding).
+","
+RAND()
+"
+
+"Functions (Numeric)","RANDOM_UUID","
+{ RANDOM_UUID | UUID } ()
+","
+Returns a new UUID with 122 pseudo random bits.
+
+Please note that using an index on randomly generated data will
+result on poor performance once there are millions of rows in a table.
+The reason is that the cache behavior is very bad with randomly distributed data.
+This is a problem for any database system.
+","
+RANDOM_UUID()
+"
+
+"Functions (Numeric)","ROUND","
+ROUND(numeric [, digitsInt])
+","
+Rounds to a number of digits, or to the nearest long if the number of digits if not set.
+This method returns a numeric (the same type as the input).
+","
+ROUND(VALUE, 2)
+"
+
+"Functions (Numeric)","ROUNDMAGIC","
+ROUNDMAGIC(numeric)
+","
+This function rounds numbers in a good way, but it is slow.
+It has a special handling for numbers around 0.
+Only numbers smaller or equal +/-1000000000000 are supported.
+The value is converted to a String internally, and then the last 4 characters are checked.
+'000x' becomes '0000' and '999x' becomes '999999', which is rounded automatically.
+This method returns a double.
+","
+ROUNDMAGIC(VALUE/3*3)
+"
+
+"Functions (Numeric)","SECURE_RAND","
+SECURE_RAND(int)
+","
+Generates a number of cryptographically secure random numbers.
+This method returns bytes.
+","
+CALL SECURE_RAND(16)
+"
+
+"Functions (Numeric)","SIGN","
+SIGN( { numeric | interval } )
+","
+Returns -1 if the value is smaller than 0, 0 if zero, and otherwise 1.
+","
+SIGN(VALUE)
+"
+
+"Functions (Numeric)","ENCRYPT","
+ENCRYPT(algorithmString, keyBytes, dataBytes)
+","
+Encrypts data using a key.
+The supported algorithm is AES.
+The block size is 16 bytes.
+This method returns bytes.
+","
+CALL ENCRYPT('AES', '00', STRINGTOUTF8('Test'))
+"
+
+"Functions (Numeric)","DECRYPT","
+DECRYPT(algorithmString, keyBytes, dataBytes)
+","
+Decrypts data using a key.
+The supported algorithm is AES.
+The block size is 16 bytes.
+This method returns bytes.
+","
+CALL TRIM(CHAR(0) FROM UTF8TOSTRING(
+    DECRYPT('AES', '00', '3fabb4de8f1ee2e97d7793bab2db1116')))
+"
+
+"Functions (Numeric)","HASH","
+HASH(algorithmString, expression [, iterationInt])
+","
+Calculate the hash value using an algorithm, and repeat this process for a number of iterations.
+Currently, the only algorithm supported is SHA256.
+This method returns bytes.
+","
+CALL HASH('SHA256', STRINGTOUTF8('Password'), 1000)
+"
+
+"Functions (Numeric)","TRUNCATE","
+{ TRUNC | TRUNCATE } ( { {numeric, digitsInt}
+    | timestamp | timestampWithTimeZone | date | timestampString } )
+","
+Truncates to a number of digits (to the next value closer to 0).
+This method returns a double.
+When used with a timestamp, truncates a timestamp to a date (day) value.
+When used with a date, truncates a date to a date (day) value less time part.
+When used with a timestamp as string, truncates a timestamp to a date (day) value.
+","
+TRUNCATE(VALUE, 2)
+"
+
+"Functions (Numeric)","COMPRESS","
+COMPRESS(dataBytes [, algorithmString])
+","
+Compresses the data using the specified compression algorithm.
+Supported algorithms are: LZF (faster but lower compression; default), and DEFLATE (higher compression).
+Compression does not always reduce size. Very small objects and objects with little redundancy may get larger.
+This method returns bytes.
+","
+COMPRESS(STRINGTOUTF8('Test'))
+"
+
+"Functions (Numeric)","EXPAND","
+EXPAND(bytes)
+","
+Expands data that was compressed using the COMPRESS function.
+This method returns bytes.
+","
+UTF8TOSTRING(EXPAND(COMPRESS(STRINGTOUTF8('Test'))))
+"
+
+"Functions (Numeric)","ZERO","
+ZERO()
+","
+Returns the value 0. This function can be used even if numeric literals are disabled.
+","
+ZERO()
+"
+
+"Functions (String)","ASCII","
+ASCII(string)
+","
+Returns the ASCII value of the first character in the string.
+This method returns an int.
+","
+ASCII('Hi')
+"
+"Functions (String)","BIT_LENGTH","
+BIT_LENGTH(string)
+","
+Returns the number of bits in a string.
+This method returns a long.
+For BLOB, CLOB, BYTES and JAVA_OBJECT, the precision is used. Each character needs 16 bits.
+","
+BIT_LENGTH(NAME)
+"
+
+"Functions (String)","LENGTH","
+{ LENGTH | CHAR_LENGTH | CHARACTER_LENGTH } ( string )
+","
+Returns the number of characters in a string.
+This method returns a long.
+For BLOB, CLOB, BYTES and JAVA_OBJECT, the precision is used.
+","
+LENGTH(NAME)
+"
+
+"Functions (String)","OCTET_LENGTH","
+OCTET_LENGTH(string)
+","
+Returns the number of bytes in a string.
+This method returns a long.
+For BLOB, CLOB, BYTES and JAVA_OBJECT, the precision is used.
+Each character needs 2 bytes.
+","
+OCTET_LENGTH(NAME)
+"
+
+"Functions (String)","CHAR","
+{ CHAR | CHR } ( int )
+","
+Returns the character that represents the ASCII value.
+This method returns a string.
+","
+CHAR(65)
+"
+
+"Functions (String)","CONCAT","
+CONCAT(string, string [,...])
+","
+Combines strings.
+Unlike with the operator ""||"", NULL parameters are ignored,
+and do not cause the result to become NULL.
+This method returns a string.
+","
+CONCAT(NAME, '!')
+"
+
+"Functions (String)","CONCAT_WS","
+CONCAT_WS(separatorString, string, string [,...])
+","
+Combines strings with separator.
+Unlike with the operator ""||"", NULL parameters are ignored,
+and do not cause the result to become NULL.
+This method returns a string.
+","
+CONCAT_WS(',', NAME, '!')
+"
+
+"Functions (String)","DIFFERENCE","
+DIFFERENCE(string, string)
+","
+Returns the difference between the sounds of two strings.
+The difference is calculated as a number of matched characters
+in the same positions in SOUNDEX representations of arguments.
+This method returns an int between 0 and 4 inclusive, or null if any of its parameters is null.
+Note that value of 0 means that strings are not similar to each other.
+Value of 4 means that strings are fully similar to each other (have the same SOUNDEX representation).
+","
+DIFFERENCE(T1.NAME, T2.NAME)
+"
+
+"Functions (String)","HEXTORAW","
+HEXTORAW(string)
+","
+Converts a hex representation of a string to a string.
+4 hex characters per string character are used.
+","
+HEXTORAW(DATA)
+"
+
+"Functions (String)","RAWTOHEX","
+RAWTOHEX(string)
+","
+Converts a string to the hex representation.
+4 hex characters per string character are used.
+This method returns a string.
+","
+RAWTOHEX(DATA)
+"
+
+"Functions (String)","INSTR","
+INSTR(string, searchString, [, startInt])
+","
+Returns the location of a search string in a string.
+If a start position is used, the characters before it are ignored.
+If position is negative, the rightmost location is returned.
+0 is returned if the search string is not found.
+Please note this function is case sensitive, even if the parameters are not.
+","
+INSTR(EMAIL,'@')
+"
+
+"Functions (String)","INSERT Function","
+INSERT(originalString, startInt, lengthInt, addString)
+","
+Inserts a additional string into the original string at a specified start position.
+The length specifies the number of characters that are removed at the start position in the original string.
+This method returns a string.
+","
+INSERT(NAME, 1, 1, ' ')
+"
+
+"Functions (String)","LOWER","
+{ LOWER | LCASE } ( string )
+","
+Converts a string to lowercase.
+","
+LOWER(NAME)
+"
+
+"Functions (String)","UPPER","
+{ UPPER | UCASE } ( string )
+","
+Converts a string to uppercase.
+","
+UPPER(NAME)
+"
+
+"Functions (String)","LEFT","
+LEFT(string, int)
+","
+Returns the leftmost number of characters.
+","
+LEFT(NAME, 3)
+"
+
+"Functions (String)","RIGHT","
+RIGHT(string, int)
+","
+Returns the rightmost number of characters.
+","
+RIGHT(NAME, 3)
+"
+
+"Functions (String)","LOCATE","
+LOCATE(searchString, string [, startInt])
+","
+Returns the location of a search string in a string.
+If a start position is used, the characters before it are ignored.
+If position is negative, the rightmost location is returned.
+0 is returned if the search string is not found.
+","
+LOCATE('.', NAME)
+"
+
+"Functions (String)","POSITION","
+POSITION(searchString, string)
+","
+Returns the location of a search string in a string. See also LOCATE.
+","
+POSITION('.', NAME)
+"
+
+"Functions (String)","LPAD","
+LPAD(string, int[, paddingString])
+","
+Left pad the string to the specified length.
+If the length is shorter than the string, it will be truncated at the end.
+If the padding string is not set, spaces will be used.
+","
+LPAD(AMOUNT, 10, '*')
+"
+
+"Functions (String)","RPAD","
+RPAD(string, int[, paddingString])
+","
+Right pad the string to the specified length.
+If the length is shorter than the string, it will be truncated.
+If the padding string is not set, spaces will be used.
+","
+RPAD(TEXT, 10, '-')
+"
+
+"Functions (String)","LTRIM","
+LTRIM(string)
+","
+Removes all leading spaces from a string.
+","
+LTRIM(NAME)
+"
+
+"Functions (String)","RTRIM","
+RTRIM(string)
+","
+Removes all trailing spaces from a string.
+","
+RTRIM(NAME)
+"
+
+"Functions (String)","TRIM","
+TRIM ( [ [ LEADING | TRAILING | BOTH ] [ string ] FROM ] string )
+","
+Removes all leading spaces, trailing spaces, or spaces at both ends, from a string.
+Other characters can be removed as well.
+","
+TRIM(BOTH '_' FROM NAME)
+"
+
+"Functions (String)","REGEXP_REPLACE","
+REGEXP_REPLACE(inputString, regexString, replacementString [, flagsString])
+","
+Replaces each substring that matches a regular expression.
+For details, see the Java ""String.replaceAll()"" method.
+If any parameter is null (except optional flagsString parameter), the result is null.
+
+Flags values limited to 'i', 'c', 'n', 'm'. Other symbols causes exception.
+Multiple symbols could be uses in one flagsString parameter (like 'im').
+Later flags overrides first ones, for example 'ic' equivalent to case sensitive matching 'c'.
+
+'i' enables case insensitive matching (Pattern.CASE_INSENSITIVE)
+
+'c' disables case insensitive matching (Pattern.CASE_INSENSITIVE)
+
+'n' allows the period to match the newline character (Pattern.DOTALL)
+
+'m' enables multiline mode (Pattern.MULTILINE)
+
+","
+REGEXP_REPLACE('Hello    World', ' +', ' ')
+REGEXP_REPLACE('Hello WWWWorld', 'w+', 'W', 'i')
+"
+
+"Functions (String)","REGEXP_LIKE","
+REGEXP_LIKE(inputString, regexString [, flagsString])
+","
+Matches string to a regular expression.
+For details, see the Java ""Matcher.find()"" method.
+If any parameter is null (except optional flagsString parameter), the result is null.
+
+Flags values limited to 'i', 'c', 'n', 'm'. Other symbols causes exception.
+Multiple symbols could be uses in one flagsString parameter (like 'im').
+Later flags overrides first ones, for example 'ic' equivalent to case sensitive matching 'c'.
+
+'i' enables case insensitive matching (Pattern.CASE_INSENSITIVE)
+
+'c' disables case insensitive matching (Pattern.CASE_INSENSITIVE)
+
+'n' allows the period to match the newline character (Pattern.DOTALL)
+
+'m' enables multiline mode (Pattern.MULTILINE)
+
+","
+REGEXP_LIKE('Hello    World', '[A-Z ]*', 'i')
+"
+
+"Functions (String)","REPEAT","
+REPEAT(string, int)
+","
+Returns a string repeated some number of times.
+","
+REPEAT(NAME || ' ', 10)
+"
+
+"Functions (String)","REPLACE","
+REPLACE(string, searchString [, replacementString])
+","
+Replaces all occurrences of a search string in a text with another string.
+If no replacement is specified, the search string is removed from the original string.
+If any parameter is null, the result is null.
+","
+REPLACE(NAME, ' ')
+"
+
+"Functions (String)","SOUNDEX","
+SOUNDEX(string)
+","
+Returns a four character code representing the sound of a string.
+This method returns a string, or null if parameter is null.
+See https://en.wikipedia.org/wiki/Soundex for more information.
+","
+SOUNDEX(NAME)
+"
+
+"Functions (String)","SPACE","
+SPACE(int)
+","
+Returns a string consisting of a number of spaces.
+","
+SPACE(80)
+"
+
+"Functions (String)","STRINGDECODE","
+STRINGDECODE(string)
+","
+Converts a encoded string using the Java string literal encoding format.
+Special characters are \b, \t, \n, \f, \r, \"", \\, \<octal>, \u<unicode>.
+This method returns a string.
+","
+CALL STRINGENCODE(STRINGDECODE('Lines 1\nLine 2'))
+"
+
+"Functions (String)","STRINGENCODE","
+STRINGENCODE(string)
+","
+Encodes special characters in a string using the Java string literal encoding format.
+Special characters are \b, \t, \n, \f, \r, \"", \\, \<octal>, \u<unicode>.
+This method returns a string.
+","
+CALL STRINGENCODE(STRINGDECODE('Lines 1\nLine 2'))
+"
+
+"Functions (String)","STRINGTOUTF8","
+STRINGTOUTF8(string)
+","
+Encodes a string to a byte array using the UTF8 encoding format.
+This method returns bytes.
+","
+CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
+"
+
+"Functions (String)","SUBSTRING","
+{ SUBSTRING | SUBSTR } ( string, startInt [, lengthInt ] )
+","
+Returns a substring of a string starting at a position.
+If the start index is negative, then the start index is relative to the end of the string.
+The length is optional.
+Also supported is: ""SUBSTRING(string [FROM start] [FOR length])"".
+","
+CALL SUBSTR('[Hello]', 2, 5);
+CALL SUBSTR('Hello World', -5);
+"
+
+"Functions (String)","UTF8TOSTRING","
+UTF8TOSTRING(bytes)
+","
+Decodes a byte array in the UTF8 format to a string.
+","
+CALL UTF8TOSTRING(STRINGTOUTF8('This is a test'))
+"
+
+"Functions (String)","XMLATTR","
+XMLATTR(nameString, valueString)
+","
+Creates an XML attribute element of the form ""name=value"".
+The value is encoded as XML text.
+This method returns a string.
+","
+CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'))
+"
+
+"Functions (String)","XMLNODE","
+XMLNODE(elementString [, attributesString [, contentString [, indentBoolean]]])
+","
+Create an XML node element.
+An empty or null attribute string means no attributes are set.
+An empty or null content string means the node is empty.
+The content is indented by default if it contains a newline.
+This method returns a string.
+","
+CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'), 'H2')
+"
+
+"Functions (String)","XMLCOMMENT","
+XMLCOMMENT(commentString)
+","
+Creates an XML comment.
+Two dashes (""--"") are converted to ""- -"".
+This method returns a string.
+","
+CALL XMLCOMMENT('Test')
+"
+
+"Functions (String)","XMLCDATA","
+XMLCDATA(valueString)
+","
+Creates an XML CDATA element.
+If the value contains ""]]>"", an XML text element is created instead.
+This method returns a string.
+","
+CALL XMLCDATA('data')
+"
+
+"Functions (String)","XMLSTARTDOC","
+XMLSTARTDOC()
+","
+Returns the XML declaration.
+The result is always ""<?xml version=""1.0""?>"".
+","
+CALL XMLSTARTDOC()
+"
+
+"Functions (String)","XMLTEXT","
+XMLTEXT(valueString [, escapeNewlineBoolean])
+","
+Creates an XML text element.
+If enabled, newline and linefeed is converted to an XML entity (&#).
+This method returns a string.
+","
+CALL XMLTEXT('test')
+"
+
+"Functions (String)","TO_CHAR","
+TO_CHAR(value [, formatString[, nlsParamString]])
+","
+Oracle-compatible TO_CHAR function that can format a timestamp, a number, or text.
+","
+CALL TO_CHAR(TIMESTAMP '2010-01-01 00:00:00', 'DD MON, YYYY')
+"
+
+"Functions (String)","TRANSLATE","
+TRANSLATE(value, searchString, replacementString)
+","
+Oracle-compatible TRANSLATE function that replaces a sequence of characters in a string with another set of characters.
+","
+CALL TRANSLATE('Hello world', 'eo', 'EO')
+"
+
+"Functions (Time and Date)","CURRENT_DATE","
+{ CURRENT_DATE | CURDATE() | SYSDATE | TODAY }
+","
+Returns the current date.
+These methods always return the same value within a transaction (default)
+or within a command depending on database mode.
+","
+CURRENT_DATE
+"
+
+"Functions (Time and Date)","CURRENT_TIME","
+CURRENT_TIME [ (int) ]
+","
+Returns the current time.
+The returned value does not have time zone information, because TIME WITH TIME ZONE data type is not supported in H2.
+If fractional seconds precision is specified it should be from 0 to 9, 0 is default.
+The specified value can be used only to limit precision of a result.
+The actual maximum available precision depends on operating system and JVM and can be 3 (milliseconds) or higher.
+Higher precision is not available before Java 9.
+These methods always return the same value within a transaction (default)
+or within a command depending on database mode.
+","
+CURRENT_TIME
+CURRENT_TIME(9)
+"
+
+"Functions (Time and Date)","CURRENT_TIMESTAMP","
+CURRENT_TIMESTAMP [ (int) ]
+","
+Returns the current timestamp with time zone.
+Time zone offset is set to a current time zone offset.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+The specified value can be used only to limit precision of a result.
+The actual maximum available precision depends on operating system and JVM and can be 3 (milliseconds) or higher.
+Higher precision is not available before Java 9.
+This method always returns the same value within a transaction (default)
+or within a command depending on database mode.
+","
+CURRENT_TIMESTAMP
+CURRENT_TIMESTAMP(9)
+"
+
+"Functions (Time and Date)","LOCALTIME","
+{ LOCALTIME [ (int) ] | CURTIME([ int ]) }
+","
+Returns the current time.
+If fractional seconds precision is specified it should be from 0 to 9, 0 is default.
+The specified value can be used only to limit precision of a result.
+The actual maximum available precision depends on operating system and JVM and can be 3 (milliseconds) or higher.
+Higher precision is not available before Java 9.
+These methods always return the same value within a transaction (default)
+or within a command depending on database mode.
+","
+LOCALTIME
+LOCALTIME(9)
+"
+
+"Functions (Time and Date)","LOCALTIMESTAMP","
+{ LOCALTIMESTAMP [ (int) ] | NOW( [ int ] ) }
+","
+Returns the current timestamp without time zone.
+If fractional seconds precision is specified it should be from 0 to 9, 6 is default.
+The specified value can be used only to limit precision of a result.
+The actual maximum available precision depends on operating system and JVM and can be 3 (milliseconds) or higher.
+Higher precision is not available before Java 9.
+These methods always return the same value within a transaction (default)
+or within a command depending on database mode.
+","
+LOCALTIMESTAMP
+LOCALTIMESTAMP(9)
+"
+
+"Functions (Time and Date)","DATEADD","
+{ DATEADD| TIMESTAMPADD } (datetimeField, addIntLong, dateAndTime)
+","
+Adds units to a date-time value. The datetimeField indicates the unit.
+Use negative values to subtract units.
+addIntLong may be a long value when manipulating milliseconds,
+microseconds, or nanoseconds otherwise its range is restricted to int.
+This method returns a value with the same type as specified value if unit is compatible with this value.
+If specified field is a HOUR, MINUTE, SECOND, MILLISECOND, etc and value is a DATE value DATEADD returns combined TIMESTAMP.
+Fields DAY, MONTH, YEAR, WEEK, etc are not allowed for TIME values.
+Fields TIMEZONE_HOUR and TIMEZONE_MINUTE are only allowed for TIMESTAMP WITH TIME ZONE values.
+","
+DATEADD(MONTH, 1, DATE '2001-01-31')
+"
+
+"Functions (Time and Date)","DATEDIFF","
+{ DATEDIFF | TIMESTAMPDIFF } (datetimeField, aDateAndTime, bDateAndTime)
+","
+Returns the number of crossed unit boundaries between two date/time values.
+This method returns a long.
+The datetimeField indicates the unit.
+Only TIMEZONE_HOUR and TIMEZONE_MINUTE fields use the time zone offset component.
+With all other fields if date/time values have time zone offset component it is ignored.
+","
+DATEDIFF(YEAR, T1.CREATED, T2.CREATED)
+"
+
+"Functions (Time and Date)","DAYNAME","
+DAYNAME(dateAndTime)
+","
+Returns the name of the day (in English).
+","
+DAYNAME(CREATED)
+"
+
+"Functions (Time and Date)","DAY_OF_MONTH","
+DAY_OF_MONTH(dateAndTime|interval)
+","
+Returns the day of the month (1-31).
+","
+DAY_OF_MONTH(CREATED)
+"
+
+"Functions (Time and Date)","DAY_OF_WEEK","
+DAY_OF_WEEK(dateAndTime)
+","
+Returns the day of the week (1 means Sunday).
+","
+DAY_OF_WEEK(CREATED)
+"
+
+"Functions (Time and Date)","ISO_DAY_OF_WEEK","
+ISO_DAY_OF_WEEK(dateAndTime)
+","
+Returns the ISO day of the week (1 means Monday).
+","
+ISO_DAY_OF_WEEK(CREATED)
+"
+
+"Functions (Time and Date)","DAY_OF_YEAR","
+DAY_OF_YEAR(dateAndTime|interval)
+","
+Returns the day of the year (1-366).
+","
+DAY_OF_YEAR(CREATED)
+"
+
+"Functions (Time and Date)","EXTRACT","
+EXTRACT ( datetimeField FROM { dateAndTime | interval })
+","
+Returns a value of the specific time unit from a date/time value.
+This method returns a numeric value with EPOCH field and
+an int for all other fields.
+","
+EXTRACT(SECOND FROM CURRENT_TIMESTAMP)
+"
+
+"Functions (Time and Date)","FORMATDATETIME","
+FORMATDATETIME ( dateAndTime, formatString
+[ , localeString [ , timeZoneString ] ] )
+","
+Formats a date, time or timestamp as a string.
+The most important format characters are:
+y year, M month, d day, H hour, m minute, s second.
+For details of the format, see ""java.text.SimpleDateFormat"".
+timeZoneString may be specified if dateAndTime is a DATE, TIME or TIMESTAMP.
+timeZoneString is ignored if dateAndTime is TIMESTAMP WITH TIME ZONE.
+This method returns a string.
+","
+CALL FORMATDATETIME(TIMESTAMP '2001-02-03 04:05:06',
+    'EEE, d MMM yyyy HH:mm:ss z', 'en', 'GMT')
+"
+
+"Functions (Time and Date)","HOUR","
+HOUR(dateAndTime|interval)
+","
+Returns the hour (0-23) from a date/time value.
+","
+HOUR(CREATED)
+"
+
+"Functions (Time and Date)","MINUTE","
+MINUTE(dateAndTime|interval)
+","
+Returns the minute (0-59) from a date/time value.
+","
+MINUTE(CREATED)
+"
+
+"Functions (Time and Date)","MONTH","
+MONTH(dateAndTime|interval)
+","
+Returns the month (1-12) from a date/time value.
+","
+MONTH(CREATED)
+"
+
+"Functions (Time and Date)","MONTHNAME","
+MONTHNAME(dateAndTime)
+","
+Returns the name of the month (in English).
+","
+MONTHNAME(CREATED)
+"
+
+"Functions (Time and Date)","PARSEDATETIME","
+PARSEDATETIME(string, formatString
+[, localeString [, timeZoneString]])
+","
+Parses a string and returns a timestamp.
+The most important format characters are:
+y year, M month, d day, H hour, m minute, s second.
+For details of the format, see ""java.text.SimpleDateFormat"".
+","
+CALL PARSEDATETIME('Sat, 3 Feb 2001 03:05:06 GMT',
+    'EEE, d MMM yyyy HH:mm:ss z', 'en', 'GMT')
+"
+
+"Functions (Time and Date)","QUARTER","
+QUARTER(dateAndTime)
+","
+Returns the quarter (1-4) from a date/time value.
+","
+QUARTER(CREATED)
+"
+
+"Functions (Time and Date)","SECOND","
+SECOND(dateAndTime)
+","
+Returns the second (0-59) from a date/time value.
+","
+SECOND(CREATED|interval)
+"
+
+"Functions (Time and Date)","WEEK","
+WEEK(dateAndTime)
+","
+Returns the week (1-53) from a date/time value.
+This method uses the current system locale.
+","
+WEEK(CREATED)
+"
+
+"Functions (Time and Date)","ISO_WEEK","
+ISO_WEEK(dateAndTime)
+","
+Returns the ISO week (1-53) from a date/time value.
+This function uses the ISO definition when
+first week of year should have at least four days
+and week is started with Monday.
+","
+ISO_WEEK(CREATED)
+"
+
+"Functions (Time and Date)","YEAR","
+YEAR(dateAndTime|interval)
+","
+Returns the year from a date/time value.
+","
+YEAR(CREATED)
+"
+
+"Functions (Time and Date)","ISO_YEAR","
+ISO_YEAR(dateAndTime)
+","
+Returns the ISO week year from a date/time value.
+","
+ISO_YEAR(CREATED)
+"
+
+"Functions (System)","ARRAY_GET","
+ARRAY_GET(arrayExpression, indexExpression)
+","
+Returns element at the specified 1-based index from an array.
+Returns NULL if there is no such element or array is NULL.
+","
+CALL ARRAY_GET(ARRAY['Hello', 'World'], 2)
+"
+
+"Functions (System)","ARRAY_LENGTH","
+ARRAY_LENGTH(arrayExpression)
+","
+Returns the length of an array.
+Returns NULL if the specified array is NULL.
+","
+CALL ARRAY_LENGTH(ARRAY['Hello', 'World'])
+"
+
+"Functions (System)","ARRAY_CONTAINS","
+ARRAY_CONTAINS(arrayExpression, value)
+","
+Returns a boolean TRUE if the array contains the value or FALSE if it does not contain it.
+Returns NULL if the specified array is NULL.
+","
+CALL ARRAY_CONTAINS(ARRAY['Hello', 'World'], 'Hello')
+"
+
+"Functions (System)","ARRAY_CAT","
+ARRAY_CAT(arrayExpression, arrayExpression)
+","
+Returns the concatenation of two arrays.
+Returns NULL if any parameter is NULL.
+","
+CALL ARRAY_CAT(ARRAY[1, 2], ARRAY[3, 4])
+"
+
+"Functions (System)","ARRAY_APPEND","
+ARRAY_APPEND(arrayExpression, value)
+","
+Append an element to the end of an array.
+Returns NULL if any parameter is NULL.
+","
+CALL ARRAY_APPEND(ARRAY[1, 2], 3)
+"
+
+"Functions (System)","ARRAY_SLICE","
+ARRAY_SLICE(arrayExpression, lowerBoundInt, upperBoundInt)
+","
+Returns elements from the array as specified by the lower and upper bound parameters.
+Both parameters are inclusive and the first element has index 1, i.e. ARRAY_SLICE(a, 2, 2) has only the second element.
+Returns NULL if any parameter is NULL or if an index is out of bounds.
+","
+CALL ARRAY_SLICE(ARRAY[1, 2, 3, 4], 1, 3)
+"
+
+"Functions (System)","AUTOCOMMIT","
+AUTOCOMMIT()
+","
+Returns true if auto commit is switched on for this session.
+","
+AUTOCOMMIT()
+"
+
+"Functions (System)","CANCEL_SESSION","
+CANCEL_SESSION(sessionInt)
+","
+Cancels the currently executing statement of another session.
+The method only works if the multithreaded kernel is enabled (see SET MULTI_THREADED).
+Returns true if the statement was canceled, false if the session is closed or no statement is currently executing.
+
+Admin rights are required to execute this command.
+","
+CANCEL_SESSION(3)
+"
+
+"Functions (System)","CASEWHEN Function","
+CASEWHEN(boolean, aValue, bValue)
+","
+Returns 'a' if the boolean expression is true, otherwise 'b'.
+Returns the same data type as the parameter.
+","
+CASEWHEN(ID=1, 'A', 'B')
+"
+
+"Functions (System)","CAST","
+CAST(value AS dataType)
+","
+Converts a value to another data type. The following conversion rules are used:
+When converting a number to a boolean, 0 is false and every other value is true.
+When converting a boolean to a number, false is 0 and true is 1.
+When converting a number to a number of another type, the value is checked for overflow.
+When converting a number to binary, the number of bytes matches the precision.
+When converting a string to binary, it is hex encoded (every byte two characters);
+a hex string can be converted to a number by first converting it to binary.
+If a direct conversion is not possible, the value is first converted to a string.
+Note that some data types may need explicitly specified precision to avoid overflow or rounding.
+","
+CAST(NAME AS INT);
+CAST(65535 AS BINARY);
+CAST(CAST('FFFF' AS BINARY) AS INT);
+CAST(TIMESTAMP '2010-01-01 10:40:00.123456' AS TIME(6))
+"
+
+"Functions (System)","COALESCE","
+{ COALESCE | NVL } (aValue, bValue [,...])
+","
+Returns the first value that is not null.
+","
+COALESCE(A, B, C)
+"
+
+"Functions (System)","CONVERT","
+CONVERT(value, dataType)
+","
+Converts a value to another data type.
+","
+CONVERT(NAME, INT)
+"
+
+"Functions (System)","CURRVAL","
+CURRVAL( [ schemaName, ] sequenceString )
+","
+Returns the current (last) value of the sequence, independent of the session.
+If the sequence was just created, the method returns (start - interval).
+If the schema name is not set, the current schema is used.
+If the schema name is not set, the sequence name is converted to uppercase (for compatibility).
+This method returns a long.
+","
+CURRVAL('TEST_SEQ')
+"
+
+"Functions (System)","CSVREAD","
+CSVREAD(fileNameString [, columnsString [, csvOptions ] ] )
+","
+Returns the result set of reading the CSV (comma separated values) file.
+For each parameter, NULL means the default value should be used.
+
+If the column names are specified (a list of column names separated with the
+fieldSeparator), those are used, otherwise (or if they are set to NULL) the first line of
+the file is interpreted as the column names.
+In that case, column names that contain no special characters (only letters, '_',
+and digits; similar to the rule for Java identifiers) are considered case insensitive.
+Other column names are case sensitive, that means you need to use quoted identifiers
+(see below).
+
+The default charset is the default value for this system, and the default field separator
+is a comma. Missing unquoted values as well as data that matches nullString is
+parsed as NULL. All columns of type VARCHAR.
+
+The BOM (the byte-order-mark) character 0xfeff at the beginning of the file is ignored.
+
+This function can be used like a table: ""SELECT * FROM CSVREAD(...)"".
+
+Instead of a file, an URL may be used, for example
+""jar:file:///c:/temp/example.zip!/org/example/nested.csv"".
+To read a stream from the classpath, use the prefix ""classpath:"".
+To read from HTTP, use the prefix ""http:"" (as in a browser).
+
+For performance reason, CSVREAD should not be used inside a join.
+Instead, import the data first (possibly into a temporary table) and then use the table.
+
+Admin rights are required to execute this command.
+","
+CALL CSVREAD('test.csv');
+-- Read a file containing the columns ID, NAME with
+CALL CSVREAD('test2.csv', 'ID|NAME', 'charset=UTF-8 fieldSeparator=|');
+SELECT * FROM CSVREAD('data/test.csv', null, 'rowSeparator=;');
+-- Read a tab-separated file
+SELECT * FROM CSVREAD('data/test.tsv', null, 'rowSeparator=' || CHAR(9));
+SELECT ""Last Name"" FROM CSVREAD('address.csv');
+SELECT ""Last Name"" FROM CSVREAD('classpath:/org/acme/data/address.csv');
+"
+
+"Functions (System)","CSVWRITE","
+CSVWRITE ( fileNameString, queryString [, csvOptions [, lineSepString] ] )
+","
+Writes a CSV (comma separated values). The file is overwritten if it exists.
+If only a file name is specified, it will be written to the current working directory.
+For each parameter, NULL means the default value should be used.
+The default charset is the default value for this system, and the default field separator is a comma.
+
+The values are converted to text using the default string representation;
+if another conversion is required you need to change the select statement accordingly.
+The parameter nullString is used when writing NULL (by default nothing is written
+when NULL appears). The default line separator is the default value for this
+system (system property ""line.separator"").
+
+The returned value is the number or rows written.
+Admin rights are required to execute this command.
+","
+CALL CSVWRITE('data/test.csv', 'SELECT * FROM TEST');
+CALL CSVWRITE('data/test2.csv', 'SELECT * FROM TEST', 'charset=UTF-8 fieldSeparator=|');
+-- Write a tab-separated file
+CALL CSVWRITE('data/test.tsv', 'SELECT * FROM TEST', 'charset=UTF-8 fieldSeparator=' || CHAR(9));
+"
+
+"Functions (System)","DATABASE","
+DATABASE()
+","
+Returns the name of the database.
+","
+CALL DATABASE();
+"
+
+"Functions (System)","DATABASE_PATH","
+DATABASE_PATH()
+","
+Returns the directory of the database files and the database name, if it is file based.
+Returns NULL otherwise.
+","
+CALL DATABASE_PATH();
+"
+
+"Functions (System)","DECODE","
+DECODE(value, whenValue, thenValue [,...])
+","
+Returns the first matching value. NULL is considered to match NULL.
+If no match was found, then NULL or the last parameter (if the parameter count is even) is returned.
+This function is provided for Oracle compatibility (see there for details).
+","
+CALL DECODE(RAND()>0.5, 0, 'Red', 1, 'Black');
+"
+
+"Functions (System)","DISK_SPACE_USED","
+DISK_SPACE_USED(tableNameString)
+","
+Returns the approximate amount of space used by the table specified.
+Does not currently take into account indexes or LOB's.
+This function may be expensive since it has to load every page in the table.
+","
+CALL DISK_SPACE_USED('my_table');
+"
+
+"Functions (System)","SIGNAL","
+SIGNAL(sqlStateString, messageString)
+","
+Throw an SQLException with the passed SQLState and reason.
+","
+CALL SIGNAL('23505', 'Duplicate user ID: ' || user_id);
+"
+
+"Functions (System)","ESTIMATED_ENVELOPE","
+ESTIMATED_ENVELOPE(tableNameString, columnNameString)
+","
+Returns the estimated minimum bounding box that encloses all specified GEOMETRY values.
+Only 2D coordinate plane is supported.
+NULL values are ignored.
+This function is only supported by MVStore engine.
+Column must have a spatial index.
+This function is fast, but estimation may include uncommitted data (including data from other transactions),
+may return approximate bounds, or be different with actual value due to other reasons.
+Use with caution.
+If estimation is not available this function returns NULL.
+For accurate and reliable result use ESTIMATE aggregate function instead.
+","
+CALL ESTIMATED_ENVELOPE('MY_TABLE', 'GEOMETRY_COLUMN');
+"
+
+"Functions (System)","FILE_READ","
+FILE_READ(fileNameString [,encodingString])
+","
+Returns the contents of a file. If only one parameter is supplied, the data are
+returned as a BLOB. If two parameters are used, the data is returned as a CLOB
+(text). The second parameter is the character set to use, NULL meaning the
+default character set for this system.
+
+File names and URLs are supported.
+To read a stream from the classpath, use the prefix ""classpath:"".
+
+Admin rights are required to execute this command.
+","
+SELECT LENGTH(FILE_READ('~/.h2.server.properties')) LEN;
+SELECT FILE_READ('http://localhost:8182/stylesheet.css', NULL) CSS;
+"
+
+"Functions (System)","FILE_WRITE","
+FILE_WRITE(blobValue, fileNameString)
+","
+Write the supplied parameter into a file. Return the number of bytes written.
+
+Write access to folder, and admin rights are required to execute this command.
+","
+SELECT FILE_WRITE('Hello world', '/tmp/hello.txt')) LEN;
+"
+
+"Functions (System)","GREATEST","
+GREATEST(aValue, bValue [,...])
+","
+Returns the largest value that is not NULL, or NULL if all values are NULL.
+","
+CALL GREATEST(1, 2, 3);
+"
+
+"Functions (System)","IDENTITY","
+IDENTITY()
+","
+Returns the last inserted identity value for this session.
+This value changes whenever a new sequence number was generated,
+even within a trigger or Java function. See also SCOPE_IDENTITY.
+This method returns a long.
+","
+CALL IDENTITY();
+"
+
+"Functions (System)","IFNULL","
+IFNULL(aValue, bValue)
+","
+Returns the value of 'a' if it is not null, otherwise 'b'.
+","
+CALL IFNULL(NULL, '');
+"
+
+"Functions (System)","LEAST","
+LEAST(aValue, bValue [,...])
+","
+Returns the smallest value that is not NULL, or NULL if all values are NULL.
+","
+CALL LEAST(1, 2, 3);
+"
+
+"Functions (System)","LOCK_MODE","
+LOCK_MODE()
+","
+Returns the current lock mode. See SET LOCK_MODE.
+This method returns an int.
+","
+CALL LOCK_MODE();
+"
+
+"Functions (System)","LOCK_TIMEOUT","
+LOCK_TIMEOUT()
+","
+Returns the lock timeout of the current session (in milliseconds).
+","
+LOCK_TIMEOUT()
+"
+
+"Functions (System)","LINK_SCHEMA","
+LINK_SCHEMA(targetSchemaString, driverString, urlString,
+userString, passwordString, sourceSchemaString)
+","
+Creates table links for all tables in a schema.
+If tables with the same name already exist, they are dropped first.
+The target schema is created automatically if it does not yet exist.
+The driver name may be empty if the driver is already loaded.
+The list of tables linked is returned in the form of a result set.
+Admin rights are required to execute this command.
+","
+CALL LINK_SCHEMA('TEST2', '', 'jdbc:h2:test2', 'sa', 'sa', 'PUBLIC');
+"
+
+"Functions (System)","MEMORY_FREE","
+MEMORY_FREE()
+","
+Returns the free memory in KB (where 1024 bytes is a KB).
+This method returns an int.
+The garbage is run before returning the value.
+Admin rights are required to execute this command.
+","
+MEMORY_FREE()
+"
+
+"Functions (System)","MEMORY_USED","
+MEMORY_USED()
+","
+Returns the used memory in KB (where 1024 bytes is a KB).
+This method returns an int.
+The garbage is run before returning the value.
+Admin rights are required to execute this command.
+","
+MEMORY_USED()
+"
+
+"Functions (System)","NEXTVAL","
+NEXTVAL ( [ schemaName, ] sequenceString )
+","
+Returns the next value of the sequence.
+Used values are never re-used, even when the transaction is rolled back.
+If the schema name is not set, the current schema is used, and the sequence name is converted to uppercase (for compatibility).
+This method returns a long.
+","
+NEXTVAL('TEST_SEQ')
+"
+
+"Functions (System)","NULLIF","
+NULLIF(aValue, bValue)
+","
+Returns NULL if 'a' is equals to 'b', otherwise 'a'.
+","
+NULLIF(A, B)
+"
+
+"Functions (System)","NVL2","
+NVL2(testValue, aValue, bValue)
+","
+If the test value is null, then 'b' is returned. Otherwise, 'a' is returned.
+The data type of the returned value is the data type of 'a' if this is a text type.
+","
+NVL2(X, 'not null', 'null')
+"
+
+"Functions (System)","READONLY","
+READONLY()
+","
+Returns true if the database is read-only.
+","
+READONLY()
+"
+
+"Functions (System)","ROWNUM","
+ROWNUM()
+","
+Returns the number of the current row.
+This method returns a long value.
+It is supported for SELECT statements, as well as for DELETE and UPDATE.
+The first row has the row number 1, and is calculated before ordering and grouping the result set,
+but after evaluating index conditions (even when the index conditions are specified in an outer query).
+Use the ROW_NUMBER() OVER () function to get row numbers after grouping or in specified order.
+","
+SELECT ROWNUM(), * FROM TEST;
+SELECT ROWNUM(), * FROM (SELECT * FROM TEST ORDER BY NAME);
+SELECT ID FROM (SELECT T.*, ROWNUM AS R FROM TEST T) WHERE R BETWEEN 2 AND 3;
+"
+
+"Functions (System)","SCHEMA","
+SCHEMA()
+","
+Returns the name of the default schema for this session.
+","
+CALL SCHEMA()
+"
+
+"Functions (System)","SCOPE_IDENTITY","
+SCOPE_IDENTITY()
+","
+Returns the last inserted identity value for this session for the current scope
+(the current statement).
+Changes within triggers and Java functions are ignored. See also IDENTITY().
+This method returns a long.
+","
+CALL SCOPE_IDENTITY();
+"
+
+"Functions (System)","SESSION_ID","
+SESSION_ID()
+","
+Returns the unique session id number for the current database connection.
+This id stays the same while the connection is open.
+This method returns an int.
+The database engine may re-use a session id after the connection is closed.
+","
+CALL SESSION_ID()
+"
+
+"Functions (System)","SET","
+SET(@variableName, value)
+","
+Updates a variable with the given value.
+The new value is returned.
+When used in a query, the value is updated in the order the rows are read.
+When used in a subquery, not all rows might be read depending on the query plan.
+This can be used to implement running totals / cumulative sums.
+","
+SELECT X, SET(@I, IFNULL(@I, 0)+X) RUNNING_TOTAL FROM SYSTEM_RANGE(1, 10)
+"
+
+"Functions (System)","TABLE","
+{ TABLE | TABLE_DISTINCT }
+( { name dataType = array|rowValueExpression } [,...] )
+","
+Returns the result set. TABLE_DISTINCT removes duplicate rows.
+","
+SELECT * FROM TABLE(VALUE INT = ARRAY[1, 2]);
+SELECT * FROM TABLE(ID INT=(1, 2), NAME VARCHAR=('Hello', 'World'));
+"
+
+"Functions (System)","TRANSACTION_ID","
+TRANSACTION_ID()
+","
+Returns the current transaction id for this session.
+This method returns NULL if there is no uncommitted change, or if the database is not persisted.
+Otherwise a value of the following form is returned:
+""logFileId-position-sessionId"".
+This method returns a string.
+The value is unique across database restarts (values are not re-used).
+","
+CALL TRANSACTION_ID()
+"
+
+"Functions (System)","TRUNCATE_VALUE","
+TRUNCATE_VALUE(value, precisionInt, forceBoolean)
+","
+Truncate a value to the required precision.
+The precision of the returned value may be a bit larger than requested,
+because fixed precision values are not truncated (unlike the numeric TRUNCATE method).
+Unlike CAST, the truncating a decimal value may lose precision if the force flag is set to true.
+The method returns a value with the same data type as the first parameter.
+","
+CALL TRUNCATE_VALUE(X, 10, TRUE);
+"
+
+"Functions (System)","UNNEST","
+UNNEST(array, [,...]) [WITH ORDINALITY]
+","
+Returns the result set.
+Number of columns is equal to number of arguments,
+plus one additional column with row number if WITH ORDINALITY is specified.
+Number of rows is equal to length of longest specified array.
+If multiple arguments are specified and they have different length, cells with missing values will contain null values.
+","
+SELECT * FROM UNNEST(ARRAY['a', 'b', 'c']);
+"
+
+"Functions (System)","USER","
+{ USER | CURRENT_USER } ()
+","
+Returns the name of the current user of this session.
+","
+CURRENT_USER()
+"
+
+"Functions (System)","H2VERSION","
+H2VERSION()
+","
+Returns the H2 version as a String.
+","
+H2VERSION()
+"
+
+"Functions (Window)","ROW_NUMBER","
+ROW_NUMBER() OVER windowNameOrSpecification
+","
+Returns the number of the current row starting with 1.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT ROW_NUMBER() OVER (), * FROM TEST;
+SELECT ROW_NUMBER() OVER (ORDER BY ID), * FROM TEST;
+SELECT ROW_NUMBER() OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","RANK","
+RANK() OVER windowNameOrSpecification
+","
+Returns the rank of the current row.
+The rank of a row is the number of rows that precede this row plus 1.
+If two or more rows have the same values in ORDER BY columns, these rows get the same rank from the first row with the same values.
+It means that gaps in ranks are possible.
+This function requires window order clause.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT RANK() OVER (ORDER BY ID), * FROM TEST;
+SELECT RANK() OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","DENSE_RANK","
+DENSE_RANK() OVER windowNameOrSpecification
+","
+Returns the dense rank of the current row.
+The rank of a row is the number of groups of rows with the same values in ORDER BY columns that precede group with this row plus 1.
+If two or more rows have the same values in ORDER BY columns, these rows get the same rank.
+Gaps in ranks are not possible.
+This function requires window order clause.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT DENSE_RANK() OVER (ORDER BY ID), * FROM TEST;
+SELECT DENSE_RANK() OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","PERCENT_RANK","
+PERCENT_RANK() OVER windowNameOrSpecification
+","
+Returns the relative rank of the current row.
+The relative rank is calculated as (RANK - 1) / (NR - 1),
+where RANK is a rank of the row and NR is a number of rows in window partition with this row.
+Note that result is always 0 if window order clause is not specified.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT PERCENT_RANK() OVER (ORDER BY ID), * FROM TEST;
+SELECT PERCENT_RANK() OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","CUME_DIST","
+CUME_DIST() OVER windowNameOrSpecification
+","
+Returns the relative rank of the current row.
+The relative rank is calculated as NP / NR
+where NP is a number of rows that precede the current row or have the same values in ORDER BY columns
+and NR is a number of rows in window partition with this row.
+Note that result is always 1 if window order clause is not specified.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT CUME_DIST() OVER (ORDER BY ID), * FROM TEST;
+SELECT CUME_DIST() OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","NTILE","
+NTILE(long) OVER windowNameOrSpecification
+","
+Distributes the rows into a specified number of groups.
+Number of groups should be a positive long value.
+NTILE returns the 1-based number of the group to which the current row belongs.
+First groups will have more rows if number of rows is not divisible by number of groups.
+For example, if 5 rows are distributed into 2 groups this function returns 1 for the first 3 row and 2 for the last 2 rows.
+This function requires window order clause.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT NTILE(10) OVER (ORDER BY ID), * FROM TEST;
+SELECT NTILE(5) OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","LEAD","
+LEAD(value [, offsetInt [, defaultValue]]) [{RESPECT|IGNORE} NULLS]
+OVER windowNameOrSpecification
+","
+Returns the value in a next row with specified offset relative to the current row.
+Offset must be non-negative.
+If IGNORE NULLS is specified rows with null values in selected expression are skipped.
+If number of considered rows is less than specified relative number this function returns NULL
+or the specified default value, if any.
+If offset is 0 the value from the current row is returned unconditionally.
+This function requires window order clause.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT LEAD(X) OVER (ORDER BY ID), * FROM TEST;
+SELECT LEAD(X, 2, 0) IGNORE NULLS OVER (
+    PARTITION BY CATEGORY ORDER BY ID
+), * FROM TEST;
+"
+
+"Functions (Window)","LAG","
+LAG(value [, offsetInt [, defaultValue]]) [{RESPECT|IGNORE} NULLS]
+OVER windowNameOrSpecification
+","
+Returns the value in a previous row with specified offset relative to the current row.
+Offset must be non-negative.
+If IGNORE NULLS is specified rows with null values in selected expression are skipped.
+If number of considered rows is less than specified relative number this function returns NULL
+or the specified default value, if any.
+If offset is 0 the value from the current row is returned unconditionally.
+This function requires window order clause.
+Window frame clause is not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT LAG(X) OVER (ORDER BY ID), * FROM TEST;
+SELECT LAG(X, 2, 0) IGNORE NULLS OVER (
+    PARTITION BY CATEGORY ORDER BY ID
+), * FROM TEST;
+"
+
+"Functions (Window)","FIRST_VALUE","
+FIRST_VALUE(value) [{RESPECT|IGNORE} NULLS]
+OVER windowNameOrSpecification
+","
+Returns the first value in a window.
+If IGNORE NULLS is specified null values are skipped and the function returns first non-null value, if any.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT FIRST_VALUE(X) OVER (ORDER BY ID), * FROM TEST;
+SELECT FIRST_VALUE(X) IGNORE NULLS OVER (PARTITION BY CATEGORY ORDER BY ID), * FROM TEST;
+"
+
+"Functions (Window)","LAST_VALUE","
+LAST_VALUE(value) [{RESPECT|IGNORE} NULLS]
+OVER windowNameOrSpecification
+","
+Returns the last value in a window.
+If IGNORE NULLS is specified null values are skipped and the function returns last non-null value before them, if any;
+if there is no non-null value it returns NULL.
+Note that the last value is actually a value in the current group of rows
+if window order clause is specified and window frame clause is not specified.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT LAST_VALUE(X) OVER (ORDER BY ID), * FROM TEST;
+SELECT LAST_VALUE(X) IGNORE NULLS OVER (
+    PARTITION BY CATEGORY ORDER BY ID
+    RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING
+), * FROM TEST;
+"
+
+"Functions (Window)","NTH_VALUE","
+NTH_VALUE(value, nInt) [FROM {FIRST|LAST}] [{RESPECT|IGNORE} NULLS]
+OVER windowNameOrSpecification
+","
+Returns the value in a row with a specified relative number in a window.
+Relative row number must be positive.
+If FROM LAST is specified rows a counted backwards from the last row.
+If IGNORE NULLS is specified rows with null values in selected expression are skipped.
+If number of considered rows is less than specified relative number this function returns NULL.
+Note that the last row is actually a last row in the current group of rows
+if window order clause is specified and window frame clause is not specified.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT NTH_VALUE(X) OVER (ORDER BY ID), * FROM TEST;
+SELECT NTH_VALUE(X) IGNORE NULLS OVER (
+    PARTITION BY CATEGORY ORDER BY ID
+    RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
+), * FROM TEST;
+"
+
+"Functions (Window)","RATIO_TO_REPORT","
+RATIO_TO_REPORT(value)
+OVER windowNameOrSpecification
+","
+Returns the ratio of a value to the sum of all values.
+If argument is NULL or sum of all values is 0, then the value of function is NULL.
+Window ordering and window frame clauses are not allowed for this function.
+
+Window functions in H2 may require a lot of memory for large queries.
+","
+SELECT X, RATIO_TO_REPORT(X) OVER (PARTITION BY CATEGORY), CATEGORY FROM TEST;
+"
+
+"System Tables","Information Schema","
+INFORMATION_SCHEMA
+","
+To get the list of system tables, execute the statement SELECT * FROM
+INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA'
+","
+
+"
+"System Tables","Range Table","
+SYSTEM_RANGE(start, end)
+","
+Contains all values from start to end (this is a dynamic table).
+","
+SYSTEM_RANGE(0, 100)
+"
diff --git a/modules/h2/src/docsrc/html/advanced.html b/modules/h2/src/docsrc/html/advanced.html
new file mode 100644
index 0000000..c1d0501
--- /dev/null
+++ b/modules/h2/src/docsrc/html/advanced.html
@@ -0,0 +1,1968 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!--
+Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
+and the EPL 1.0 (http://h2database.com/html/license.html).
+Initial Developer: H2 Group
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<title>
+Advanced
+</title>
+<link rel="stylesheet" type="text/css" href="stylesheet.css" />
+<!-- [search] { -->
+<script type="text/javascript" src="navigation.js"></script>
+</head><body onload="frameMe();">
+<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
+<!-- } -->
+
+<h1>Advanced</h1>
+<a href="#result_sets">
+    Result Sets</a><br />
+<a href="#large_objects">
+    Large Objects</a><br />
+<a href="#linked_tables">
+    Linked Tables</a><br />
+<a href="#spatial_features">
+    Spatial Features</a><br />
+<a href="#recursive_queries">
+    Recursive Queries</a><br />
+<a href="#updatable_views">
+    Updatable Views</a><br />
+<a href="#transaction_isolation">
+    Transaction Isolation</a><br />
+<a href="#mvcc">
+    Multi-Version Concurrency Control (MVCC)</a><br />
+<a href="#clustering">
+    Clustering / High Availability</a><br />
+<a href="#two_phase_commit">
+    Two Phase Commit</a><br />
+<a href="#compatibility">
+    Compatibility</a><br />
+<a href="#keywords">
+    Keywords / Reserved Words</a><br />
+<a href="#standards_compliance">
+    Standards Compliance</a><br />
+<a href="#windows_service">
+    Run as Windows Service</a><br />
+<a href="#odbc_driver">
+    ODBC Driver</a><br />
+<a href="#microsoft_dot_net">
+    Using H2 in Microsoft .NET</a><br />
+<a href="#acid">
+    ACID</a><br />
+<a href="#durability_problems">
+    Durability Problems</a><br />
+<a href="#using_recover_tool">
+    Using the Recover Tool</a><br />
+<a href="#file_locking_protocols">
+    File Locking Protocols</a><br />
+<a href="#passwords">
+    Using Passwords</a><br />
+<a href="#password_hash">
+    Password Hash</a><br />
+<a href="#sql_injection">
+    Protection against SQL Injection</a><br />
+<a href="#remote_access">
+    Protection against Remote Access</a><br />
+<a href="#restricting_classes">
+    Restricting Class Loading and Usage</a><br />
+<a href="#security_protocols">
+    Security Protocols</a><br />
+<a href="#tls_connections">
+    TLS Connections</a><br />
+<a href="#uuid">
+    Universally Unique Identifiers (UUID)</a><br />
+<a href="#system_properties">
+    Settings Read from System Properties</a><br />
+<a href="#server_bind_address">
+    Setting the Server Bind Address</a><br />
+<a href="#file_system">
+    Pluggable File System</a><br />
+<a href="#file_system_split">
+    Split File System</a><br />
+<a href="#database_upgrade">
+    Database Upgrade</a><br />
+<a href="#java_objects_serialization">
+    Java Objects Serialization</a><br />
+<a href="#custom_data_types_handler_api">
+    Custom Data Types Handler API</a><br />
+<a href="#limits_limitations">
+    Limits and Limitations</a><br />
+<a href="#glossary_links">
+    Glossary and Links</a><br />
+
+<h2 id="result_sets">Result Sets</h2>
+
+<h3>Statements that Return a Result Set</h3>
+<p>
+The following statements return a result set: <code>SELECT, EXPLAIN, CALL, SCRIPT, SHOW, HELP</code>.
+All other statements return an update count.
+</p>
+
+<h3>Limiting the Number of Rows</h3>
+<p>
+Before the result is returned to the application, all rows are read by the database.
+Server side cursors are not supported currently.
+If only the first few rows are interesting for the application, then the
+result set size should be limited to improve the performance.
+This can be done using <code>FETCH</code> in a query
+(example: <code>SELECT * FROM TEST FETCH FIRST 100 ROWS ONLY</code>),
+or by using <code>Statement.setMaxRows(max)</code>.
+</p>
+
+<h3>Large Result Sets and External Sorting</h3>
+<p>
+For large result set, the result is buffered to disk. The threshold can be defined using the statement
+<code>SET MAX_MEMORY_ROWS</code>.
+If <code>ORDER BY</code> is used, the sorting is done using an
+external sort algorithm.
+In this case, each block of rows is sorted using quick sort, then written to disk;
+when reading the data, the blocks are merged together.
+</p>
+
+<h2 id="large_objects">Large Objects</h2>
+
+<h3>Storing and Reading Large Objects</h3>
+<p>
+If it is possible that the objects don't fit into memory, then the data type
+CLOB (for textual data) or BLOB (for binary data) should be used.
+For these data types, the objects are not fully read into memory, by using streams.
+To store a BLOB, use <code>PreparedStatement.setBinaryStream</code>. To store a CLOB, use
+<code>PreparedStatement.setCharacterStream</code>. To read a BLOB, use <code>ResultSet.getBinaryStream</code>,
+and to read a CLOB, use <code>ResultSet.getCharacterStream</code>.
+When using the client/server mode, large BLOB and CLOB data is stored in a temporary file
+on the client side.
+</p>
+
+<h3>When to use CLOB/BLOB</h3>
+<p>
+By default, this database stores large LOB (CLOB and BLOB) objects separate from the main table data.
+Small LOB objects are stored in-place, the threshold can be set using
+<a href="commands.html#set_max_length_inplace_lob" class="notranslate" >MAX_LENGTH_INPLACE_LOB</a>,
+but there is still an overhead to use CLOB/BLOB. Because of this, BLOB and CLOB
+should never be used for columns with a maximum size below about 200 bytes.
+The best threshold depends on the use case; reading in-place objects is faster
+than reading from separate files, but slows down the performance of operations
+that don't involve this column.
+</p>
+
+<h3>Large Object Compression</h3>
+<p>
+The following feature is only available for the PageStore storage engine.
+For the MVStore engine (the default for H2 version 1.4.x),
+append <code>;COMPRESS=TRUE</code> to the database URL instead.
+CLOB and BLOB values can be compressed by using
+<a href="commands.html#set_compress_lob" class="notranslate" >SET COMPRESS_LOB</a>.
+The LZF algorithm is faster but needs more disk space. By default compression is disabled, which usually speeds up write
+operations. If you store many large compressible values such as XML, HTML, text, and uncompressed binary files,
+then compressing can save a lot of disk space (sometimes more than 50%), and read operations may even be faster.
+</p>
+
+<h2 id="linked_tables">Linked Tables</h2>
+<p>
+This database supports linked tables, which means tables that don't exist in the current database but
+are just links to another database. To create such a link, use the
+<code>CREATE LINKED TABLE</code> statement:
+</p>
+<pre>
+CREATE LINKED TABLE LINK('org.postgresql.Driver', 'jdbc:postgresql:test', 'sa', 'sa', 'TEST');
+</pre>
+<p>
+You can then access the table in the usual way.
+Whenever the linked table is accessed, the database issues specific queries over JDBC.
+Using the example above, if you issue the query <code>SELECT * FROM LINK WHERE ID=1</code>,
+then the following query is run against the PostgreSQL database: <code>SELECT * FROM TEST WHERE ID=?</code>.
+The same happens for insert and update statements.
+Only simple statements are executed against the target database, that means no joins
+(queries that contain joins are converted to simple queries).
+Prepared statements are used where possible.
+</p>
+<p>
+To view the statements that are executed against the target table, set the trace level to 3.
+</p>
+<p>
+If multiple linked tables point to the same database (using the same database URL), the connection
+is shared. To disable this, set the system property <code>h2.shareLinkedConnections=false</code>.
+</p>
+<p>
+The statement <a href="commands.html#create_linked_table" class="notranslate" >CREATE LINKED TABLE</a>
+supports an optional schema name parameter.
+</p>
+<p>
+The following are not supported because they may result in a deadlock:
+creating a linked table to the same database,
+and creating a linked table to another database using the server mode if the other database is open in the same server
+(use the embedded mode instead).
+</p>
+<p>
+Data types that are not supported in H2 are also not supported for linked tables,
+for example unsigned data types if the value is outside the range of the signed type.
+In such cases, the columns needs to be cast to a supported type.
+</p>
+
+<h2 id="updatable_views">Updatable Views</h2>
+<p>
+By default, views are not updatable.
+To make a view updatable, use an "instead of" trigger as follows:
+</p>
+<pre>
+CREATE TRIGGER TRIGGER_NAME
+INSTEAD OF INSERT, UPDATE, DELETE
+ON VIEW_NAME
+FOR EACH ROW CALL "com.acme.TriggerClassName";
+</pre>
+<p>
+Update the base table(s) within the trigger as required.
+For details, see the sample application <code>org.h2.samples.UpdatableView</code>.
+</p>
+
+<h2 id="transaction_isolation">Transaction Isolation</h2>
+<p>
+Please note that most data definition language (DDL) statements,
+such as "create table", commit the current transaction.
+See the <a href="commands.html">Commands</a> for details.
+</p>
+<p>
+Transaction isolation is provided for all data manipulation language (DML) statements.
+</p>
+<p>
+Please note that with default MVStore storage engine table level locking is not used.
+Instead, rows are locked for update, and read committed is used in all cases
+except for explicitly selected read uncommitted transaction isolation level.
+</p>
+<p>
+This database supports the following transaction isolation levels:
+</p>
+<ul>
+<li><b>Read Committed</b><br />
+    This is the default level.
+    Read locks are released immediately after executing the statement, but write locks are kept until the transaction commits.
+    Higher concurrency is possible when using this level.<br />
+    To enable, execute the SQL statement <code>SET LOCK_MODE 3</code><br />
+    or append <code>;LOCK_MODE=3</code> to the database URL: <code>jdbc:h2:~/test;LOCK_MODE=3</code>
+</li><li>
+<b>Serializable</b><br />
+    Both read locks and write locks are kept until the transaction commits.
+    To enable, execute the SQL statement <code>SET LOCK_MODE 1</code><br />
+    or append <code>;LOCK_MODE=1</code> to the database URL: <code>jdbc:h2:~/test;LOCK_MODE=1</code>
+</li><li><b>Read Uncommitted</b><br />
+    This level means that transaction isolation is disabled.
+    This level is not supported by PageStore engine if multi-threaded mode is enabled.
+    <br />
+    To enable, execute the SQL statement <code>SET LOCK_MODE 0</code><br />
+    or append <code>;LOCK_MODE=0</code> to the database URL: <code>jdbc:h2:~/test;LOCK_MODE=0</code>
+</li>
+</ul>
+<p>
+When using the isolation level 'serializable', dirty reads, non-repeatable reads, and phantom reads are prohibited.
+</p>
+<ul>
+<li><b>Dirty Reads</b><br />
+    Means a connection can read uncommitted changes made by another connection.<br />
+    Possible with: read uncommitted
+</li><li><b>Non-Repeatable Reads</b><br />
+    A connection reads a row, another connection changes a row and commits,
+    and the first connection re-reads the same row and gets the new result.<br />
+    Possible with: read uncommitted, read committed
+</li><li><b>Phantom Reads</b><br />
+    A connection reads a set of rows using a condition, another connection
+    inserts a row that falls in this condition and commits, then the first connection
+    re-reads using the same condition and gets the new row.<br />
+    Possible with: read uncommitted, read committed
+</li>
+</ul>
+
+<h3 id="mvcc">Multi-Version Concurrency Control (MVCC)</h3>
+<p>
+With default MVStore engine delete, insert and update operations only issue a shared lock on the table.
+An exclusive lock is still used when adding or removing columns or when dropping the table.
+Connections only 'see' committed data, and own changes. That means, if connection A updates
+a row but doesn't commit this change yet, connection B will see the old value.
+Only when the change is committed, the new value is visible by other connections
+(read committed). If multiple connections concurrently try to lock or update the same row, the
+database waits until it can apply the change, but at most until the lock timeout expires.
+</p>
+
+<h3>Table Level Locking (PageStore engine)</h3>
+<p>
+With PageStore engine to make sure all connections only see consistent data, table level locking is used.
+This mechanism does not allow high concurrency, but is very fast.
+Shared locks and exclusive locks are supported.
+Before reading from a table, the database tries to add a shared lock to the table
+(this is only possible if there is no exclusive lock on the object by another connection).
+If the shared lock is added successfully, the table can be read. It is allowed that
+other connections also have a shared lock on the same object. If a connection wants
+to write to a table (update or delete a row), an exclusive lock is required. To get the
+exclusive lock, other connection must not have any locks on the object. After the
+connection commits, all locks are released.
+This database keeps all locks in memory.
+When a lock is released, and multiple connections are waiting for it, one of them is picked at random.
+</p>
+
+<h3>Lock Timeout</h3>
+<p>
+If a connection cannot get a lock on an object, the connection waits for some amount
+of time (the lock timeout). During this time, hopefully the connection holding the
+lock commits and it is then possible to get the lock. If this is not possible because
+the other connection does not release the lock for some time, the unsuccessful
+connection will get a lock timeout exception. The lock timeout can be set individually
+for each connection.
+</p>
+
+<h2 id="clustering">Clustering / High Availability</h2>
+<p>
+This database supports a simple clustering / high availability mechanism. The architecture is:
+two database servers run on two different computers, and on both computers is a copy of the
+same database. If both servers run, each database operation is executed on both computers.
+If one server fails (power, hardware or network failure), the other server can still continue to work.
+From this point on, the operations will be executed only on one server until the other server
+is back up.
+</p><p>
+Clustering can only be used in the server mode (the embedded mode does not support clustering).
+The cluster can be re-created using the <code>CreateCluster</code> tool without stopping
+the remaining server. Applications that are still connected are automatically disconnected,
+however when appending <code>;AUTO_RECONNECT=TRUE</code>, they will recover from that.
+</p><p>
+To initialize the cluster, use the following steps:
+</p>
+<ul>
+<li>Create a database
+</li><li>Use the <code>CreateCluster</code> tool to copy the database to
+    another location and initialize the clustering.
+    Afterwards, you have two databases containing the same data.
+</li><li>Start two servers (one for each copy of the database)
+</li><li>You are now ready to connect to the databases with the client application(s)
+</li></ul>
+
+<h3>Using the CreateCluster Tool</h3>
+<p>
+To understand how clustering works, please try out the following example.
+In this example, the two databases reside on the same computer, but usually, the
+databases will be on different servers.
+</p>
+<ul>
+<li>Create two directories: <code>server1, server2</code>.
+    Each directory will simulate a directory on a computer.
+</li><li>Start a TCP server pointing to the first directory.
+    You can do this using the command line:
+<pre>
+java org.h2.tools.Server
+    -tcp -tcpPort 9101
+    -baseDir server1
+</pre>
+</li><li>Start a second TCP server pointing to the second directory.
+    This will simulate a server running on a second (redundant) computer.
+    You can do this using the command line:
+<pre>
+java org.h2.tools.Server
+    -tcp -tcpPort 9102
+    -baseDir server2
+</pre>
+</li><li>Use the <code>CreateCluster</code> tool to initialize clustering.
+    This will automatically create a new, empty database if it does not exist.
+    Run the tool on the command line:
+<pre>
+java org.h2.tools.CreateCluster
+    -urlSource jdbc:h2:tcp://localhost:9101/~/test
+    -urlTarget jdbc:h2:tcp://localhost:9102/~/test
+    -user sa
+    -serverList localhost:9101,localhost:9102
+</pre>
+</li><li>You can now connect to the databases using
+an application or the H2 Console using the JDBC URL
+<code>jdbc:h2:tcp://localhost:9101,localhost:9102/~/test</code>
+</li><li>If you stop a server (by killing the process),
+you will notice that the other machine continues to work,
+and therefore the database is still accessible.
+</li><li>To restore the cluster, you first need to delete the
+database that failed, then restart the server that was stopped,
+and re-run the <code>CreateCluster</code> tool.
+</li></ul>
+
+<h3>Detect Which Cluster Instances are Running</h3>
+<p>
+To find out which cluster nodes are currently running, execute the following SQL statement:
+</p>
+<pre>
+SELECT VALUE FROM INFORMATION_SCHEMA.SETTINGS WHERE NAME='CLUSTER'
+</pre>
+<p>
+If the result is <code>''</code> (two single quotes), then the cluster mode is disabled. Otherwise, the list of
+servers is returned, enclosed in single quote. Example: <code>'server1:9191,server2:9191'</code>.
+</p>
+
+<p>
+It is also possible to get the list of servers by using Connection.getClientInfo().
+</p>
+
+<p>
+The property list returned from <code>getClientInfo()</code> contains a <code>numServers</code> property that returns the
+number of servers that are in the connection list. To get the actual servers, <code>getClientInfo()</code> also has
+properties <code>server0</code>..<code>serverX</code>, where serverX is the number of servers minus 1.
+</p>
+
+<p>
+Example: To get the 2nd server in the connection list one uses <code>getClientInfo('server1')</code>.
+<b>Note:</b> The <code>serverX</code> property only returns IP addresses and ports and not hostnames.
+</p>
+
+<h3>Clustering Algorithm and Limitations</h3>
+<p>
+Read-only queries are only executed against the first cluster node, but all other statements are
+executed against all nodes. There is currently no load balancing made to avoid problems with
+transactions. The following functions may yield different results on different cluster nodes and must be
+executed with care: <code>UUID(), RANDOM_UUID(), SECURE_RAND(), SESSION_ID(),
+MEMORY_FREE(), MEMORY_USED(), CSVREAD(), CSVWRITE(), RAND()</code> [when not using a seed].
+Those functions should not be used directly in modifying statements
+(for example <code>INSERT, UPDATE, MERGE</code>). However, they can be used
+in read-only statements and the result can then be used for modifying statements.
+Using auto-increment and identity columns is currently not supported.
+Instead, sequence values need to be manually requested and then used to insert data (using two statements).
+</p>
+<p>
+When using the cluster modes, result sets are read fully in memory by the client, so that
+there is no problem if the server dies that executed the query. Result sets must fit in memory
+on the client side.
+</p>
+<p>
+The SQL statement <code>SET AUTOCOMMIT FALSE</code> is not supported in the cluster mode.
+To disable autocommit, the method <code>Connection.setAutoCommit(false)</code> needs to be called.
+</p>
+<p>
+It is possible that a transaction from one connection overtakes a transaction from a different connection.
+Depending on the operations, this might result in different results, for example when
+conditionally incrementing a value in a row.
+</p>
+
+<h2 id="two_phase_commit">Two Phase Commit</h2>
+<p>
+The two phase commit protocol is supported. 2-phase-commit works as follows:
+</p>
+<ul>
+<li>Autocommit needs to be switched off
+</li><li>A transaction is started, for example by inserting a row
+</li><li>The transaction is marked 'prepared' by executing the SQL statement
+    <code>PREPARE COMMIT transactionName</code>
+</li><li>The transaction can now be committed or rolled back
+</li><li>If a problem occurs before the transaction was successfully committed or rolled back
+    (for example because a network problem occurred), the transaction is in the state 'in-doubt'
+</li><li>When re-connecting to the database, the in-doubt transactions can be listed
+    with <code>SELECT * FROM INFORMATION_SCHEMA.IN_DOUBT</code>
+</li><li>Each transaction in this list must now be committed or rolled back by executing
+    <code>COMMIT TRANSACTION transactionName</code> or
+    <code>ROLLBACK TRANSACTION transactionName</code>
+</li><li>The database needs to be closed and re-opened to apply the changes
+</li></ul>
+
+<h2 id="compatibility">Compatibility</h2>
+<p>
+This database is (up to a certain point) compatible to other databases such as HSQLDB, MySQL and PostgreSQL.
+There are certain areas where H2 is incompatible.
+</p>
+
+<h3>Transaction Commit when Autocommit is On</h3>
+<p>
+At this time, this database engine commits a transaction (if autocommit is switched on) just before returning the result.
+For a query, this means the transaction is committed even before the application scans through the result set, and before the result set is closed.
+Other database engines may commit the transaction in this case when the result set is closed.
+</p>
+
+<h2 id="keywords">Keywords / Reserved Words</h2>
+<p>
+There is a list of keywords that can't be used as identifiers (table names, column names and so on),
+unless they are quoted (surrounded with double quotes).
+The following tokens are keywords in H2:
+</p>
+<table class="main">
+<thead>
+<tr>
+<th>Keyword</th>
+<th>H2</th>
+<th>SQL:&#8203;2011</th>
+<th>SQL:&#8203;2008</th>
+<th>SQL:&#8203;2003</th>
+<th>SQL:&#8203;1999</th>
+<th>SQL-92</th>
+</tr>
+</thead>
+<tbody>
+<tr><td>ALL</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>AND</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>ARRAY</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td></td></tr>
+<tr><td>AS</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>BETWEEN</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>NR</td><td>+</td></tr>
+<tr><td>BOTH</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CASE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CHECK</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CONSTRAINT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CROSS</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CURRENT_DATE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CURRENT_TIME</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CURRENT_TIMESTAMP</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>CURRENT_USER</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>DISTINCT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>EXCEPT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>EXISTS</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>NR</td><td>+</td></tr>
+<tr><td>FALSE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>FETCH</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>FILTER</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td></td><td></td></tr>
+<tr><td>FOR</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>FOREIGN</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>FROM</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>FULL</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>GROUP</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>GROUPS</td>
+<td>CS</td><td>+</td><td></td><td></td><td></td><td></td></tr>
+<tr><td>HAVING</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>IF</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>ILIKE</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>IN</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>INNER</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>INTERSECT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>INTERSECTS</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>INTERVAL</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>IS</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>JOIN</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>LEADING</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>LEFT</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>LIKE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>LIMIT</td>
+<td>+</td><td></td><td></td><td></td><td>+</td><td></td></tr>
+<tr><td>LOCALTIME</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td></td></tr>
+<tr><td>LOCALTIMESTAMP</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td></td></tr>
+<tr><td>MINUS</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>NATURAL</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>NOT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>NULL</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>OFFSET</td>
+<td>+</td><td>+</td><td>+</td><td></td><td></td><td></td></tr>
+<tr><td>ON</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>OR</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>ORDER</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>OVER</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td></td><td></td></tr>
+<tr><td>PARTITION</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td></td><td></td></tr>
+<tr><td>PRIMARY</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>QUALIFY</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>RANGE</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td></td><td></td></tr>
+<tr><td>REGEXP</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>RIGHT</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>ROW</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td></td></tr>
+<tr><td>_ROWID_</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>ROWNUM</td>
+<td>+</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>ROWS</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>SELECT</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>SYSDATE</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>SYSTIME</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>SYSTIMESTAMP</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>TABLE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>TODAY</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>TOP</td>
+<td>CS</td><td></td><td></td><td></td><td></td><td></td></tr>
+<tr><td>TRAILING</td>
+<td>CS</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>TRUE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>UNION</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>UNIQUE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>VALUES</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>WHERE</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+<tr><td>WINDOW</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td></td><td></td></tr>
+<tr><td>WITH</td>
+<td>+</td><td>+</td><td>+</td><td>+</td><td>+</td><td>+</td></tr>
+</tbody>
+</table>
+<p>
+Some keywords in H2 are context-sensitive (CS), such keywords may be used as identifiers in some places,
+but cannot be used as identifiers in others.
+Most keywords in H2 are also reserved (+) or non-reserved (NR) words in the SQL Standard.
+Newer versions of H2 may have more keywords than older ones.
+</p>
+
+<h2 id="standards_compliance">Standards Compliance</h2>
+<p>
+This database tries to be as much standard compliant as possible. For the SQL language, ANSI/ISO is the main
+standard. There are several versions that refer to the release date: SQL-92, SQL:1999, and SQL:2003.
+Unfortunately, the standard documentation is not freely available. Another problem is that important features
+are not standardized. Whenever this is the case, this database tries to be compatible to other databases.
+</p>
+
+<h3>Supported Character Sets, Character Encoding, and Unicode</h3>
+<p>
+H2 internally uses Unicode, and supports all character encoding systems and character sets supported by the virtual machine you use.
+</p>
+
+<h2 id="windows_service">Run as Windows Service</h2>
+<p>
+Using a native wrapper / adapter, Java applications can be run as a Windows Service.
+There are various tools available to do that. The Java Service Wrapper from
+<a href="https://wrapper.tanukisoftware.org">Tanuki Software, Inc.</a>
+is included in the installation. Batch files are provided to install, start, stop and uninstall the
+H2 Database Engine Service. This service contains the TCP Server and the H2 Console web application.
+The batch files are located in the directory <code>h2/service</code>.
+</p>
+<p>
+The service wrapper bundled with H2 is a 32-bit version.
+To use a 64-bit version of Windows (x64), you need to use a 64-bit version of the wrapper,
+for example the one from
+<a href="https://www.krenger.ch/blog/java-service-wrapper-3-5-14-for-windows-x64/">
+Simon Krenger</a>.
+</p>
+<p>
+When running the database as a service, absolute path should be used.
+Using <code>~</code> in the database URL is problematic in this case,
+because it means to use the home directory of the current user.
+The service might run without or with the wrong user, so that
+the database files might end up in an unexpected place.
+</p>
+
+<h3>Install the Service</h3>
+<p>
+The service needs to be registered as a Windows Service first.
+To do that, double click on <code>1_install_service.bat</code>.
+If successful, a command prompt window will pop up and disappear immediately. If not, a message will appear.
+</p>
+
+<h3>Start the Service</h3>
+<p>
+You can start the H2 Database Engine Service using the service manager of Windows,
+or by double clicking on <code>2_start_service.bat</code>.
+Please note that the batch file does not print an error message if the service is not installed.
+</p>
+
+<h3>Connect to the H2 Console</h3>
+<p>
+After installing and starting the service, you can connect to the H2 Console application using a browser.
+Double clicking on <code>3_start_browser.bat</code> to do that. The
+default port (8082) is hard coded in the batch file.
+</p>
+
+<h3>Stop the Service</h3>
+<p>
+To stop the service, double click on <code>4_stop_service.bat</code>.
+Please note that the batch file does not print an error message if the service is not installed or started.
+</p>
+
+<h3>Uninstall the Service</h3>
+<p>
+To uninstall the service, double click on <code>5_uninstall_service.bat</code>.
+If successful, a command prompt window will pop up and disappear immediately. If not, a message will appear.
+</p>
+
+<h3>Additional JDBC drivers</h3>
+<p>
+To use other databases (for example MySQL), the location of the JDBC drivers of those databases need to be
+added to the environment variables <code>H2DRIVERS</code>  or <code>CLASSPATH</code> before
+installing the service. Multiple drivers can be set; each entry needs to be separated with a <code>;</code>
+(Windows) or <code>:</code>  (other operating systems). Spaces in the path names are supported.
+The settings must not be quoted.
+</p>
+
+<h2 id="odbc_driver">ODBC Driver</h2>
+<p>
+This database does not come with its own ODBC driver at this time,
+but it supports the PostgreSQL network protocol.
+Therefore, the PostgreSQL ODBC driver can be used.
+Support for the PostgreSQL network protocol is quite new and should be viewed
+as experimental. It should not be used for production applications.
+</p>
+<p>
+To use the PostgreSQL ODBC driver on 64 bit versions of Windows,
+first run <code>c:/windows/syswow64/odbcad32.exe</code>.
+At this point you set up your DSN just like you would on any other system.
+See also:
+<a href="https://www.postgresql.org/message-id/dg76q0$khn$1@sea.gmane.org">Re: ODBC Driver on Windows 64 bit</a>
+</p>
+
+<h3>ODBC Installation</h3>
+<p>
+First, the ODBC driver must be installed.
+Any recent PostgreSQL ODBC driver should work, however version 8.2 (<code>psqlodbc-08_02*</code>) or newer is recommended.
+The Windows version of the PostgreSQL ODBC driver is available at
+<a href="https://www.postgresql.org/ftp/odbc/versions/msi/">https://www.postgresql.org/ftp/odbc/versions/msi/</a>.
+</p>
+
+<h3>Starting the Server</h3>
+<p>
+After installing the ODBC driver, start the H2 Server using the command line:
+</p>
+<pre>
+java -cp h2*.jar org.h2.tools.Server
+</pre>
+<p>
+The PG Server (PG for PostgreSQL protocol) is started as well.
+By default, databases are stored in the current working directory where the server is started.
+Use <code>-baseDir</code> to save databases in another directory, for example the user home directory:
+</p>
+<pre>
+java -cp h2*.jar org.h2.tools.Server -baseDir ~
+</pre>
+<p>
+The PG server can be started and stopped from within a Java application as follows:
+</p>
+<pre>
+Server server = Server.createPgServer("-baseDir", "~");
+server.start();
+...
+server.stop();
+</pre>
+<p>
+By default, only connections from localhost are allowed. To allow remote connections, use
+<code>-pgAllowOthers</code> when starting the server.
+</p>
+<p>
+To map an ODBC database name to a different JDBC database name,
+use the option <code>-key</code> when starting the server.
+Please note only one mapping is allowed. The following will map the ODBC database named
+<code>TEST</code> to the database URL <code>jdbc:h2:~/data/test;cipher=aes</code>:
+</p>
+<pre>
+java org.h2.tools.Server -pg -key TEST "~/data/test;cipher=aes"
+</pre>
+
+<h3>ODBC Configuration</h3>
+<p>
+After installing the driver, a new Data Source must be added. In Windows,
+run <code>odbcad32.exe</code> to open the Data Source Administrator. Then click on 'Add...'
+and select the PostgreSQL Unicode driver. Then click 'Finish'.
+You will be able to change the connection properties.
+The property column represents the property key in the <code>odbc.ini</code> file
+(which may be different from the GUI).
+</p>
+<table class="main">
+<tr><th>Property</th><th>Example</th><th>Remarks</th></tr>
+<tr><td>Data Source</td><td>H2 Test</td><td>The name of the ODBC Data Source</td></tr>
+<tr><td>Database</td><td>~/test;ifexists=true</td>
+    <td>
+        The database name. This can include connections settings.
+        By default, the database is stored in the current working directory
+        where the Server is started except when the -baseDir setting is used.
+        The name must be at least 3 characters.
+    </td></tr>
+<tr><td>Servername</td><td>localhost</td><td>The server name or IP address.<br />By default, only remote connections are allowed</td></tr>
+<tr><td>Username</td><td>sa</td><td>The database user name.</td></tr>
+<tr><td>SSL</td><td>false (disabled)</td><td>At this time, SSL is not supported.</td></tr>
+<tr><td>Port</td><td>5435</td><td>The port where the PG Server is listening.</td></tr>
+<tr><td>Password</td><td>sa</td><td>The database password.</td></tr>
+</table>
+<p>
+To improve performance, please enable 'server side prepare' under Options / Datasource / Page 2 / Server side prepare.
+</p>
+<p>
+Afterwards, you may use this data source.
+</p>
+
+<h3>PG Protocol Support Limitations</h3>
+<p>
+At this time, only a subset of the PostgreSQL network protocol is implemented.
+Also, there may be compatibility problems on the SQL level, with the catalog, or with text encoding.
+Problems are fixed as they are found.
+Currently, statements can not be canceled when using the PG protocol.
+Also, H2 does not provide index meta over ODBC.
+</p>
+<p>
+PostgreSQL ODBC Driver Setup requires a database password; that means it
+is not possible to connect to H2 databases without password. This is a limitation
+of the ODBC driver.
+</p>
+
+<h3>Security Considerations</h3>
+<p>
+Currently, the PG Server does not support challenge response or encrypt passwords.
+This may be a problem if an attacker can listen to the data transferred between the ODBC driver
+and the server, because the password is readable to the attacker.
+Also, it is currently not possible to use encrypted SSL connections.
+Therefore the ODBC driver should not be used where security is important.
+</p>
+<p>
+The first connection that opens a database using the PostgreSQL server needs to be an administrator user.
+Subsequent connections don't need to be opened by an administrator.
+</p>
+
+<h3>Using Microsoft Access</h3>
+<p>
+When using Microsoft Access to edit data in a linked H2 table, you may need to enable the following option:
+Tools - Options - Edit/Find - ODBC fields.
+</p>
+
+<h2 id="microsoft_dot_net">Using H2 in Microsoft .NET</h2>
+<p>
+The database can be used from Microsoft .NET even without using Java, by using IKVM.NET.
+You can access a H2 database on .NET using the JDBC API, or using the ADO.NET interface.
+</p>
+
+<h3>Using the ADO.NET API on .NET</h3>
+<p>
+An implementation of the ADO.NET interface is available in the open source project
+<a href="https://code.google.com/archive/p/h2sharp/">H2Sharp</a>.
+</p>
+
+<h3>Using the JDBC API on .NET</h3>
+<ul><li>Install the .NET Framework from <a href="https://www.microsoft.com">Microsoft</a>.
+    Mono has not yet been tested.
+</li><li>Install <a href="http://www.ikvm.net">IKVM.NET</a>.
+</li><li>Copy the <code>h2*.jar</code> file to <code>ikvm/bin</code>
+</li><li>Run the H2 Console using:
+    <code>ikvm -jar h2*.jar</code>
+</li><li>Convert the H2 Console to an <code>.exe</code> file using:
+    <code>ikvmc -target:winexe h2*.jar</code>.
+    You may ignore the warnings.
+</li><li>Create a <code>.dll</code> file using (change the version accordingly):
+    <code>ikvmc.exe -target:library -version:1.0.69.0 h2*.jar</code>
+</li></ul>
+<p>
+If you want your C# application use H2, you need to add the <code>h2.dll</code> and the
+<code>IKVM.OpenJDK.ClassLibrary.dll</code> to your C# solution. Here some sample code:
+</p>
+<pre>
+using System;
+using java.sql;
+
+class Test
+{
+    static public void Main()
+    {
+        org.h2.Driver.load();
+        Connection conn = DriverManager.getConnection("jdbc:h2:~/test", "sa", "sa");
+        Statement stat = conn.createStatement();
+        ResultSet rs = stat.executeQuery("SELECT 'Hello World'");
+        while (rs.next())
+        {
+            Console.WriteLine(rs.getString(1));
+        }
+    }
+}
+</pre>
+
+<h2 id="acid">ACID</h2>
+<p>
+In the database world, ACID stands for:
+</p>
+<ul>
+<li>Atomicity: transactions must be atomic, meaning either all tasks are performed or none.
+</li><li>Consistency: all operations must comply with the defined constraints.
+</li><li>Isolation: transactions must be isolated from each other.
+</li><li>Durability: committed transaction will not be lost.
+</li></ul>
+
+<h3>Atomicity</h3>
+<p>
+Transactions in this database are always atomic.
+</p>
+
+<h3>Consistency</h3>
+<p>
+By default, this database is always in a consistent state.
+Referential integrity rules are enforced except when
+explicitly disabled.
+</p>
+
+<h3>Isolation</h3>
+<p>
+For H2, as with most other database systems, the default isolation level is 'read committed'.
+This provides better performance, but also means that transactions are not completely isolated.
+H2 supports the transaction isolation levels 'serializable', 'read committed', and 'read uncommitted'.
+</p>
+
+<h3>Durability</h3>
+<p>
+This database does not guarantee that all committed transactions survive a power failure.
+Tests show that all databases sometimes lose transactions on power failure (for details, see below).
+Where losing transactions is not acceptable, a laptop or UPS (uninterruptible power supply) should be used.
+If durability is required for all possible cases of hardware failure, clustering should be used,
+such as the H2 clustering mode.
+</p>
+
+<h2 id="durability_problems">Durability Problems</h2>
+<p>
+Complete durability means all committed transaction survive a power failure.
+Some databases claim they can guarantee durability, but such claims are wrong.
+A durability test was run against H2, HSQLDB, PostgreSQL, and Derby.
+All of those databases sometimes lose committed transactions.
+The test is included in the H2 download, see <code>org.h2.test.poweroff.Test</code>.
+</p>
+
+<h3>Ways to (Not) Achieve Durability</h3>
+<p>
+Making sure that committed transactions are not lost is more complicated than it seems first.
+To guarantee complete durability, a database must ensure that the log record is on the hard drive
+before the commit call returns. To do that, databases use different methods. One
+is to use the 'synchronous write' file access mode. In Java, <code>RandomAccessFile</code>
+supports the modes <code>rws</code> and <code>rwd</code>:
+</p>
+<ul>
+<li><code>rwd</code>: every update to the file's content is written synchronously to the underlying storage device.
+</li><li><code>rws</code>: in addition to <code>rwd</code>, every update to the metadata is written synchronously.</li>
+</ul>
+<p>
+A test (<code>org.h2.test.poweroff.TestWrite</code>) with one of those modes achieves
+around 50 thousand write operations per second.
+Even when the operating system write buffer is disabled, the write rate is around 50 thousand operations per second.
+This feature does not force changes to disk because it does not flush all buffers.
+The test updates the same byte in the file again and again. If the hard drive was able to write at this rate,
+then the disk would need to make at least 50 thousand revolutions per second, or 3 million RPM
+(revolutions per minute). There are no such hard drives. The hard drive used for the test is about 7200 RPM,
+or about 120 revolutions per second. There is an overhead, so the maximum write rate must be lower than that.
+</p>
+<p>
+Calling <code>fsync</code> flushes the buffers. There are two ways to do that in Java:
+</p>
+<ul>
+<li><code>FileDescriptor.sync()</code>. The documentation says that this forces all system
+buffers to synchronize with the underlying device.
+This method is supposed to return after all in-memory modified copies of buffers associated with this file descriptor
+have been written to the physical medium.
+</li><li><code>FileChannel.force()</code>. This method is supposed
+to force any updates to this channel's file to be written to the storage device that contains it.
+</li></ul>
+<p>
+By default, MySQL calls <code>fsync</code> for each commit. When using one of those methods, only around 60 write operations
+per second can be achieved, which is consistent with the RPM rate of the hard drive used.
+Unfortunately, even when calling <code>FileDescriptor.sync()</code> or
+<code>FileChannel.force()</code>,
+data is not always persisted to the hard drive, because most hard drives do not obey
+<code>fsync()</code>: see
+<a href="https://hardware.slashdot.org/story/05/05/13/0529252/your-hard-drive-lies-to-you">Your Hard Drive Lies to You</a>.
+In Mac OS X, <code>fsync</code> does not flush hard drive buffers. See
+<a href="https://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html">Bad fsync?</a>.
+So the situation is confusing, and tests prove there is a problem.
+</p>
+<p>
+Trying to flush hard drive buffers is hard, and if you do the performance is very bad.
+First you need to make sure that the hard drive actually flushes all buffers.
+Tests show that this can not be done in a reliable way.
+Then the maximum number of transactions is around 60 per second.
+Because of those reasons, the default behavior of H2 is to delay writing committed transactions.
+</p>
+<p>
+In H2, after a power failure, a bit more than one second of committed transactions may be lost.
+To change the behavior, use <code>SET WRITE_DELAY</code> and
+<code>CHECKPOINT SYNC</code>.
+Most other databases support commit delay as well.
+In the performance comparison, commit delay was used for all databases that support it.
+</p>
+
+<h3>Running the Durability Test</h3>
+<p>
+To test the durability / non-durability of this and other databases, you can use the test application
+in the package <code>org.h2.test.poweroff</code>.
+Two computers with network connection are required to run this test.
+One computer just listens, while the test application is run (and power is cut) on the other computer.
+The computer with the listener application opens a TCP/IP port and listens for an incoming connection.
+The second computer first connects to the listener, and then created the databases and starts inserting
+records. The connection is set to 'autocommit', which means after each inserted record a commit is performed
+automatically. Afterwards, the test computer notifies the listener that this record was inserted successfully.
+The listener computer displays the last inserted record number every 10 seconds. Now, switch off the power
+manually, then restart the computer, and run the application again. You will find out that in most cases,
+none of the databases contains all the records that the listener computer knows about. For details, please
+consult the source code of the listener and test application.
+</p>
+
+<h2 id="using_recover_tool">Using the Recover Tool</h2>
+<p>
+The <code>Recover</code> tool can be used to extract the contents of a database file, even if the database is corrupted.
+It also extracts the content of the transaction log and large objects (CLOB or BLOB).
+To run the tool, type on the command line:
+</p>
+<pre>
+java -cp h2*.jar org.h2.tools.Recover
+</pre>
+<p>
+For each database in the current directory, a text file will be created.
+This file contains raw insert statements (for the data) and data definition (DDL) statements to recreate
+the schema of the database. This file can be executed using the <code>RunScript</code> tool or a
+<code>RUNSCRIPT FROM</code> SQL statement. The script includes at least one
+<code>CREATE USER</code> statement. If you run the script against a database that was created with the same
+user, or if there are conflicting users, running the script will fail. Consider running the script
+against a database that was created with a user name that is not in the script.
+</p>
+<p>
+The <code>Recover</code> tool creates a SQL script from database file. It also processes the transaction log.
+</p>
+<p>
+To verify the database can recover at any time, append <code>;RECOVER_TEST=64</code>
+to the database URL in your test environment. This will simulate an application crash after each 64 writes to the database file.
+A log file named <code>databaseName.h2.db.log</code> is created that lists the operations.
+The recovery is tested using an in-memory file system, that means it may require a larger heap setting.
+</p>
+
+<h2 id="file_locking_protocols">File Locking Protocols</h2>
+<p>
+Multiple concurrent connections to the same database are supported, however a database file
+can only be open for reading and writing (in embedded mode) by one process at the same time.
+Otherwise, the processes would overwrite each others data and corrupt the database file.
+To protect against this problem, whenever a database is opened, a lock file is created
+to signal other processes that the database is in use. If the database is closed, or if the process that opened
+the database stops normally, this lock file is deleted.
+</p><p>
+In special cases (if the process did not terminate normally, for example because
+there was a power failure), the lock file is not deleted by the process that created it.
+That means the existence of the lock file is not a safe protocol for file locking.
+However, this software uses a challenge-response protocol to protect the database
+files. There are two methods (algorithms) implemented to provide both security
+(that is, the same database files cannot be opened by two processes at the same time)
+and simplicity (that is, the lock file does not need to be deleted manually by the user).
+The two methods are 'file method' and 'socket methods'.
+</p>
+<p>
+The file locking protocols (except the file locking method 'FS')
+have the following limitation: if a shared file system is used,
+and the machine with the lock owner is sent to sleep (standby or hibernate),
+another machine may take over. If the machine that originally held the lock
+wakes up, the database may become corrupt. If this situation can occur,
+the application must ensure the database is closed when the application
+is put to sleep.
+</p>
+
+<h3>File Locking Method 'File'</h3>
+<p>
+The default method for database file locking for version 1.3 and older is the 'File Method'.
+The algorithm is:
+</p>
+<ul>
+<li>If the lock file does not exist, it is created (using the atomic operation
+<code>File.createNewFile</code>).
+Then, the process waits a little bit (20 ms) and checks the file again. If the file was changed
+during this time, the operation is aborted. This protects against a race condition
+when one process deletes the lock file just after another one create it, and a third process creates
+the file again. It does not occur if there are only two writers.
+</li><li>
+If the file can be created, a random number is inserted together with the locking method
+('file'). Afterwards, a watchdog thread is started that
+checks regularly (every second once by default) if the file was deleted or modified by
+another (challenger) thread / process. Whenever that occurs, the file is overwritten with the
+old data. The watchdog thread runs with high priority so that a change to the lock file does
+not get through undetected even if the system is very busy. However, the watchdog thread
+does use very little resources (CPU time), because it waits most of the time. Also, the watchdog only reads from the hard disk
+and does not write to it.
+</li><li>
+If the lock file exists and was recently modified, the process waits for some time (up to two seconds).
+If it was still changed, an exception is thrown (database is locked). This is done to eliminate race conditions with many concurrent
+writers. Afterwards, the file is overwritten with a new version (challenge).
+After that, the thread waits for 2 seconds.
+If there is a watchdog thread protecting the file, he will overwrite the change
+and this process will fail to lock the database.
+However, if there is no watchdog thread, the lock file will still be as written by
+this thread. In this case, the file is deleted and atomically created again.
+The watchdog thread is started in this case and the file is locked.
+</li></ul>
+<p>
+This algorithm is tested with over 100 concurrent threads. In some cases, when there are
+many concurrent threads trying to lock the database, they block each other (meaning
+the file cannot be locked by any of them) for some time. However, the file never gets
+locked by two threads at the same time. However using that many concurrent threads
+/ processes is not the common use case. Generally, an application should throw an error
+to the user if it cannot open a database, and not try again in a (fast) loop.
+</p>
+
+<h3>File Locking Method 'Socket'</h3>
+<p>
+There is a second locking mechanism implemented, but disabled by default.
+To use it, append <code>;FILE_LOCK=SOCKET</code> to the database URL.
+The algorithm is:
+</p>
+<ul>
+<li>If the lock file does not exist, it is created.
+Then a server socket is opened on a defined port, and kept open.
+The port and IP address of the process that opened the database is written
+into the lock file.
+</li><li>If the lock file exists, and the lock method is 'file', then the software switches
+to the 'file' method.
+</li><li>If the lock file exists, and the lock method is 'socket', then the process
+checks if the port is in use. If the original process is still running, the port is in use
+and this process throws an exception (database is in use). If the original process
+died (for example due to a power failure, or abnormal termination of the virtual machine),
+then the port was released. The new process deletes the lock file and starts again.
+</li></ul>
+<p>
+This method does not require a watchdog thread actively polling (reading) the same
+file every second. The problem with this method is, if the file is stored on a network
+share, two processes (running on different computers) could still open the same
+database files, if they do not have a direct TCP/IP connection.
+</p>
+
+<h3>File Locking Method 'FS'</h3>
+<p>
+This is the default mode for version 1.4 and newer.
+This database file locking mechanism uses native file system lock on the database file.
+No *.lock.db file is created in this case, and no background thread is started.
+This mechanism may not work on all systems as expected.
+Some systems allow to lock the same file multiple times within the same virtual machine,
+and on some system native file locking is not supported or files are not unlocked after a power failure.
+</p>
+<p>
+To enable this feature, append <code>;FILE_LOCK=FS</code> to the database URL.
+</p>
+<p>
+This feature is relatively new. When using it for production, please ensure
+your system does in fact lock files as expected.
+</p>
+
+<h2 id="passwords">Using Passwords</h2>
+
+<h3>Using Secure Passwords</h3>
+<p>
+Remember that weak passwords can be broken regardless of the encryption and security protocols.
+Don't use passwords that can be found in a dictionary. Appending numbers does not make passwords
+secure. A way to create good passwords that can be remembered is: take the first
+letters of a sentence, use upper and lower case characters, and creatively include special characters
+(but it's more important to use a long password than to use special characters).
+Example:
+</p><p>
+<code>i'sE2rtPiUKtT</code> from the sentence <code>it's easy to remember this password if you know the trick</code>.
+</p>
+
+<h3>Passwords: Using Char Arrays instead of Strings</h3>
+<p>
+Java strings are immutable objects and cannot be safely 'destroyed' by the application.
+After creating a string, it will remain in the main memory of the computer at least
+until it is garbage collected. The garbage collection cannot be controlled by the application,
+and even if it is garbage collected the data may still remain in memory.
+It might also be possible that the part of memory containing the password
+is swapped to disk (if not enough main memory is available), which is
+a problem if the attacker has access to the swap file of the operating system.
+</p><p>
+It is a good idea to use char arrays instead of strings for passwords.
+Char arrays can be cleared (filled with zeros) after use, and therefore the
+password will not be stored in the swap file.
+</p><p>
+This database supports using char arrays instead of string to pass user and file passwords.
+The following code can be used to do that:
+</p>
+<pre>
+import java.sql.*;
+import java.util.*;
+public class Test {
+    public static void main(String[] args) throws Exception {
+        String url = "jdbc:h2:~/test";
+        Properties prop = new Properties();
+        prop.setProperty("user", "sa");
+        System.out.print("Password?");
+        char[] password = System.console().readPassword();
+        prop.put("password", password);
+        Connection conn = null;
+        try {
+            conn = DriverManager.getConnection(url, prop);
+        } finally {
+            Arrays.fill(password, (char) 0);
+        }
+        conn.close();
+    }
+}
+</pre>
+<p>
+When using Swing, use <code>javax.swing.JPasswordField</code>.
+</p>
+
+<h3>Passing the User Name and/or Password in the URL</h3>
+<p>
+Instead of passing the user name as a separate parameter as in
+<code>
+Connection conn = DriverManager.
+    getConnection("jdbc:h2:~/test", "sa", "123");
+</code>
+the user name (and/or password) can be supplied in the URL itself:
+<code>
+Connection conn = DriverManager.
+    getConnection("jdbc:h2:~/test;USER=sa;PASSWORD=123");
+</code>
+The settings in the URL override the settings passed as a separate parameter.
+</p>
+
+<h2 id="password_hash">Password Hash</h2>
+<p>
+Sometimes the database password needs to be stored in a configuration file
+(for example in the <code>web.xml</code> file).
+In addition to connecting with the plain text password,
+this database supports connecting with the password hash.
+This means that only the hash of the password (and not the plain text password)
+needs to be stored in the configuration file.
+This will only protect others from reading or re-constructing the plain text password
+(even if they have access to the configuration file);
+it does not protect others from accessing the database using the password hash.
+</p>
+<p>
+To connect using the password hash instead of plain text password, append
+<code>;PASSWORD_HASH=TRUE</code> to the database URL, and replace
+the password with the password hash. To calculate the password hash from a plain text password,
+run the following command within the H2 Console tool:
+<code>@password_hash &lt;upperCaseUserName&gt; &lt;password&gt;</code>.
+As an example, if the user name is <code>sa</code> and the password is
+<code>test</code>, run the command
+<code>@password_hash SA test</code>.
+Then use the resulting password hash as you would use the plain text password.
+When using an encrypted database, then the user password and file password
+need to be hashed separately. To calculate the hash of the file password, run:
+<code>@password_hash file &lt;filePassword&gt;</code>.
+</p>
+
+<h2 id="sql_injection">Protection against SQL Injection</h2>
+<h3>What is SQL Injection</h3>
+<p>
+This database engine provides a solution for the security vulnerability known as 'SQL Injection'.
+Here is a short description of what SQL injection means.
+Some applications build SQL statements with embedded user input such as:
+</p>
+<pre>
+String sql = "SELECT * FROM USERS WHERE PASSWORD='"+pwd+"'";
+ResultSet rs = conn.createStatement().executeQuery(sql);
+</pre>
+<p>
+If this mechanism is used anywhere in the application, and user input is not correctly filtered or encoded,
+it is possible for a user to inject SQL functionality or statements by using specially built input
+such as (in this example) this password: <code>' OR ''='</code>.
+In this case the statement becomes:
+</p>
+<pre>
+SELECT * FROM USERS WHERE PASSWORD='' OR ''='';
+</pre>
+<p>
+Which is always true no matter what the password stored in the database is.
+For more information about SQL Injection, see <a href="#glossary_links">Glossary and Links</a>.
+</p>
+
+<h3>Disabling Literals</h3>
+<p>
+SQL Injection is not possible if user input is not directly embedded in SQL statements.
+A simple solution for the problem above is to use a prepared statement:
+</p>
+<pre>
+String sql = "SELECT * FROM USERS WHERE PASSWORD=?";
+PreparedStatement prep = conn.prepareStatement(sql);
+prep.setString(1, pwd);
+ResultSet rs = prep.executeQuery();
+</pre>
+<p>
+This database provides a way to enforce usage of parameters when passing user input
+to the database. This is done by disabling embedded literals in SQL statements.
+To do this, execute the statement:
+</p>
+<pre>
+SET ALLOW_LITERALS NONE;
+</pre>
+<p>
+Afterwards, SQL statements with text and number literals are not allowed any more.
+That means, SQL statement of the form <code>WHERE NAME='abc'</code>
+or <code>WHERE CustomerId=10</code> will fail.
+It is still possible to use prepared statements and parameters as described above. Also, it is still possible to generate
+SQL statements dynamically, and use the Statement API, as long as the SQL statements
+do not include literals.
+There is also a second mode where number literals are allowed:
+<code>SET ALLOW_LITERALS NUMBERS</code>.
+To allow all literals, execute <code>SET ALLOW_LITERALS ALL</code>
+(this is the default setting). Literals can only be enabled or disabled by an administrator.
+</p>
+
+<h3>Using Constants</h3>
+<p>
+Disabling literals also means disabling hard-coded 'constant' literals. This database supports
+defining constants using the <code>CREATE CONSTANT</code> command.
+Constants can be defined only
+when literals are enabled, but used even when literals are disabled. To avoid name clashes
+with column names, constants can be defined in other schemas:
+</p>
+<pre>
+CREATE SCHEMA CONST AUTHORIZATION SA;
+CREATE CONSTANT CONST.ACTIVE VALUE 'Active';
+CREATE CONSTANT CONST.INACTIVE VALUE 'Inactive';
+SELECT * FROM USERS WHERE TYPE=CONST.ACTIVE;
+</pre>
+<p>
+Even when literals are enabled, it is better to use constants instead
+of hard-coded number or text literals in queries or views. With constants, typos are found at compile
+time, the source code is easier to understand and change.
+</p>
+
+<h3>Using the ZERO() Function</h3>
+<p>
+It is not required to create a constant for the number 0 as there is already a built-in function <code>ZERO()</code>:
+</p>
+<pre>
+SELECT * FROM USERS WHERE LENGTH(PASSWORD)=ZERO();
+</pre>
+
+<h2 id="remote_access">Protection against Remote Access</h2>
+<p>
+By default this database does not allow connections from other machines when starting the H2 Console,
+the TCP server, or the PG server. Remote access can be enabled using the command line
+options <code>-webAllowOthers, -tcpAllowOthers, -pgAllowOthers</code>.
+</p>
+<p>
+If you enable remote access using
+<code>-tcpAllowOthers</code> or <code>-pgAllowOthers</code>,
+please also consider using the options <code>-baseDir</code>,
+so that remote users can not create new databases
+or access existing databases with weak passwords.
+When using the option <code>-baseDir</code>, only databases within that directory may be accessed.
+Ensure the existing accessible databases are protected using strong passwords.
+</p>
+<p>
+If you enable remote access using <code>-webAllowOthers</code>,
+please ensure the web server can only be accessed from trusted networks.
+The options <code>-baseDir</code> don't protect
+access to the tools section, prevent remote shutdown of the web server,
+changes to the preferences, the saved connection settings,
+or access to other databases accessible from the system.
+</p>
+
+<h2 id="restricting_classes">Restricting Class Loading and Usage</h2>
+<p>
+By default there is no restriction on loading classes and executing Java code for admins.
+That means an admin may call system functions such as
+<code>System.setProperty</code> by executing:
+</p>
+<pre>
+CREATE ALIAS SET_PROPERTY FOR "java.lang.System.setProperty";
+CALL SET_PROPERTY('abc', '1');
+CREATE ALIAS GET_PROPERTY FOR "java.lang.System.getProperty";
+CALL GET_PROPERTY('abc');
+</pre>
+<p>
+To restrict users (including admins) from loading classes and executing code,
+the list of allowed classes can be set in the system property
+<code>h2.allowedClasses</code>
+in the form of a comma separated list of classes or patterns (items ending with <code>*</code>).
+By default all classes are allowed. Example:
+</p>
+<pre>
+java -Dh2.allowedClasses=java.lang.Math,com.acme.*
+</pre>
+<p>
+This mechanism is used for all user classes, including database event listeners,
+trigger classes, user-defined functions, user-defined aggregate functions, and JDBC
+driver classes (with the exception of the H2 driver) when using the H2 Console.
+</p>
+
+<h2 id="security_protocols">Security Protocols</h2>
+<p>
+The following paragraphs document the security protocols used in this database.
+These descriptions are very technical and only intended for security experts that already know
+the underlying security primitives.
+</p>
+
+<h3>User Password Encryption</h3>
+<p>
+When a user tries to connect to a database, the combination of
+user name, @, and password are hashed using SHA-256, and this hash value
+is transmitted to the database.
+This step does not protect against an attacker that re-uses the value if he is able to listen to the
+(unencrypted) transmission between the client and the server.
+But, the passwords are never transmitted as plain text,
+even when using an unencrypted connection between client and server.
+That means if a user reuses the same password for different things,
+this password is still protected up to some point. See also
+'RFC 2617 - HTTP Authentication: Basic and Digest Access Authentication'
+for more information.
+</p><p>
+When a new database or user is created, a new random salt value is generated.
+The size of the salt is 64 bits. Using the random salt reduces the risk of an
+attacker pre-calculating hash values for many different (commonly used) passwords.
+</p><p>
+The combination of user-password hash value (see above) and salt is hashed
+using SHA-256. The resulting value is stored in the database.
+When a user tries to connect to the database, the database combines
+user-password hash value with the stored salt value and calculates the
+hash value. Other products use multiple iterations (hash the hash value again and again),
+but this is not done in this product to reduce the risk of denial of service attacks
+(where the attacker tries to connect with bogus passwords, and the server
+spends a lot of time calculating the hash value for each password).
+The reasoning is: if the attacker has access to the hashed passwords, he also has
+access to the data in plain text, and therefore does not need the password any more.
+If the data is protected by storing it on another computer and only accessible remotely,
+then the iteration count is not required at all.
+</p>
+
+<h3>File Encryption</h3>
+<p>
+The database files can be encrypted using the AES-128 algorithm.
+</p><p>
+When a user tries to connect to an encrypted database, the combination of
+<code>file@</code> and the file password is hashed using SHA-256. This hash value is
+transmitted to the server.
+</p><p>
+When a new database file is created, a new cryptographically secure
+random salt value is generated. The size of the salt is 64 bits.
+The combination of the file password hash and the salt value is hashed 1024 times
+using SHA-256. The reason for the iteration is to make it harder for an attacker to
+calculate hash values for common passwords.
+</p><p>
+The resulting hash value is used as the key for the block cipher algorithm.
+Then, an initialization vector (IV) key
+is calculated by hashing the key again using SHA-256.
+This is to make sure the IV is unknown to the attacker.
+The reason for using a secret IV is to protect against watermark attacks.
+</p><p>
+Before saving a block of data (each block is 8 bytes long), the following operations are executed:
+first, the IV is calculated by encrypting the block number with the IV key (using the same
+block cipher algorithm). This IV is combined with the plain text using XOR. The resulting data is
+encrypted using the AES-128 algorithm.
+</p><p>
+When decrypting, the operation is done in reverse. First, the block is decrypted using the key,
+and then the IV is calculated combined with the decrypted text using XOR.
+</p><p>
+Therefore, the block cipher mode of operation is CBC (cipher-block chaining), but each chain
+is only one block long. The advantage over the ECB (electronic codebook) mode is that patterns
+in the data are not revealed, and the advantage over multi block CBC is that flipped cipher text bits
+are not propagated to flipped plaintext bits in the next block.
+</p><p>
+Database encryption is meant for securing the database while it is not in use (stolen laptop and so on).
+It is not meant for cases where the attacker has access to files while the database is in use.
+When he has write access, he can for example replace pieces of files with pieces of older versions
+and manipulate data like this.
+</p><p>
+File encryption slows down the performance of the database engine. Compared to unencrypted mode,
+database operations take about 2.5 times longer using AES (embedded mode).
+</p>
+
+<h3>Wrong Password / User Name Delay</h3>
+<p>
+To protect against remote brute force password attacks, the delay after each unsuccessful
+login gets double as long. Use the system properties <code>h2.delayWrongPasswordMin</code>
+and <code>h2.delayWrongPasswordMax</code> to change the minimum (the default is 250 milliseconds)
+or maximum delay (the default is 4000 milliseconds, or 4 seconds). The delay only
+applies for those using the wrong password. Normally there is no delay for a user that knows the correct
+password, with one exception: after using the wrong password, there is a delay of up to (randomly distributed)
+the same delay as for a wrong password. This is to protect against parallel brute force attacks,
+so that an attacker needs to wait for the whole delay. Delays are synchronized. This is also required
+to protect against parallel attacks.
+</p>
+<p>
+There is only one exception message for both wrong user and for wrong password,
+to make it harder to get the list of user names. It is not possible from the stack trace to see
+if the user name was wrong or the password.
+</p>
+
+<h3>HTTPS Connections</h3>
+<p>
+The web server supports HTTP and HTTPS connections using <code>SSLServerSocket</code>.
+There is a default self-certified certificate to support an easy starting point, but
+custom certificates are supported as well.
+</p>
+
+<h2 id="tls_connections">TLS Connections</h2>
+<p>
+Remote TLS connections are supported using the Java Secure Socket Extension
+(<code>SSLServerSocket, SSLSocket</code>). By default, anonymous TLS is enabled.
+</p>
+<p>
+To use your own keystore, set the system properties <code>javax.net.ssl.keyStore</code> and
+<code>javax.net.ssl.keyStorePassword</code> before starting the H2 server and client.
+See also <a href="https://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores">
+Customizing the Default Key and Trust Stores, Store Types, and Store Passwords</a>
+for more information.
+</p>
+<p>
+To disable anonymous TLS, set the system property <code>h2.enableAnonymousTLS</code> to false.
+</p>
+
+<h2 id="uuid">Universally Unique Identifiers (UUID)</h2>
+<p>
+This database supports UUIDs. Also supported is a function to create new UUIDs using
+a cryptographically strong pseudo random number generator.
+With random UUIDs, the chance of two having the same value can be calculated
+using the probability theory. See also 'Birthday Paradox'.
+Standardized randomly generated UUIDs have 122 random bits.
+4 bits are used for the version (Randomly generated UUID), and 2 bits for the variant (Leach-Salz).
+This database supports generating such UUIDs using the built-in function
+<code>RANDOM_UUID()</code> or <code>UUID()</code>.
+Here is a small program to estimate the probability of having two identical UUIDs
+after generating a number of values:
+</p>
+<pre>
+public class Test {
+    public static void main(String[] args) throws Exception {
+        double x = Math.pow(2, 122);
+        for (int i = 35; i &lt; 62; i++) {
+            double n = Math.pow(2, i);
+            double p = 1 - Math.exp(-(n * n) / 2 / x);
+            System.out.println("2^" + i + "=" + (1L &lt;&lt; i) +
+                    " probability: 0" +
+                    String.valueOf(1 + p).substring(1));
+        }
+    }
+}
+</pre>
+<p>
+Some values are:
+</p>
+<table class="main">
+<tr><th>Number of UUIs</th><th>Probability of Duplicates</th></tr>
+<tr><td>2^36=68'719'476'736</td><td>0.000'000'000'000'000'4</td></tr>
+<tr><td>2^41=2'199'023'255'552</td><td>0.000'000'000'000'4</td></tr>
+<tr><td>2^46=70'368'744'177'664</td><td>0.000'000'000'4</td></tr>
+</table>
+<p>
+To help non-mathematicians understand what those numbers mean, here a comparison:
+one's annual risk of being hit by a meteorite is estimated to be one chance in 17 billion,
+that means the probability is about 0.000'000'000'06.
+</p>
+
+<h2 id="spatial_features">Spatial Features</h2>
+<p>
+H2 supports the geometry data type and spatial indexes.
+Here is an example SQL script to create a table with a spatial column and index:
+</p>
+<pre>
+CREATE TABLE GEO_TABLE(GID SERIAL, THE_GEOM GEOMETRY);
+INSERT INTO GEO_TABLE(THE_GEOM) VALUES
+    ('POINT(500 505)'),
+    ('LINESTRING(550 551, 525 512, 565 566)'),
+    ('POLYGON ((550 521, 580 540, 570 564, 512 566, 550 521))');
+CREATE SPATIAL INDEX GEO_TABLE_SPATIAL_INDEX
+    ON GEO_TABLE(THE_GEOM);
+</pre>
+<p>
+To query the table using geometry envelope intersection,
+use the operation <code>&amp;&amp;</code>, as in PostGIS:
+</p>
+<pre>
+SELECT * FROM GEO_TABLE
+    WHERE THE_GEOM &amp;&amp;
+    'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
+</pre>
+<p>
+You can verify that the spatial index is used using the "explain plan" feature:
+</p>
+<pre>
+EXPLAIN SELECT * FROM GEO_TABLE
+    WHERE THE_GEOM &amp;&amp;
+    'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
+-- Result
+SELECT
+    "GEO_TABLE"."GID",
+    "GEO_TABLE"."THE_GEOM"
+FROM "PUBLIC"."GEO_TABLE"
+    /* PUBLIC.GEO_TABLE_SPATIAL_INDEX:
+    THE_GEOM &amp;&amp;
+    'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))'::Geometry */
+WHERE INTERSECTS("THE_GEOM",
+    'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))'::Geometry)
+</pre>
+<p>
+For persistent databases, the spatial index is stored on disk;
+for in-memory databases, the index is kept in memory.
+</p>
+
+<h2 id="recursive_queries">Recursive Queries</h2>
+<p>
+H2 has experimental support for recursive queries using so called "common table expressions" (CTE).
+Examples:
+</p>
+<pre>
+WITH RECURSIVE T(N) AS (
+    SELECT 1
+    UNION ALL
+    SELECT N+1 FROM T WHERE N&lt;10
+)
+SELECT * FROM T;
+-- returns the values 1 .. 10
+
+WITH RECURSIVE T(N) AS (
+    SELECT 1
+    UNION ALL
+    SELECT N*2 FROM T WHERE N&lt;10
+)
+SELECT * FROM T;
+-- returns the values 1, 2, 4, 8, 16
+
+CREATE TABLE FOLDER(ID INT PRIMARY KEY, NAME VARCHAR(255), PARENT INT);
+
+INSERT INTO FOLDER VALUES(1, null, null), (2, 'src', 1),
+(3, 'main', 2), (4, 'org', 3), (5, 'test', 2);
+
+WITH LINK(ID, NAME, LEVEL) AS (
+    SELECT ID, NAME, 0 FROM FOLDER WHERE PARENT IS NULL
+    UNION ALL
+    SELECT FOLDER.ID, IFNULL(LINK.NAME || '/', '') || FOLDER.NAME, LEVEL + 1
+    FROM LINK INNER JOIN FOLDER ON LINK.ID = FOLDER.PARENT
+)
+SELECT NAME FROM LINK WHERE NAME IS NOT NULL ORDER BY ID;
+-- src
+-- src/main
+-- src/main/org
+-- src/test
+</pre>
+<p>
+Limitations: Recursive queries need to be of the type <code>UNION ALL</code>,
+and the recursion needs to be on the second part of the query.
+No tables or views with the name of the table expression may exist.
+Different table expression names need to be used when using multiple distinct table
+expressions within the same transaction and for the same session.
+All columns of the table expression are of type <code>VARCHAR</code>,
+and may need to be cast to the required data type.
+Views with recursive queries are not supported.
+Subqueries and <code>INSERT INTO ... FROM</code> with recursive queries are not supported.
+Parameters are only supported within the last <code>SELECT</code> statement
+(a workaround is to use session variables like <code>@start</code>
+within the table expression).
+The syntax is:
+</p>
+<pre>
+WITH RECURSIVE recursiveQueryName(columnName, ...) AS (
+    nonRecursiveSelect
+    UNION ALL
+    recursiveSelect
+)
+select
+</pre>
+
+<h2 id="system_properties">Settings Read from System Properties</h2>
+<p>
+Some settings of the database can be set on the command line using
+<code>-DpropertyName=value</code>. It is usually not required to change those settings manually.
+The settings are case sensitive.
+Example:
+</p>
+<pre>
+java -Dh2.serverCachedObjects=256 org.h2.tools.Server
+</pre>
+<p>
+The current value of the settings can be read in the table
+<code>INFORMATION_SCHEMA.SETTINGS</code>.
+</p>
+<p>
+For a complete list of settings, see
+<a href="http://www.h2database.com/javadoc/org/h2/engine/SysProperties.html">SysProperties</a>.
+</p>
+
+<h2 id="server_bind_address">Setting the Server Bind Address</h2>
+<p>
+Usually server sockets accept connections on any/all local addresses.
+This may be a problem on multi-homed hosts.
+To bind only to one address, use the system property <code>h2.bindAddress</code>.
+This setting is used for both regular server sockets and for TLS server sockets.
+IPv4 and IPv6 address formats are supported.
+</p>
+
+<h2 id="file_system">Pluggable File System</h2>
+<p>
+This database supports a pluggable file system API.
+The file system implementation is selected using a file name prefix.
+Internally, the interfaces are very similar to the Java 7 NIO2 API, but do not (yet) use or require Java 7.
+The following file systems are included:
+</p>
+<ul><li><code>zip:</code>  read-only zip-file based file system. Format: <code>zip:/zipFileName!/fileName</code>.
+</li><li><code>split:</code> file system that splits files in 1 GB files (stackable with other file systems).
+</li><li><code>nio:</code> file system that uses <code>FileChannel</code> instead of <code>RandomAccessFile</code> (faster in some operating systems).
+</li><li><code>nioMapped:</code> file system that uses memory mapped files (faster in some operating systems).
+    Please note that there currently is a file size limitation of 2 GB when using this file system.
+    To work around this limitation, combine it with the split file system: <code>split:nioMapped:test</code>.
+</li><li><code>async:</code> experimental file system that uses <code>AsynchronousFileChannel</code> instead of <code>RandomAccessFile</code> (faster in some operating systems).
+</li><li><code>memFS:</code> in-memory file system (slower than mem; experimental; mainly used for testing the database engine itself).
+</li><li><code>memLZF:</code> compressing in-memory file system (slower than memFS but uses less memory; experimental; mainly used for testing the database engine itself).
+</li><li><code>nioMemFS:</code> stores data outside of the VM's heap - useful for large memory DBs without incurring GC costs.
+</li>
+<li>
+    <code>nioMemLZF:</code> stores compressed data outside of the VM's heap -
+    useful for large memory DBs without incurring GC costs.
+    Use "nioMemLZF:12:" to tweak the % of blocks that are stored uncompressed.
+    If you size this to your working set correctly,
+    compressed storage is roughly the same performance as uncompressed.
+    The default value is 1%.
+</li></ul>
+<p>
+As an example, to use the <code>nio</code> file system with PageStore storage engine,
+use the following database URL: <code>jdbc:h2:nio:~/test;MV_STORE=FALSE</code>.
+With MVStore storage engine nio file system is used by default.
+</p>
+<p>
+To register a new file system, extend the classes <code>org.h2.store.fs.FilePath, FileBase</code>,
+and call the method <code>FilePath.register</code> before using it.
+</p>
+<p>
+For input streams (but not for random access files), URLs may be used in addition to the registered file systems.
+Example: <code>jar:file:///c:/temp/example.zip!/org/example/nested.csv</code>.
+To read a stream from the classpath, use the prefix <code>classpath:</code>, as in
+<code>classpath:/org/h2/samples/newsfeed.sql</code>.
+</p>
+
+<h2 id="file_system_split">Split File System</h2>
+<p>
+The file system prefix <code>split:</code> is used to split logical files into multiple physical files,
+for example so that a database can get larger than the maximum file system size of the operating system.
+If the logical file is larger than the maximum file size, then the file is split as follows:
+</p>
+<ul><li><code>&lt;fileName&gt;</code> (first block, is always created)
+</li><li><code>&lt;fileName&gt;.1.part</code> (second block)
+</li></ul>
+<p>
+More physical files (<code>*.2.part, *.3.part</code>) are automatically created / deleted if needed.
+The maximum physical file size of a block is 2^30 bytes, which is also called 1 GiB or 1 GB.
+However this can be changed if required, by specifying the block size in the file name.
+The file name format is: <code>split:&lt;x&gt;:&lt;fileName&gt;</code> where the file size per block is 2^x.
+For 1 MiB block sizes, use x = 20 (because 2^20 is 1 MiB).
+The following file name means the logical file is split into 1 MiB blocks: <code>split:20:test.h2.db</code>.
+An example database URL for this case is <code>jdbc:h2:split:20:~/test</code>.
+</p>
+
+<h2 id="database_upgrade">Database Upgrade</h2>
+<p>
+In version 1.2, H2 introduced a new file store implementation which is incompatible to the one used in versions &lt; 1.2.
+To automatically convert databases to the new file store, it is necessary to include an additional jar file.
+The file can be found at <a href="http://h2database.com/h2mig_pagestore_addon.jar">http://h2database.com/h2mig_pagestore_addon.jar</a> .
+If this file is in the classpath, every connect to an older database will result in a conversion process.
+</p>
+<p>
+The conversion itself is done internally via <code>'script to'</code> and <code>'runscript from'</code>. After the conversion process, the files will be
+renamed from
... 422167 lines suppressed ...