Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
4027cfa4
提交
4027cfa4
authored
8月 12, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
ba58bbea
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
3 行删除
+12
-3
jaqu.html
h2/src/docsrc/html/jaqu.html
+6
-0
roadmap.html
h2/src/docsrc/html/roadmap.html
+2
-0
help.csv
h2/src/main/org/h2/res/help.csv
+2
-2
SamplesTest.java
h2/src/test/org/h2/test/jaqu/SamplesTest.java
+2
-1
没有找到文件。
h2/src/docsrc/html/jaqu.html
浏览文件 @
4027cfa4
...
@@ -18,6 +18,7 @@ JaQu
...
@@ -18,6 +18,7 @@ JaQu
<h2>
What is JaQu
</h2>
<h2>
What is JaQu
</h2>
<p>
<p>
JaQu stands for Java Query and allows to access databases using pure Java.
JaQu stands for Java Query and allows to access databases using pure Java.
JaQu provides a fluent interface (or internal DSL) for building SQL statements.
JaQu replaces SQL, JDBC, and O/R frameworks such as Hibernate.
JaQu replaces SQL, JDBC, and O/R frameworks such as Hibernate.
JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a
JaQu is something like LINQ for Java (LINQ stands for "language integrated query" and is a
Microsoft .NET technology). The following JaQu code:
Microsoft .NET technology). The following JaQu code:
...
@@ -73,6 +74,11 @@ under:
...
@@ -73,6 +74,11 @@ under:
</li><li>
src/tools/org/h2/jaqu/* (framework)
</li><li>
src/tools/org/h2/jaqu/* (framework)
</li></ul>
</li></ul>
<h2>
Building the JaQu library
</h2>
<p>
To create the JaQu jar file, run:
<code>
build jarJaqu
</code>
. This will create the file
<code>
bin/h2jaqu.jar
</code>
.
</p>
<h2>
Requirements
</h2>
<h2>
Requirements
</h2>
<p>
<p>
JaQu requires Java 1.5. Annotations are not need.
JaQu requires Java 1.5. Annotations are not need.
...
...
h2/src/docsrc/html/roadmap.html
浏览文件 @
4027cfa4
...
@@ -379,6 +379,8 @@ Of course, patches are always welcome, but are not always applied as is. Patches
...
@@ -379,6 +379,8 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>
Support GRANT SELECT, UPDATE ON *.
</li><li>
Support GRANT SELECT, UPDATE ON *.
</li><li>
Test Eclipse DTP.
</li><li>
Test Eclipse DTP.
</li><li>
Support JMX: Create an MBean for each database and server (support JConsole).
</li><li>
Support JMX: Create an MBean for each database and server (support JConsole).
</li><li>
H2 Console: autocomplete: keep the previous setting
</li><li>
executeBatch: option to stop at the first failed statement.
</li></ul>
</li></ul>
<h2>
Not Planned
</h2>
<h2>
Not Planned
</h2>
...
...
h2/src/main/org/h2/res/help.csv
浏览文件 @
4027cfa4
...
@@ -389,7 +389,7 @@ CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
...
@@ -389,7 +389,7 @@ CREATE DOMAIN EMAIL AS VARCHAR(255) CHECK (POSITION('@', VALUE) > 1)
"
"
"Commands (DDL)","CREATE INDEX","
"Commands (DDL)","CREATE INDEX","
CREATE {[UNIQUE [HASH]] INDEX [
[IF NOT EXISTS] newIndexName]
CREATE {[UNIQUE [HASH]] INDEX [
IF NOT EXISTS] newIndexName
| PRIMARY KEY [HASH]} ON tableName(columnName [,...])
| PRIMARY KEY [HASH]} ON tableName(columnName [,...])
","
","
Creates a new index.
Creates a new index.
...
@@ -808,7 +808,7 @@ SET [DATABASE] COLLATION
...
@@ -808,7 +808,7 @@ SET [DATABASE] COLLATION
","
","
Sets the collation used for comparing strings.
Sets the collation used for comparing strings.
This command can only be executed if there are no tables defined.
This command can only be executed if there are no tables defined.
See java.te
s
t.Collator for details about STRENGTH.
See java.te
x
t.Collator for details about STRENGTH.
This setting is persistent.
This setting is persistent.
Admin rights are required to execute this command.
Admin rights are required to execute this command.
","
","
...
...
h2/src/test/org/h2/test/jaqu/SamplesTest.java
浏览文件 @
4027cfa4
...
@@ -49,6 +49,8 @@ public class SamplesTest extends TestBase {
...
@@ -49,6 +49,8 @@ public class SamplesTest extends TestBase {
db
.
insertAll
(
Product
.
getProductList
());
db
.
insertAll
(
Product
.
getProductList
());
db
.
insertAll
(
Customer
.
getCustomerList
());
db
.
insertAll
(
Customer
.
getCustomerList
());
db
.
insertAll
(
Order
.
getOrderList
());
db
.
insertAll
(
Order
.
getOrderList
());
// TODO use prepared statements
// TODO test all relevant data types (Date,...)
// TODO nested AND/OR, >, <,...
// TODO nested AND/OR, >, <,...
// TODO NOT
// TODO NOT
// TODO +, -, *, /, ||, nested operations
// TODO +, -, *, /, ||, nested operations
...
@@ -56,7 +58,6 @@ public class SamplesTest extends TestBase {
...
@@ -56,7 +58,6 @@ public class SamplesTest extends TestBase {
// TODO UPDATE: FROM ... UPDATE?
// TODO UPDATE: FROM ... UPDATE?
// TODO SELECT UNION
// TODO SELECT UNION
// TODO DatabaseAdapter
// TODO DatabaseAdapter
// TODO user prepared statements
testOrAndNot
();
testOrAndNot
();
testDelete
();
testDelete
();
testIsNull
();
testIsNull
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论