Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
eec8526c
提交
eec8526c
authored
2月 07, 2019
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update database creation information in documentation
上级
0d967ee9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
6 行删除
+12
-6
faq.html
h2/src/docsrc/html/faq.html
+2
-1
features.html
h2/src/docsrc/html/features.html
+2
-1
tutorial.html
h2/src/docsrc/html/tutorial.html
+8
-4
没有找到文件。
h2/src/docsrc/html/faq.html
浏览文件 @
eec8526c
...
...
@@ -97,7 +97,8 @@ No, currently commercial support is not available.
<h3
id=
"create_database"
>
How to Create a New Database?
</h3>
<p>
By default, a new database is automatically created if it does not yet exist.
By default, a new database is automatically created if it does not yet exist when
<a
href=
"features.html#database_url"
>
embedded
</a>
URL is used.
See
<a
href=
"tutorial.html#creating_new_databases"
>
Creating New Databases
</a>
.
</p>
...
...
h2/src/docsrc/html/features.html
浏览文件 @
eec8526c
...
...
@@ -499,7 +499,8 @@ For more information about the algorithms, see
<h2
id=
"database_only_if_exists"
>
Opening a Database Only if it Already Exists
</h2>
<p>
By default, when an application calls
<code>
DriverManager.getConnection(url, ...)
</code>
and the database specified in the URL does not yet exist, a new (empty) database is created.
with
<a
href=
"features.html#database_url"
>
embedded
</a>
URL and the database specified in the URL does not yet exist,
a new (empty) database is created.
In some situations, it is better to restrict creating new databases, and only allow to open
existing databases. To do this, add
<code>
;IFEXISTS=TRUE
</code>
to the database URL. In this case, if the database does not already exist, an exception is thrown when
...
...
h2/src/docsrc/html/tutorial.html
浏览文件 @
eec8526c
...
...
@@ -474,14 +474,18 @@ In this database, user names are not case sensitive, but passwords are.
<h2
id=
"creating_new_databases"
>
Creating New Databases
</h2>
<p>
By default, if the database specified in the
URL does not yet exist, a new (empty)
database is created automatically. The user that created the database automatically becomes
the administrator of this database.
By default, if the database specified in the
<a
href=
"features.html#database_url"
>
embedded
</a>
URL does not yet exist,
a new (empty) database is created automatically.
The user that created the database automatically becomes
the administrator of this database.
</p>
<p>
Auto-creati
ng new database
can be disabled, see
Auto-creati
on of databases
can be disabled, see
<a
href=
"features.html#database_only_if_exists"
>
Opening a Database Only if it Already Exists
</a>
.
</p>
<p>
H2 Console does not allow creation of databases by default.
If H2 Console is launched with icon in the system tray its context menu can be used to create a new database.
</p>
<h2
id=
"using_server"
>
Using the Server
</h2>
<p>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论