# Greptime 双周精选 （2 月 27 日-3 月 12 日）｜支持 REPL

Source: https://greptime.cn/blogs/2023-03-20-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

以下是这段时间较为重要的 PR 总结：

- 支持一个简易的 REPL 用以调试和纠错

- 添加内存分析功能

- 支持 `COPY FROM` 语句

## 社区贡献者名单

在过去的两周里，共有 **6 位贡献者**，累计 **13 个 PR 被成功合并**，还有很多待合并的 PR。

祝贺以下各位在过去 2 周内成为我们活跃的贡献者：

- @[e1ijah1](https://github.com/e1ijah1) ([db#1115](https://github.com/GreptimeTeam/greptimedb/pull/1115))

- @[etolbakov](https://github.com/etolbakov) ([db#1117](https://github.com/GreptimeTeam/greptimedb/pull/1117) [db#1123](https://github.com/GreptimeTeam/greptimedb/pull/1123))

- @[lizhemingi](https://github.com/lizhemingi) ([db#1125](https://github.com/GreptimeTeam/greptimedb/pull/1125))

- @[morigs](https://github.com/morigs) ([doc#222](https://github.com/GreptimeTeam/docs/pull/222/) [db#1129](https://github.com/GreptimeTeam/greptimedb/pull/1129) [db#1107](https://github.com/GreptimeTeam/greptimedb/pull/1107))

- @[SSebo](https://github.com/SSebo) ([db#1086](https://github.com/GreptimeTeam/greptimedb/pull/1086))

- @[WenyXu](https://github.com/WenyXu) ([db#1137](https://github.com/GreptimeTeam/greptimedb/pull/1137) [db#1064](https://github.com/GreptimeTeam/greptimedb/pull/1064) [db#1102](https://github.com/GreptimeTeam/greptimedb/pull/1102) [db#1092](https://github.com/GreptimeTeam/greptimedb/pull/1092) [db#1089](https://github.com/GreptimeTeam/greptimedb/pull/1089))

非常感谢你们慷慨且出色的贡献! GreptimeDB 能够变得更加出色离不开你们的帮助。让我们一起努力，建立一个更棒的社区！

## PR 亮点

### [db#1048](https://github.com/GreptimeTeam/greptimedb/pull/1048) 支持一个简易的 REPL 用以测试

我们从 Datanode 中移除了 SQL 接口，这样就需要再提供一个类似 mysql-cli 的方式进行调试。受到 InfluxDB IOx 的启发推出了 REPL，可以起到这个作用。使用简单，具有历史记录和提示功能，可以通过我们的 gRPC 接口直接执行 SQL 语句查询。

<figure>
<img src="/zh/blogs/2023-03-20-biweekly/image1.png" alt="（图 1：SQL 语句查询）" style="width: 80%; margin: 0 auto"/>
<figcaption>（图 1：SQL 语句查询）</figcaption>
</figure>


### [db#1124](https://github.com/GreptimeTeam/greptimedb/pull/1124) 添加内存分析功能

添加内存分析功能，并提供 HTTP 接口下载分析数据。

### [db#1064](https://github.com/GreptimeTeam/greptimedb/pull/1064) 支持 `COPY FROM` 语句

`COPY FROM` 用于将文件中的数据导入到表中。在这之前，我们支持了“COPY TO”语句，与之结合可以实现数据的导出和导入。

## 新鲜事

- GreptimeCloud 进入了封闭测试阶段：基于 GreptimeDB 我们提供 DBaaS 的云数据库。欢迎参加我们的用户调研，我们会给场景相似的用户提供早期体验通道。https://greptime.com/product/cloud

- 我们更新了 Dashboard 的 UI 设计，新的设计更好地兼容了 PromQL 查询和脚本支持。https://github.com/GreptimeTeam/dashboard

## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
