Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2a9fa06c
提交
2a9fa06c
authored
1月 07, 2013
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation / formatting.
上级
18d0d751
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
52 行增加
和
31 行删除
+52
-31
changelog.html
h2/src/docsrc/html/changelog.html
+7
-7
mvstore.html
h2/src/docsrc/html/mvstore.html
+16
-16
tutorial.html
h2/src/docsrc/html/tutorial.html
+3
-3
RecoverTester.java
h2/src/main/org/h2/store/RecoverTester.java
+3
-0
FunctionTable.java
h2/src/main/org/h2/table/FunctionTable.java
+1
-1
RegularTable.java
h2/src/main/org/h2/table/RegularTable.java
+1
-1
Table.java
h2/src/main/org/h2/table/Table.java
+1
-1
CreateCluster.java
h2/src/main/org/h2/tools/CreateCluster.java
+4
-0
Recover.java
h2/src/main/org/h2/tools/Recover.java
+5
-1
Script.java
h2/src/main/org/h2/tools/Script.java
+4
-0
MathUtils.java
h2/src/main/org/h2/util/MathUtils.java
+5
-0
TestBase.java
h2/src/test/org/h2/test/TestBase.java
+2
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
2a9fa06c
...
...
@@ -42,11 +42,11 @@ Change Log
</li><li>
MVStore: a map implementation that supports concurrent operations.
</li><li>
MVStore: unified exception handling; the version is included in the messages.
</li><li>
MVStore: old data is now retained for 45 seconds by default.
</
ul
><li>
MVStore: compress is now disabled by default, and can be enabled on request.
</
ul
><li>
Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
</
ul
><li>
Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
</
ul
><li>
Add a DISK_SPACE_USED system function. Fixes issue 270.
</
ul
><li>
Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
</
li
><li>
MVStore: compress is now disabled by default, and can be enabled on request.
</
li
><li>
Support ALTER TABLE ADD ... AFTER. Patch from Andrew Gaul (argaul at gmail.com). Fixes issue 401.
</
li
><li>
Improved OSGi support. H2 now registers itself as a DataSourceFactory service. Fixes issue 365.
</
li
><li>
Add a DISK_SPACE_USED system function. Fixes issue 270.
</
li
><li>
Fix a compile-time ambiguity when compiling with JDK7, thanks to a patch from Lukas Eder.
</li></ul>
<h2>
Version 1.3.170 (2012-11-30)
</h2>
...
...
h2/src/docsrc/html/mvstore.html
浏览文件 @
2a9fa06c
...
...
@@ -376,7 +376,7 @@ The following exceptions can occur:
</li><li><code>
IllegalArgumentException
</code>
if a method was called with an illegal argument.
</li><li><code>
UnsupportedOperationException
</code>
if a method was called that is not supported,
for example trying to modify a read-only map or view.
</ul>
</
li></
ul>
<h2
id=
"differences"
>
Similar Projects and Differences to Other Storage Engines
</h2>
<p>
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
2a9fa06c
h2/src/main/org/h2/store/RecoverTester.java
浏览文件 @
2a9fa06c
...
...
@@ -6,6 +6,7 @@
*/
package
org
.
h2
.
store
;
import
java.io.IOException
;
import
java.io.OutputStreamWriter
;
import
java.io.PrintWriter
;
import
java.sql.SQLException
;
...
...
@@ -88,6 +89,8 @@ public class RecoverTester implements Recorder {
new
OutputStreamWriter
(
FileUtils
.
newOutputStream
(
fileName
+
".log"
,
true
)));
testDatabase
(
fileName
,
out
);
}
catch
(
IOException
e
)
{
throw
DbException
.
convertIOException
(
e
,
null
);
}
finally
{
IOUtils
.
closeSilently
(
out
);
testing
=
false
;
...
...
h2/src/main/org/h2/table/FunctionTable.java
浏览文件 @
2a9fa06c
h2/src/main/org/h2/table/RegularTable.java
浏览文件 @
2a9fa06c
h2/src/main/org/h2/table/Table.java
浏览文件 @
2a9fa06c
h2/src/main/org/h2/tools/CreateCluster.java
浏览文件 @
2a9fa06c
...
...
@@ -6,6 +6,7 @@
*/
package
org
.
h2
.
tools
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.sql.Connection
;
import
java.sql.DriverManager
;
...
...
@@ -13,6 +14,7 @@ import java.sql.SQLException;
import
java.sql.Statement
;
import
org.h2.constant.ErrorCode
;
import
org.h2.engine.Constants
;
import
org.h2.message.DbException
;
import
org.h2.store.fs.FileUtils
;
import
org.h2.util.IOUtils
;
import
org.h2.util.JdbcUtils
;
...
...
@@ -147,6 +149,8 @@ public class CreateCluster extends Tool {
try
{
scriptOut
=
FileUtils
.
newOutputStream
(
scriptFile
,
false
);
Script
.
process
(
connSource
,
scriptOut
);
}
catch
(
IOException
e
)
{
throw
DbException
.
convertIOException
(
e
,
null
);
}
finally
{
IOUtils
.
closeSilently
(
scriptOut
);
}
...
...
h2/src/main/org/h2/tools/Recover.java
浏览文件 @
2a9fa06c
...
...
@@ -254,7 +254,11 @@ public class Recover extends Tool implements DataHandler {
fileName
=
fileName
.
substring
(
0
,
fileName
.
length
()
-
3
);
String
outputFile
=
fileName
+
suffix
;
trace
(
"Created file: "
+
outputFile
);
try
{
return
new
PrintWriter
(
IOUtils
.
getBufferedWriter
(
FileUtils
.
newOutputStream
(
outputFile
,
false
)));
}
catch
(
IOException
e
)
{
throw
DbException
.
convertIOException
(
e
,
null
);
}
}
private
void
writeDataError
(
PrintWriter
writer
,
String
error
,
byte
[]
data
)
{
...
...
h2/src/main/org/h2/tools/Script.java
浏览文件 @
2a9fa06c
...
...
@@ -6,6 +6,7 @@
*/
package
org
.
h2
.
tools
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.io.PrintWriter
;
import
java.sql.Connection
;
...
...
@@ -13,6 +14,7 @@ import java.sql.DriverManager;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
org.h2.message.DbException
;
import
org.h2.store.fs.FileUtils
;
import
org.h2.util.IOUtils
;
import
org.h2.util.JdbcUtils
;
...
...
@@ -131,6 +133,8 @@ public class Script extends Tool {
try
{
o
=
FileUtils
.
newOutputStream
(
fileName
,
false
);
execute
(
url
,
user
,
password
,
o
);
}
catch
(
IOException
e
)
{
throw
DbException
.
convertIOException
(
e
,
null
);
}
finally
{
IOUtils
.
closeSilently
(
o
);
}
...
...
h2/src/main/org/h2/util/MathUtils.java
浏览文件 @
2a9fa06c
...
...
@@ -104,6 +104,11 @@ public class MathUtils {
return
cachedSecureRandom
;
}
/**
* Generate a seed value, using as much unpredictable data as possible.
*
* @return the seed
*/
public
static
byte
[]
generateAlternativeSeed
()
{
try
{
ByteArrayOutputStream
bout
=
new
ByteArrayOutputStream
();
...
...
h2/src/test/org/h2/test/TestBase.java
浏览文件 @
2a9fa06c
...
...
@@ -265,7 +265,8 @@ public abstract class TestBase {
}
else
{
url
=
name
;
}
// url = addOption(url, "DEFAULT_TABLE_ENGINE", "org.h2.mvstore.db.MVTableEngine");
// url = addOption(url, "DEFAULT_TABLE_ENGINE",
// "org.h2.mvstore.db.MVTableEngine");
if
(!
config
.
memory
)
{
if
(
config
.
smallLog
&&
admin
)
{
url
=
addOption
(
url
,
"MAX_LOG_SIZE"
,
"1"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论