165 Commits

Author SHA1 Message Date
9a47f87550 chore: update select style 2023-04-14 16:39:57 +08:00
14f86897d6 feat: support run non-select SQL (#35) 2023-04-14 15:54:22 +08:00
70b37211cd chore: move encrypt to connection (#34) 2023-04-14 14:28:49 +08:00
f9bd62caa0 feat: support for MSSQL database (#33)
* * 📦 chore(package.json): add mssql package
The mssql package has been added to the dependencies list in package.json. This package is required for connecting to Microsoft SQL Server databases.

* *  feat(README.md): add support for MSSQL database
*  feat(CreateConnectionModal.tsx): add support for MSSQL engine type
*  feat(EngineIcon.tsx): add support for MSSQL engine type icon
*  feat(connectors/index.ts): add support for MSSQL engine type connector
MSSQL database is now supported by the application. The CreateConnectionModal component now has an option to select MSSQL as the engine type. The EngineIcon component now has an icon for MSSQL engine type. The connectors/index.ts file now has a connector for MSSQL engine type. The README.md file has been updated to reflect the addition of MSSQL support.

* 🎉 feat(mssql): add support for Microsoft SQL Server
This commit adds a new connector for Microsoft SQL Server. The connector supports the following features:
- Test connection
- Execute statement
- Get databases
- Get tables
- Get table structure

The connector uses the mssql package to connect to the database. The connector is created using a factory function that takes a Connection object as an argument and returns a Connector object.

*  feat(connection.ts): add MSSQL engine and SSL options
The MSSQL engine has been added to the list of supported engines. Additionally, SSL options have been added to the Connection interface, including the ability to enable SSL and trust the server certificate.

* * 🐛 fix(mssql/index.ts): add USE statement to query
The execute and getTableStructure functions were not properly using the specified databaseName. The fix adds a USE statement to the query to ensure that the correct database is used.

* * 🐛 fix(mssql/index.ts): change getTableStructure function to use ConnectionPool instead of Connection
*  feat(mssql/index.ts): improve getTableStructure function to return standard schema string
The getTableStructure function now uses ConnectionPool instead of Connection, which is more efficient. The function has also been improved to return a standard schema string instead of the raw output from sp_help. The schema string is generated by querying the INFORMATION_SCHEMA.COLUMNS table and transforming the results into a standard schema string. This improves the consistency of the schema strings and makes them easier to work with.

* * 🚀 feat(CreateConnectionModal.tsx): add support for SSL encryption for MSSQL connections
* 🐛 fix(mssql/index.ts): fix encrypt option for MSSQL connections
The CreateConnectionModal component now supports SSL encryption for MSSQL connections. A new checkbox has been added to the modal to allow users to enable or disable SSL encryption. The mssql/index.ts file has been updated to fix the encrypt option for MSSQL connections. The encrypt option now uses the `encrypt` property of the `ssl` object instead of the `enabled` property.

* 🐛 fix(connection.ts): rename SSL options properties
The `enabled` and `trustServerCertificate` properties of the `SSLOptions` interface have been renamed to `encrypt` to better reflect their purpose.
2023-04-14 14:19:51 +08:00
80e4d7c353 chore: update code block component 2023-04-14 14:09:32 +08:00
790e418eec chore: update select kit component 2023-04-14 12:17:10 +08:00
a0003dc571 chore: update dev-ci action 2023-04-14 11:47:20 +08:00
ca23d78c8b feat: add Dockerfile (#32)
* feat: add Dockerfile

* chore: add build dev image action
2023-04-14 10:45:21 +08:00
cca6cbcad6 feat: add Spanish Language (#31)
* * 🐳 chore(Dockerfile): add Dockerfile for sqlchat
This commit adds a Dockerfile for sqlchat. The Dockerfile is based on Alpine Linux version 3.17 and installs the necessary dependencies for the application to run. The Dockerfile also sets the metadata for the container and copies the application files into the container. The Dockerfile uses pnpm to install the application dependencies and sets the OPENAI_API_KEY and OPENAI_API_ENDPOINT arguments for the container. The CMD instruction specifies the command to run when the container starts, which is to run the application in development mode using pnpm.

* * 🌐 feat(LocaleSelector.tsx): add support for Spanish language
* 🌐 feat(LocaleSwitch.tsx): add support for switching to Spanish language
* 🎨 style(ThemeSwitch.tsx): refactor button JSX for readability
The LocaleSelector component now includes an option for Spanish language. The LocaleSwitch component now includes support for switching to Spanish language. The ThemeSwitch component has been refactored to improve readability of the button JSX.

* 🌐 feat(i18n.ts): add support for Spanish language
A new language, Spanish, has been added to the application. The translations for the new language have been added to the es.json file. The i18n configuration has been updated to include the new language.

*  feat(setting.ts): add support for Spanish language
The Locale type now includes "es" for Spanish language support.

* * 🗑️ chore(Dockerfile): remove Dockerfile
The Dockerfile has been removed from the repository.

* * 🐛 fix(LocaleSwitch.tsx): fix indentation and add missing semicolon
* 🐛 fix(ThemeSwitch.tsx): remove unnecessary code and fix indentation
The LocaleSwitch component had an indentation issue and a missing semicolon. The ThemeSwitch component had unnecessary code that was removed, and the indentation was fixed.
2023-04-14 09:00:10 +08:00
d43fefc7f3 feat: implement Dropdown kit component 2023-04-14 08:10:25 +08:00
81ad3408fb fix: edit connection state 2023-04-13 22:58:09 +08:00
2ad7ede9fe chore: update modal props 2023-04-13 22:40:17 +08:00
6bec306c47 chore: remove tauri deps 2023-04-13 22:11:28 +08:00
e14b69cf4c chore: update modal kit component 2023-04-13 15:15:03 +08:00
68d2d8e7d1 chore: update github star badge dark mode 2023-04-13 14:39:55 +08:00
bb938f36c7 fix: remove code block external slashs 2023-04-13 14:13:32 +08:00
07f8714c50 chore: update tailwind unit styles 2023-04-13 12:20:44 +08:00
644087b60d chore: remove transition duration 2023-04-13 11:28:27 +08:00
7f2568fd08 feat: add dark mode switch in sidebar 2023-04-13 11:22:40 +08:00
c63df17480 chore: add dark-mode image 2023-04-13 01:51:18 +08:00
40a6dc8189 chore: update Dialog kit 2023-04-12 20:48:22 +08:00
63ece9d969 feat: implement Popover kit component 2023-04-12 17:00:21 +08:00
ce7ed9e821 chore: update dialog height 2023-04-12 15:38:49 +08:00
c4de3b0d6f feat: implement dark mode (#27)
* feat: implement dark mode

* feat: update data table dark mode style

* chore: update
2023-04-12 11:05:25 +08:00
2783bca24d chore: remove daisyui and update button style 2023-04-11 23:36:43 +08:00
bcd7bece81 feat: implement Dialog kit component 2023-04-11 23:07:18 +08:00
42a4194d10 feat: implement TextField kit component 2023-04-11 17:44:33 +08:00
8e43e7b0ac feat: add Tooltip kit component 2023-04-11 11:31:01 +08:00
87dfddcfe6 chore: import locale from dayjs 2023-04-10 23:39:27 +08:00
be0f2fe442 chore: update tauri config 2023-04-10 22:51:45 +08:00
11003e8600 fix: apiEndpoint pathname (#25) 2023-04-10 17:01:42 +08:00
89ffe9e8cf chore: update discord to permanent invite 2023-04-09 11:54:56 +08:00
8af7069865 chore: update get databases for postgres 2023-04-08 12:55:46 +08:00
177674f6b4 chore: make database field optional for postgres 2023-04-08 12:54:18 +08:00
ef1fc30b0c chore: fix sidebar z-index 2023-04-08 11:09:35 +08:00
a7a4006555 chore: remove sidebar border 2023-04-08 10:32:06 +08:00
84413b7201 chore: update responsible connection sidebar style 2023-04-07 20:04:23 +08:00
8ca20535ef chore: update setting i18n items 2023-04-07 19:20:13 +08:00
eafe130842 feat: implement select kit 2023-04-07 13:39:18 +08:00
de861ae5c5 feat: add openai api key and endpoint in setting (#23) 2023-04-07 10:34:08 +08:00
3341af871f chore: rename chat to conversation 2023-04-06 21:48:36 +08:00
219e154530 chore: update default code language to sql (#20) 2023-04-06 11:11:50 +08:00
e7de062dfd fix: seo problems (#19) 2023-04-06 11:09:23 +08:00
4742f8b83c feat: add i18n deps (#18) 2023-04-06 10:59:45 +08:00
34a72a7d56 fix: message status handler 2023-04-03 15:31:52 +08:00
e405ee3df8 Proposed change: Minor gramatic/spell-check changes (#17)
Minor changes to get more accurate grammar and spell-check in the README-file.
2023-04-02 12:38:17 +08:00
a3d6aed097 feat: add tauri deps (#15) 2023-04-01 21:33:54 +08:00
06eda19fa3 feat: update message status handler 2023-04-01 11:32:39 +08:00
558f75f9a4 chore: add bytebase sponsor 2023-04-01 01:15:56 +08:00
933c1634e8 fix: ssl field selected state 2023-03-31 19:24:56 +08:00