コンテンツにスキップ

「H2」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
新規作成(英語版より転載)
 
訳出
1行目: 1行目:
[[Category:関係データベース管理システム]]
[[Category:関係データベース管理システム]]
From the [https://www.h2database.com/ project home page]:
[https://www.h2database.com/ プロジェクトのホームページ]から:
H2 は Java ベースの小さなリレーショナルデータベースであり、次の機能を備えています:
H2 is a small Java based relation database, featuring:
* Very fast, open source, JDBC API
* 非常に高速なオープンソースの JDBC API
* 組み込みモードとサーバーモード。インメモリデータベース
* Embedded and server modes; in-memory databases
* ブラウザベースのコンソールアプリケーション
* Browser based Console application
* 小さなフットプリント: 約 2 MB の jar ファイルサイズ
* Small footprint: around 2 MB jar file size


== Installation ==
== インストール ==


{{AUR|h2}} パッケージを[[インストール]]します。
[[Install]] the {{AUR|h2}} package.


== Web Console / DB Management ==
== Web コンソール / DB 管理 ==

これにより 8082 番ポートで Web ベースのインターフェイスが起動します。


This will launch a web based interface on port 8082.
$ h2-console
$ h2-console


== TCP / PG Server ==
== TCP / PG Server ==


これにより 8082 番ポートで Webベースのインターフェイス、9092 番ポートで TCP サーバ、5435 番ポートで PGサーバ(PostgreSQLプロトコルに従うサーバ)が起動します。
This will launch a web based interface on port 8082, TCP server on port 9092, and PG server (a server that follows the PostgreSQL protocol) on port 5435

$ java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server
$ java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server


One can connect using a JDBC url such as {{ic|jdbc:h2:tcp://192.168.103.128:9092/~/test}}
次のような JDBC url を使用して接続できます {{ic|jdbc:h2:tcp://192.168.103.128:9092/~/test}}


'''Note:''' the {{ic|-ifNotExists}} flag can be used to generate an empty database
'''Note:''' {{ic|-ifNotExists}} フラグを使用して空のデータベースを生成できます

2021年7月29日 (木) 16:35時点における版

プロジェクトのホームページから: H2 は Java ベースの小さなリレーショナルデータベースであり、次の機能を備えています:

  • 非常に高速なオープンソースの JDBC API
  • 組み込みモードとサーバーモード。インメモリデータベース
  • ブラウザベースのコンソールアプリケーション
  • 小さなフットプリント: 約 2 MB の jar ファイルサイズ

インストール

h2AUR パッケージをインストールします。

Web コンソール / DB 管理

これにより 8082 番ポートで Web ベースのインターフェイスが起動します。

$ h2-console

TCP / PG Server

これにより 8082 番ポートで Webベースのインターフェイス、9092 番ポートで TCP サーバ、5435 番ポートで PGサーバ(PostgreSQLプロトコルに従うサーバ)が起動します。

$ java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server

次のような JDBC url を使用して接続できます jdbc:h2:tcp://192.168.103.128:9092/~/test

Note: -ifNotExists フラグを使用して空のデータベースを生成できます