Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a426100a
提交
a426100a
authored
1月 04, 2013
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
9eb213a0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
16 行删除
+21
-16
features.html
h2/src/docsrc/html/features.html
+2
-0
mvstore.html
h2/src/docsrc/html/mvstore.html
+18
-15
tutorial.html
h2/src/docsrc/html/tutorial.html
+1
-1
没有找到文件。
h2/src/docsrc/html/features.html
浏览文件 @
a426100a
...
@@ -695,6 +695,8 @@ protect the database file. The watchdog reads the lock file each second.
...
@@ -695,6 +695,8 @@ protect the database file. The watchdog reads the lock file each second.
The socket method does not require reading the lock file every second.
The socket method does not require reading the lock file every second.
The socket method should only be used if the database files
The socket method should only be used if the database files
are only accessed by one (and always the same) computer.
are only accessed by one (and always the same) computer.
</li><li>
The third method is
<code>
FS
</code>
.
This will use native file locking using
<code>
FileChannel.lock
</code>
.
</li><li>
It is also possible to open the database without file locking;
</li><li>
It is also possible to open the database without file locking;
in this case it is up to the application to protect the database files.
in this case it is up to the application to protect the database files.
Failing to do so will result in a corrupted database.
Failing to do so will result in a corrupted database.
...
...
h2/src/docsrc/html/mvstore.html
浏览文件 @
a426100a
...
@@ -339,21 +339,22 @@ MVStore s = new MVStore.Builder().
...
@@ -339,21 +339,22 @@ MVStore s = new MVStore.Builder().
</pre>
</pre>
<p>
<p>
</p><p>
</p><p>
Only state of the art disk encryption algorithm
s are used:
The following algorithms and setting
s are used:
</p>
</p>
<ul><li>
The password char array is cleared after use,
<ul><li>
The password char array is cleared after use,
to reduce the risk that the password is stolen
to reduce the risk that the password is stolen
even if the attacker has access to the main memory.
even if the attacker has access to the main memory.
</li><li>
The password is hashed according to the PBKDF2 standard,
</li><li>
The password is hashed according to the PBKDF2 standard,
using the SHA-256 hash algorithm.
using the SHA-256 hash algorithm.
</li><li>
The length of the salt is
256 bits,
</li><li>
The length of the salt is
64 bits,
so that an attacker can not use a pre-calculated password hash table (rainbow table).
so that an attacker can not use a pre-calculated password hash table (rainbow table).
</li><li>
The salt is generated using a cryptographically secure random number generator.
It is generated using a cryptographically secure random number generator.
</li><li>
To protect against brute-force password cracking attacks,
</li><li>
To speed up opening an encrypted stores on Android,
the number of PBKDF2 iterations is 10000.
the number of PBKDF2 iterations is 10.
</li><li>
For fastest possible read and write operations,
The higher the value, the better the protection against brute-force password cracking attacks,
the file itself is encrypted using the standardized disk encryption mode XTS-AES.
but the slower is opening a file.
This means only little more than one AES-128 round per block is needed.
</li><li>
The file itself is encrypted using the standardized disk encryption mode XTS-AES.
Only little more than one AES-128 round per block is needed.
</li></ul>
</li></ul>
<h3>
Tools
</h3>
<h3>
Tools
</h3>
...
@@ -379,15 +380,18 @@ The following exceptions can occur:
...
@@ -379,15 +380,18 @@ The following exceptions can occur:
<h2
id=
"differences"
>
Similar Projects and Differences to Other Storage Engines
</h2>
<h2
id=
"differences"
>
Similar Projects and Differences to Other Storage Engines
</h2>
<p>
<p>
Unlike similar storage engines like LevelDB and Kyoto Cabinet, the MVStore is written in Java
Unlike similar storage engines like LevelDB and Kyoto Cabinet,
and can easily be embedded in a Java application.
the MVStore is written in Java
and can easily be embedded in a Java and Android application.
</p><p>
</p><p>
The MVStore is somewhat similar to the Berkeley DB Java Edition because it is also written in Java,
The MVStore is somewhat similar to the Berkeley DB Java Edition
because it is also written in Java,
and is also a log structured storage, but the H2 license is more liberal.
and is also a log structured storage, but the H2 license is more liberal.
</p><p>
</p><p>
Like SQLite, the MVStore keeps all data in one file.
Like SQLite, the MVStore keeps all data in one file.
The plan is to make the MVStore easier to use than SQLite and faster, including faster on Android
Unlike SQLite, the MVStore uses is a log structured storage.
(this was not recently tested, however an initial test was successful).
The plan is to make the MVStore both easier to use as well as faster than SQLite.
In a recent (very simple) test, the MVStore was about twice as fast as SQLite on Android.
</p><p>
</p><p>
The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek,
The API of the MVStore is similar to MapDB (previously known as JDBM) from Jan Kotek,
and some code is shared between MapDB and JDBM.
and some code is shared between MapDB and JDBM.
...
@@ -407,8 +411,7 @@ Features may be added and removed (even thought the main features will stay).
...
@@ -407,8 +411,7 @@ Features may be added and removed (even thought the main features will stay).
The MVStore is included in the latest H2 jar file.
The MVStore is included in the latest H2 jar file.
</p><p>
</p><p>
There are no special requirements to use it.
There are no special requirements to use it.
The MVStore should run on any JVM as well as on Android
The MVStore should run on any JVM as well as on Android.
(even thought this was not tested recently).
</p>
</p>
<!-- [close] { -->
</div></td></tr></table>
<!-- } --><!-- analytics -->
</body></html>
<!-- [close] { -->
</div></td></tr></table>
<!-- } --><!-- analytics -->
</body></html>
h2/src/docsrc/html/tutorial.html
浏览文件 @
a426100a
...
@@ -838,7 +838,7 @@ Reasons to use H2 instead of SQLite are:
...
@@ -838,7 +838,7 @@ Reasons to use H2 instead of SQLite are:
</li><li>
Multiple connections.
</li><li>
Multiple connections.
</li><li>
User defined functions and triggers.
</li><li>
User defined functions and triggers.
</li><li>
Database file encryption.
</li><li>
Database file encryption.
</li><li>
Reading and writing CSV files (this feature can be used out
side the database as well).
</li><li>
Reading and writing CSV files (this feature can be used outside the database as well).
</li><li>
Referential integrity and check constraints.
</li><li>
Referential integrity and check constraints.
</li><li>
Better data type and SQL support.
</li><li>
Better data type and SQL support.
</li><li>
In-memory databases, read-only databases, linked tables.
</li><li>
In-memory databases, read-only databases, linked tables.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论