H2数据库源代码学习研究(包括代码注释、文档、用于代码分析的测试用例)
-
my-docs: 综合文档
-
my-test: 用于代码分析的测试用例
-
h2: H2数据库的最新源代码,在源代码中附加了便于分析理解代码的注释
- 打开Eclipse,选择File -> Import -> Existing Projects into Workspace
-
右击h2/test/my/test/MyServer.java文件,点Run As或Debug As -> Java Application
-
如果出现"TCP server running ..."这样的提示就ok啦
- my.test包中的类几乎都可直接运行
- Very fast, open source, JDBC API
- Embedded and server modes; in-memory databases
- Browser based Console application
- Small footprint: around 1.5 MB jar file size
More information: http://h2database.com
H2 | Derby | HSQLDB | MySQL | PostgreSQL | |
---|---|---|---|---|---|
Pure Java | Yes | Yes | Yes | No | No |
Memory Mode | Yes | Yes | Yes | No | No |
Encrypted Database | Yes | Yes | Yes | No | No |
ODBC Driver | Yes | No | No | Yes | Yes |
Fulltext Search | Yes | No | No | Yes | Yes |
Multi Version Concurrency | Yes | No | Yes | Yes | Yes |
Footprint (jar/dll size) | ~1 MB | ~2 MB | ~1 MB | ~4 MB | ~6 MB |