This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Dotenv vault #244
Open
StudioCordillera
wants to merge
9
commits into
alibaba:main
Choose a base branch
from
StudioCordillera:dotenv-vault
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dotenv vault #244
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0f1a94b
Rename README.md to README_JA.md
StudioCordillera e23f324
Rename README_EN.md to README.md
StudioCordillera 01ed814
update
StudioCordillera 5addb3a
Merge branch 'main' of https://github.com/StudioCordillera/Chat2DB
StudioCordillera 13b8066
Update .env.vault
0555acf
Update .env.vault
20a94ce
Update .env.vault
d4112df
Update .env.vault
b9e60d5
Update .env.vault
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#/-------------------.env.vault---------------------/ | ||
#/ cloud-agnostic vaulting standard / | ||
#/ [how it works](https://dotenv.org/env-vault) / | ||
#/--------------------------------------------------/ | ||
DOTENV_VAULT=vlt_6d18e4e66bf1c9d2e8828d681bbbc7ce05e58950a0a67fad5371d26618a31bac | ||
|
||
# development | ||
DOTENV_VAULT_DEVELOPMENT="PNPvu914EoVfObV+Lpi2baUhWAoDHoX7dGR9ueAtIWQRNx++X6pkx7Wr3HvhYcGGq6HlRyUqCjdMf83BC/rY1bOIPVW+/pM68vEDhFnppbs0IEdIRwBxiSTWoKcyZHne" | ||
DOTENV_VAULT_DEVELOPMENT_VERSION=1 | ||
|
||
# ci | ||
DOTENV_VAULT_CI="7e8F1W5ay4cMtVM/JEt4+4U30Mv5TsLFpvO2kz4rXUQXjbPm0NR6oZIYvB+x" | ||
DOTENV_VAULT_CI_VERSION=1 | ||
|
||
# production | ||
DOTENV_VAULT_PRODUCTION="1jb92Sveq2QPXFkAxem4CZKtw4sZ5hjEjs1h7rNuc1n6itoqCNCep3Qlv6bk" | ||
DOTENV_VAULT_PRODUCTION_VERSION=1 | ||
|
||
# staging | ||
DOTENV_VAULT_STAGING="m/pCEH3Dom/G3j8rBfqwm6kN+FJvF+BLrX1ORb76OQL2vNz+GCl5FZLvaxWZ" | ||
DOTENV_VAULT_STAGING_VERSION=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
# 1.0.7 | ||
* 支持国产达梦数据库 [Issue #148](https://github.com/alibaba/Chat2DB/issues/147) | ||
* 支持自定义OPEN AI API_HOST [Issue #173](https://github.com/alibaba/Chat2DB/issues/173) | ||
* 🔥 支持自定义AI接口 | ||
* 支持主题色跟随系统 | ||
* Support domestic Da Meng database [Issue #148](https://github.com/alibaba/Chat2DB/issues/147) | ||
* Support custom Open AI API_HOST [Issue #173](https://github.com/alibaba/Chat2DB/issues/173) | ||
*catch Support custom AI interface | ||
* Support the theme color follow -up system | ||
|
||
# 1.0.6 | ||
* 修复Oracle数据库字符集问题 [Issue #205](https://github.com/alibaba/Chat2DB/issues/205) [Issue #181](https://github.com/alibaba/Chat2DB/issues/181) [Issue #182](https://github.com/alibaba/Chat2DB/issues/182) | ||
* 修复mac安装提示的安全问题 | ||
# 1.0.6 | ||
* Fix the problem of the Oracle Database State Collection [Issue #205](https://github.com/alibaba/Chat2DB/issues/205) [Issue #181](https://github.com/alibaba/Chat2DB/issues/181) [Issue #182](https://github.com/alibaba/Chat2DB/issues/182) | ||
*Fix the safety issues of MAC installation prompts | ||
|
||
# 1.0.5 | ||
* 🔥 优化Apple芯片的启动速度 | ||
* 修复Windows端数据库连接问题 [Issue #150](https://github.com/alibaba/Chat2DB/issues/150) [Issue #147](https://github.com/alibaba/Chat2DB/issues/147) | ||
* 修改database不生效 [Issue #141](https://github.com/alibaba/Chat2DB/issues/141) | ||
# 1.0.5 | ||
* P Optimize the startup speed of the Apple chip | ||
* Fix the problem of the connection of the Windows database [Issue #150](https://github.com/alibaba/Chat2DB/issues/150) [Issue #147](https://github.com/alibaba/Chat2DB/issues/147) | ||
* Modify database without taking effect [Issue #141](https://github.com/alibaba/Chat2DB/issues/141) | ||
* NullPointerException [Issue #136](https://github.com/alibaba/Chat2DB/issues/136) | ||
|
||
# 1.0.4 | ||
* 修复ClickHouse jdbc问题 [Issue #135](https://github.com/alibaba/Chat2DB/issues/135) | ||
* 修复连接池管理的NPE [Issue #136](https://github.com/alibaba/Chat2DB/issues/136) | ||
* 修复前端编辑数据源报错问题 | ||
* 增加数据库默认属性配置 | ||
* Fix the problem [Issue #135](https://github.com/alibaba/Chat2DB/issues/135) | ||
* Fix the NPE management of the connection pool management[Issue #136](https://github.com/alibaba/Chat2DB/issues/136) | ||
* Repair the front -end editing data source report error issues | ||
* Add database default attribute configuration | ||
|
||
# 1.0.3 | ||
* 🔥 支持SSH连接数据库 | ||
* 🎉 支持客户端查看日志 | ||
* 🎉 支持在Console中聊天对话 | ||
* 支持在客户端内设置OPENAI代理 [Issue #84](https://github.com/alibaba/Chat2DB/issues/84) | ||
* 已经启动过应用不会再重复启动 [Issue #96](https://github.com/alibaba/Chat2DB/issues/96) | ||
# 1.0.3 | ||
* H Support SSH connection database | ||
* Support the client to view the log | ||
* On Support chatting and dialogue in Console | ||
* Support to set up Openai proxy in the client[Issue #84](https://github.com/alibaba/Chat2DB/issues/84) | ||
*The application has been activated and will not be repeatedly started [Issue #96](https://github.com/alibaba/Chat2DB/issues/96) | ||
|
||
# 1.0.1 | ||
* 修复oracle连接配置编辑、以及连接查询问题 | ||
* 修复Apikey输出到日志可能存在的风险 | ||
* 修复web版本登录的bug | ||
# 1.0.1 | ||
* Fix Oracle connection configuration editing and connection query issues | ||
* Fix the risks that may exist to the log out of the Apikey output | ||
* Fix the BUG of the web version login | ||
|
||
# 1.0.0 | ||
Chat2DB的 1.0.0 正式版来啦🎉🎉🎉🎉🎉🎉🎉🎉🎉 | ||
# 1.0.0 | ||
Chat2db's 1.0.0 official version is here 🎉🎉🎉🎉🎉🎉🎉🎉🎉 | ||
|
||
* 🌈 AI智能助手,支持自然语言转SQL、SQL转自然语言、SQL优化建议 | ||
* 👭 支持团队协作,研发无需知道线上数据库密码,解决企业数据库账号安全问题 | ||
* ⚙️ 强大的数据管理能力,支持数据表、视图、存储过程、函数、触发器、索引、序列、用户、角色、授权等管理 | ||
* 🔌 强大的扩展能力,目前已经支持Mysql、PostgreSQL、Oracle、SQLServer、ClickHouse、Oceanbase、H2、SQLite等等,未来会支持更多的数据库 | ||
* 🛡 前端使用 Electron 开发,提供 Windows、Mac、Linux 客户端、网页版本一体化的解决方案 | ||
* 🎁 支持环境隔离、线上、日常数据权限分离 | ||
* able AI smart assistant, supports natural language to SQL, SQL to natural language, SQL optimization suggestion | ||
* Associate Support team collaboration, research and development does not need to know online database passwords, solve the security problem of corporate database accounts | ||
*️ ️ strong data management capabilities, support data tables, views, storage procedures, functions, triggers, indexes, sequences, users, characters, authorization and other management | ||
* The strong expansion capabilities, currently supports MySQL, PostgreSQL, Oracle, SQLServer, CLICKHOUSE, Oceanbase, H2, SQLITE, etc., and will support more databases in the future | ||
* eThe front end is developed with Electron, providing Windows, Mac, Linux clients, and web version integration solutions | ||
* SeparateSupport environmental isolation, online, daily data permissions separation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,71 @@ | ||
# Chat2DB AI SQL功能使用说明 | ||
Chat2DB包含一系列基于ChatGPT的AI SQL使用功能,主要包括自然语言转SQL、SQL解释、SQL优化和SQL转换。 使用这些AI功能,可以将自然语言转换成本地查询SQL,而不仅仅是SQL查询伪代码;可以将SQL解释成自然语言,帮助用户理解复杂的SQL;可以针对慢SQL提供全方位的优化建议,提升查询效率;可以转换不同数据库类型的SQL语言,降低数据库迁移难度等等。 | ||
## 使用配置 | ||
### 点击设置 | ||
# Chat2db AI SQL Function Instructions | ||
Chat2DB contains a series of AI SQL usage functions based on Chatgpt, mainly including SQL, SQL interpretation, SQL optimization and SQL conversion. Using these AI functions, you can check the SQL cost of natural language, not just SQL to query the pseudo code; you can interpret SQL as a natural language to help users understand complex SQL; Improve query efficiency; can convert different database types of SQL language, reduce database migration difficulty, and so on. | ||
## Use configuration | ||
### Click Settings | ||
<a><img src="https://img.alicdn.com/imgextra/i2/O1CN01hecdtO1acLegtiP9k_!!6000000003350-2-tps-2400-1600.png" width="100%"/></a> | ||
### 配置OPENAI_API_KEY | ||
使用ChatSql功能之前必须配置OPENAI_API_KEY,也可在客户端中设置代理HOST和PORT | ||
### Configure Openai_api_key | ||
Before using the ChatSQL function | ||
<a><img src="https://img.alicdn.com/imgextra/i2/O1CN01mkVmEd1FTY7SBG6Lq_!!6000000000488-0-tps-1212-788.jpg" width="100%"/></a> | ||
|
||
## 自然语言转SQL | ||
### 功能描述 | ||
输入自然语言,选中执行并传入查询相关的表结构信息,则会返回相应的SQL | ||
- 输入样例:查询学生小明的各科目成绩,并传入关联数据表course,score,student,student_course | ||
- 输出样例: | ||
```sql | ||
SELECT score.score | ||
FROM score | ||
INNER JOIN student_course ON score.course_id = student_course.course_id | ||
INNER JOIN student ON student_course.student_id = student.id | ||
WHERE student.name = '小明' | ||
``` | ||
## SQL解释 | ||
### 功能描述 | ||
输入SQL,选中执行并传入附加信息,附加信息可以添加希望解释《输入SQL》哪方面的信息,如SQL执行目标,则会返回此条SQL附加信息相关的解释 | ||
- 输入样例:SELECT department_name FROM departments WHERE department_id IN (SELECT department_id FROM employees GROUP BY department_id HAVING COUNT(*) > 10) | ||
- 输出样例:这个SQL查询语句的意思是:从departments表中选择department_name列,其中department_id列的值在employees表中department_id列的值分组后,如果该组中的记录数大于10,则返回该department_id。换句话说,这个查询语句返回的是在employees表中有超过10个员工的部门名称。 | ||
## SQL优化 | ||
### 功能描述 | ||
输入SQL,选中执行并传入优化附加信息,附加信息可以添加希望具体优化方面和要求,则会返回此条SQL附加信息相关的优化建议 | ||
- 输入样例:SELECT * FROM department ORDER BY gmt_create DESC | ||
- 输出样例: | ||
1. 尽量避免使用SELECT *,应该明确指定需要查询的列,以减少不必要的数据传输和提高查询效率。 | ||
2. 对于ORDER BY语句,如果查询的结果集比较大,可以考虑添加LIMIT限制返回的行数,以减少排序的开销。 | ||
3. 对于gmt_create字段,可以考虑添加索引以提高排序的效率。 | ||
4. 如果查询的结果集经常被访问,可以考虑使用缓存技术,如Redis等,以减少数据库的访问次数。 | ||
## SQL转换 | ||
### 功能描述 | ||
输入SQL,选中执行并传入目标SQL类型和附加信息,附加信息中可以添加转换的自定义要求,则会返回目标SQL类型且符合附加要求的SQL语言 | ||
- 输入样例:SELECT IFNULL(NULL, "W3Schools.com"),目标SQL类型为Oracle SQL | ||
- 输出样例:SELECT NVL(NULL, 'W3Schools.com') FROM dual; | ||
## CHATBOT | ||
### 功能描述 | ||
输入任意prompt,点击ChatRobot按钮即可根据prompt返回相应的结果,此处聊天对话默认支持上下文,默认上下文长度为4,可在application.yml文件中修改上下文长度 | ||
- 输入样例:针对第二条优化建议给出具体实现方法 | ||
- 输出样例:针对第二条优化建议,可以考虑在student表中添加一个索引,以加快查询速度。具体实现方法如下: | ||
## Natural language to SQL | ||
### function description | ||
Enter the natural language, select and pass the inquiry related table structure information, and return the corresponding SQL | ||
-Enter a sample example: query the scores of students Xiaoming's subjects, and introduce Course, Score, Student, Student_course | ||
-Outage sample: | ||
`` `SQL | ||
Select score.score | ||
From score | ||
Inner job state_course on score.course_id = student_course.course_id_id | ||
Inner Join Student on Student_Course.Student_id = Student.id | ||
Where Student.name = 'Xiao Ming' | ||
`` ` | ||
## SQL Explanation | ||
### function description | ||
Enter SQL, select and pass the additional information. The additional information can add information to explain which aspect of "Enter SQL". If SQL executes the target, it will return this SQL additional information related explanation | ||
-Enter a sample: Select department_name from departments where department_id in (select department_id from embipeees group by department_id having count (*)> 10) | ||
-Outing sample: This SQL query statement means: select the department_name column from the departments table, where the value of the department_id column is in the value group of the department_id column in the Emplayees table, and if the number of records in the group is greater than 10, it returns to this. department_id. In other words, this query statement returns the name of more than 10 employees in the Employees table. | ||
## SQL Optimization | ||
### function description | ||
Enter the SQL, select and pass the optimization additional information. The additional information can add the aspect and requirements for specific optimization, and it will return this strip SQL additional information related optimization suggestions | ||
-Enter sample example: Select * from department order by gmt_create desc | ||
-Outage sample: | ||
1. Try to avoid using Select *, you should clearly specify columns that need to be queried to reduce unnecessary data transmission and improve query efficiency. | ||
2. For the Order By statement, if the results of the query are relatively large, you can consider adding the number of rows returned to the Limit limit to reduce the amount of sorting. | ||
3. For the GMT_CREATE field, you can consider adding indexes to improve the efficiency of sorting. | ||
4. If the results of the query are often accessed, you can consider using cache technology, such as Redis to reduce the number of database access. | ||
## SQL conversion | ||
### function description | ||
Enter the SQL, select the execution and pass the target SQL type and additional information. You can add the custom requirements of conversion to the additional information, which will return the target SQL type and meet the additional requirements of the SQL language. | ||
-Enter sample example: Select ifnull (null, "w3schools.com"), the target SQL type is Oracle SQL | ||
-Outage sample: select nvl (null, 'w3Schools.com') from dual; | ||
## Chatbot | ||
### function description | ||
Enter any Prompt, click the Chatrobot button to return the corresponding results according to the Prompt. Here is the default support context of the chat and dialogue. | ||
-Enter sample example: give specific implementation methods for the second optimization suggestion | ||
-Outage sample: For the second optimization suggestion, you can consider adding an index in the Student table to speed up the query speed. The specific implementation method is as follows: | ||
|
||
1. 查看student表中是否已经存在索引。可以使用以下命令查看: | ||
1. View whether there are already indexes in the Student table. You can use the following command to view: | ||
|
||
```sql | ||
SHOW INDEX FROM student; | ||
``` | ||
`` `SQL | ||
Show index from student; | ||
`` ` | ||
|
||
如果已经存在索引,则可以跳过下一步。 | ||
If you already have indexes, you can skip the next step. | ||
|
||
2. 在student表中添加索引。可以使用以下命令添加: | ||
2. Add indexes to the Student table. You can use the following command to add: | ||
|
||
```sql | ||
ALTER TABLE student ADD INDEX name_index (name); | ||
``` | ||
`` `SQL | ||
Alter Table Student add index name_index (name); | ||
`` ` | ||
|
||
这里的name_index是索引的名称,name是需要建立索引的列名。 | ||
The name_index here is the name of the index, and name is the name of the index. | ||
|
||
注意:如果student表中的数据量很大,添加索引可能需要一些时间。 | ||
Note: If the amount of data in the Student table is large, it may take some time to add an index. | ||
|
||
3. 重新执行原始SQL语句,查看查询速度是否有所提升。 | ||
3. Re -execute the original SQL statement and check whether the query speed has improved. | ||
|
||
```sql | ||
SELECT score.score FROM score INNER JOIN student ON score.student_id = student.id WHERE student.name = '小明'; | ||
``` | ||
`` `SQL | ||
Select score.score from score inner join Student on score.Student_id = Student.id WHERE Student.name = 'Xiao Ming'; | ||
`` ` | ||
|
||
如果查询速度有所提升,则说明索引建立成功。 | ||
If the query speed is improved, the index is successful. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be committed.