Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
f9afc84b
提交
f9afc84b
authored
3月 06, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Generate proper table of contents for PDF
上级
abf01ddf
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
145 行增加
和
15 行删除
+145
-15
datatypes.html
h2/src/docsrc/html/datatypes.html
+1
-1
functions.html
h2/src/docsrc/html/functions.html
+86
-1
grammar.html
h2/src/docsrc/html/grammar.html
+50
-1
GenerateDoc.java
h2/src/tools/org/h2/build/doc/GenerateDoc.java
+8
-12
没有找到文件。
h2/src/docsrc/html/datatypes.html
浏览文件 @
f9afc84b
...
@@ -52,7 +52,7 @@ syntax-end -->
...
@@ -52,7 +52,7 @@ syntax-end -->
<!-- railroad-end -->
<!-- railroad-end -->
<c:forEach
var=
"item"
items=
"dataTypes"
>
<c:forEach
var=
"item"
items=
"dataTypes"
>
<h
3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3
>
<h
2
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h2
>
<!-- railroad-start -->
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
${item.syntax}
...
...
h2/src/docsrc/html/functions.html
浏览文件 @
f9afc84b
...
@@ -164,7 +164,92 @@ syntax-end -->
...
@@ -164,7 +164,92 @@ syntax-end -->
<p>
Click on the header to switch between railroad diagram and BNF.
</p>
<p>
Click on the header to switch between railroad diagram and BNF.
</p>
<!-- railroad-end -->
<!-- railroad-end -->
<c:forEach
var=
"item"
items=
"functionsAll"
>
<h2>
Aggregate Functions
</h2>
<c:forEach
var=
"item"
items=
"functionsAggregate"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
Numeric Functions
</h2>
<c:forEach
var=
"item"
items=
"functionsNumeric"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
String Functions
</h2>
<c:forEach
var=
"item"
items=
"functionsString"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
Time and Date Functions
</h2>
<c:forEach
var=
"item"
items=
"functionsTimeDate"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
System Functions
</h2>
<c:forEach
var=
"item"
items=
"functionsSystem"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
<pre
name=
"bnf"
style=
"display: none"
>
...
...
h2/src/docsrc/html/grammar.html
浏览文件 @
f9afc84b
...
@@ -170,7 +170,30 @@ syntax-end -->
...
@@ -170,7 +170,30 @@ syntax-end -->
<p>
Click on the header to switch between railroad diagram and BNF.
</p>
<p>
Click on the header to switch between railroad diagram and BNF.
</p>
<!-- railroad-end -->
<!-- railroad-end -->
<c:forEach
var=
"item"
items=
"commands"
>
<h2>
Commands (Data Manipulation)
</h2>
<c:forEach
var=
"item"
items=
"commandsDML"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
Commands (Data Definition)
</h2>
<c:forEach
var=
"item"
items=
"commandsDDL"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
<pre
name=
"bnf"
style=
"display: none"
>
...
@@ -191,6 +214,29 @@ syntax-end -->
...
@@ -191,6 +214,29 @@ syntax-end -->
${item.example}
</p>
${item.example}
</p>
</c:forEach>
</c:forEach>
<h2>
Commands (Other)
</h2>
<c:forEach
var=
"item"
items=
"commandsOther"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<pre
name=
"bnf"
style=
"display: none"
>
${item.syntax}
</pre>
<div
name=
"railroad"
>
${item.railroad}
</div>
<!-- railroad-end -->
<!-- syntax-start
<pre>
${item.syntax}
</pre>
syntax-end -->
<p>
${item.text}
</p>
<p>
Example:
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
<h2>
Datetime fields
</h2>
<c:forEach
var=
"item"
items=
"datetimeFields"
>
<c:forEach
var=
"item"
items=
"datetimeFields"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<!-- railroad-start -->
...
@@ -212,6 +258,7 @@ syntax-end -->
...
@@ -212,6 +258,7 @@ syntax-end -->
${item.example}
</p>
${item.example}
</p>
</c:forEach>
</c:forEach>
<h2>
Other Grammar
</h2>
<c:forEach
var=
"item"
items=
"otherGrammar"
>
<c:forEach
var=
"item"
items=
"otherGrammar"
>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<h3
id=
"${item.link}"
class=
"notranslate"
onclick=
"switchBnf(this)"
>
${item.topic}
</h3>
<!-- railroad-start -->
<!-- railroad-start -->
...
@@ -227,6 +274,8 @@ syntax-end -->
...
@@ -227,6 +274,8 @@ syntax-end -->
<p
class=
"notranslate"
>
${item.example}
</p>
<p
class=
"notranslate"
>
${item.example}
</p>
</c:forEach>
</c:forEach>
<h2>
System Tables
</h2>
<h3
id=
"information_schema"
class=
"notranslate"
>
Information Schema
</h3>
<h3
id=
"information_schema"
class=
"notranslate"
>
Information Schema
</h3>
<p>
<p>
The system tables in the schema
<code>
INFORMATION_SCHEMA
</code>
contain the meta data
The system tables in the schema
<code>
INFORMATION_SCHEMA
</code>
contain the meta data
...
...
h2/src/tools/org/h2/build/doc/GenerateDoc.java
浏览文件 @
f9afc84b
...
@@ -70,30 +70,26 @@ public class GenerateDoc {
...
@@ -70,30 +70,26 @@ public class GenerateDoc {
// String help = "SELECT * FROM INFORMATION_SCHEMA.HELP WHERE SECTION";
// String help = "SELECT * FROM INFORMATION_SCHEMA.HELP WHERE SECTION";
String
help
=
"SELECT ROWNUM ID, * FROM CSVREAD('"
+
String
help
=
"SELECT ROWNUM ID, * FROM CSVREAD('"
+
IN_HELP
+
"', NULL, 'lineComment=#') WHERE SECTION "
;
IN_HELP
+
"', NULL, 'lineComment=#') WHERE SECTION "
;
map
(
"commands"
,
help
+
"LIKE 'Commands%' ORDER BY ID"
,
true
);
map
(
"commandsDML"
,
map
(
"commandsDML"
,
help
+
"= 'Commands (DML)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Commands (DML)' ORDER BY ID"
,
tru
e
);
map
(
"commandsDDL"
,
map
(
"commandsDDL"
,
help
+
"= 'Commands (DDL)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Commands (DDL)' ORDER BY ID"
,
tru
e
);
map
(
"commandsOther"
,
map
(
"commandsOther"
,
help
+
"= 'Commands (Other)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Commands (Other)' ORDER BY ID"
,
tru
e
);
map
(
"datetimeFields"
,
map
(
"datetimeFields"
,
help
+
"= 'Datetime fields' ORDER BY ID"
,
true
);
help
+
"= 'Datetime fields' ORDER BY ID"
,
true
);
map
(
"otherGrammar"
,
map
(
"otherGrammar"
,
help
+
"= 'Other Grammar' ORDER BY ID"
,
true
);
help
+
"= 'Other Grammar' ORDER BY ID"
,
true
);
map
(
"functionsAggregate"
,
map
(
"functionsAggregate"
,
help
+
"= 'Functions (Aggregate)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Functions (Aggregate)' ORDER BY ID"
,
tru
e
);
map
(
"functionsNumeric"
,
map
(
"functionsNumeric"
,
help
+
"= 'Functions (Numeric)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Functions (Numeric)' ORDER BY ID"
,
tru
e
);
map
(
"functionsString"
,
map
(
"functionsString"
,
help
+
"= 'Functions (String)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Functions (String)' ORDER BY ID"
,
tru
e
);
map
(
"functionsTimeDate"
,
map
(
"functionsTimeDate"
,
help
+
"= 'Functions (Time and Date)' ORDER BY ID"
,
fals
e
);
help
+
"= 'Functions (Time and Date)' ORDER BY ID"
,
tru
e
);
map
(
"functionsSystem"
,
map
(
"functionsSystem"
,
help
+
"= 'Functions (System)' ORDER BY ID"
,
false
);
help
+
"= 'Functions (System)' ORDER BY ID"
,
true
);
map
(
"functionsAll"
,
help
+
"LIKE 'Functions%' ORDER BY SECTION, ID"
,
true
);
map
(
"dataTypes"
,
map
(
"dataTypes"
,
help
+
"LIKE 'Data Types%' ORDER BY SECTION, ID"
,
true
);
help
+
"LIKE 'Data Types%' ORDER BY SECTION, ID"
,
true
);
map
(
"informationSchema"
,
"SELECT TABLE_NAME TOPIC, "
+
map
(
"informationSchema"
,
"SELECT TABLE_NAME TOPIC, "
+
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论