H2 Database サーバ
java のコマンドで簡単に起動できる。起動オプションが多数用意されている。
Version 1.0.61 (2007-11-10)の起動オプション:
$ java -cp bin/h2.jar org.h2.tools.Server -? java org.h2.tools.Server [options] By default, -tcp, -web, -browser and -pg are started -tcp (start the TCP Server) -tcpPort(default: 9092) -tcpSSL [true|false] -tcpAllowOthers [true|false] -tcpPassword {password} (the password for shutting down a TCP Server) -tcpShutdown {url} (shutdown the TCP Server, URL example: tcp://localhost:9094) -tcpShutdownForce [true|false] (don't wait for other connections to close) -web (start the Web Server) -webPort (default: 8082) -webSSL [true|false} -webAllowOthers [true|false} -browser (start a browser) -pg (start the PG Server) -pgPort (default: 5435) -pgAllowOthers [true|false] -ftp (start the FTP Server) -ftpPort (default: 8021) -ftpDir (default: ftp, use jdbc:... to access a database) -ftpRead (default: guest) -ftpWrite (default: sa) -ftpWritePassword (default: sa) -log [true|false] -baseDir (sets the base directory for H2 databases) -ifExists [true|false] (only existing databases may be opened)
"-pg" オプションを使うと、PostgreSQL互換のプロトコルで通信できるので
不完全ながら psql コマンドで操作ができる。慣れたツールが使えるので便利。