Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
32fe58b7
提交
32fe58b7
authored
3月 30, 2011
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
42e2ac30
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
32 行增加
和
4 行删除
+32
-4
advanced.html
h2/src/docsrc/html/advanced.html
+18
-0
changelog.html
h2/src/docsrc/html/changelog.html
+9
-1
roadmap.html
h2/src/docsrc/html/roadmap.html
+1
-1
tutorial.html
h2/src/docsrc/html/tutorial.html
+4
-2
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
32fe58b7
...
...
@@ -24,6 +24,8 @@ Advanced
Linked Tables
</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"
>
...
...
@@ -174,6 +176,22 @@ The statement <a href="grammar.html#create_linked_table" class="notranslate" >CR
supports an optional schema name parameter.
</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>
Transaction isolation is provided for all data manipulation language (DML) statements.
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
32fe58b7
...
...
@@ -18,7 +18,15 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
Reading a resource from the classpath didn't work if there was a leading slash
<ul><li>
If the database contained many CLOB or BLOB values, then closing a connection was very slow.
Reason: was that when closing a connection, the temporary CLOB and BLOB values for this connection
were removed, but there was no index on this column.
For existing databases with many CLOB and BLOB values, creating the index may take a few seconds.
</li><li>
If a CLOB or BLOB was copied into the same table using INSERT INTO X ... SELECT ... FROM X,
and then the original row was deleted, then the copied value was also deleted.
This could also result in an ArrayIndexOutOfBoundsException on checkpoint or when closing the database.
</li><li>
Improved performance (up to 10%) due to changed synchronization in the page store.
</li><li>
Reading a resource from the classpath didn't work if there was a leading slash
(classpath:/org/...). Now resources can be loaded with or without leading slash.
</li><li>
Support INSERT INTO TEST SET ID = 1, NAME = 'World' (MySQL compatibility).
</li><li>
Issue 304: The condition [NOT] IN (SELECT ...) could throw the exception "Unexpected code path" if the subquery contained ORDER BY.
...
...
h2/src/docsrc/html/roadmap.html
浏览文件 @
32fe58b7
...
...
@@ -46,6 +46,7 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>
Compatibility: automatically load functions from a script depending on the mode - see FunctionsMySQL.java, issue 211.
</li><li>
Test very large databases and LOBs (up to 256 GB).
</li><li>
Sequence: add features [NO] MINVALUE, MAXVALUE, CYCLE.
</li><li>
Make DDL (Data Definition) operations transactional.
</li><li>
Deferred integrity checking (DEFERRABLE INITIALLY DEFERRED).
</li><li>
Groovy Stored Procedures: http://groovy.codehaus.org/Groovy+SQL
</li><li>
Add a migration guide (list differences between databases).
...
...
@@ -64,7 +65,6 @@ See also <a href="build.html#providing_patches">Providing Patches</a>.
</li><li>
CHECK: find out what makes CHECK=TRUE slow, move to CHECK2.
</li><li>
Drop with invalidate views (so that source code is not lost). Check what other databases do exactly.
</li><li>
Index usage for (ID, NAME)=(1, 'Hi'); document.
</li><li>
Make DDL (Data Definition) operations transactional.
</li><li>
RANK() and DENSE_RANK(), Partition using OVER().
</li><li>
Set a connection read only (Connection.setReadOnly) or using a connection parameter.
</li><li>
Access rights: finer grained access control (grant access for specific functions).
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
32fe58b7
...
...
@@ -734,9 +734,10 @@ build warConsole
<h2
id=
"android"
>
Android
</h2>
<p>
You can use this database on an Android device (using the Dalvik VM) instead of or in addition to SQLite.
So far, only very few tests and benchmarks were run, but it seems that performance is
very
similar to SQLite,
So far, only very few tests and benchmarks were run, but it seems that performance is similar to SQLite,
except for opening and closing a database, which is not yet optimized in H2
(H2 takes about 0.2 seconds, and SQLite about 0.02 seconds).
Read operations seem to be a bit faster than SQLite, and write operations seem to be slower.
So far, only very few tests have been run, and everything seems to work as expected.
Fulltext search was not yet tested, however the native fulltext search should work.
</p>
...
...
@@ -754,7 +755,8 @@ Reasons to use H2 instead of SQLite are:
</li><li>
Better data type and SQL support.
</li><li>
In-memory databases, read-only databases, linked tables.
</li><li>
Better compatibility with other databases which simplifies porting applications.
</li><li>
Possibly better performance.
</li><li>
Possibly better performance (so far for read operations).
</li><li>
Server mode (accessing a database on a different machine over TCP/IP).
</li></ul>
<p>
Currently only the JDBC API is supported (it is planned to support the Android database API in future releases).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论