blob: 7ad153353d8ce4c842b1ba2226fc3809b0c9c783 [file] [view]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# DBeaver
## 1. 功能简介
DBeaver 是一款开源的通用数据库管理工具,支持数据查询与可视化​、元数据管理​、数据导入导出、驱动扩展等核心特性,为多种数据库(如 MySQL、PostgreSQL、Oracle等)提供跨平台的图形化操作界面。
![](/img/dbeaver-2520-1.png)
## 2. 前置条件
安装好 DBeaver、IoTDB:
- DBeaver(>= V25.2.0),下载地址:https://dbeaver.io/download/
- IoTDB 已启动,下载地址:https://iotdb.apache.org/Download/
## 3. 创建连接
1. 点击 DBeaver > 数据库 > 新建数据库连接,或者直接点击左上角图标
![](/img/dbeaver-2520-2.png)
2. 选择 IoTDB 驱动(可在 All 或 Timeseries 分类中找到)
![](/img/dbeaver-2520-3.png)
3. 完善连接设置,并根据要连接的 IoTDB 是树模型或表模型,选择不同的连接方式
![](/img/dbeaver-2520-4.png)
4. 测试连接(请选择适配版本的驱动文件)。如果连接成功,会提示已连接,并显示服务器版本和驱动版本。
![](/img/dbeaver-2520-5.png)
## 4. 使用方式
1. 数据库概览
在界面左侧的`数据库导航`中,可以查看数据库相关信息,包括数据库名称、表名称、列名称,列的类型以及列的备注。
![](/img/dbeaver-new-table-1.png)
2. 表结构
在数据库列表中双击某张表,可在界面右侧展示的`属性`页签查看具体的表结构,包括表的基本属性和列的详细信息等。
![](/img/dbeaver-new-table-2.png)
在`唯一键`处可以查看表内的主键(time+tag 列)。
![](/img/dbeaver-new-table-3.png)
3. 数据
在右侧界面切换到`数据`页签,即可查看该表存储的全部数据。
![](/img/dbeaver-new-table-4.png)
4. 函数与数据类型
在`数据库导航`下的`存储过程`页签中,可以查看数据库支持的所有函数;
![](/img/dbeaver-new-table-5.png)
在`数据类型`页签中,可以查看数据库当前支持的所有数据类型。
![](/img/dbeaver-new-table-6.png)