Commit Graph

53 Commits

Author SHA1 Message Date
Tianzhou Chen
2984efaa7a chore: rename env file 2023-12-17 21:34:15 +08:00
Tianzhou Chen
42bad976a4 chore: improve onboarding experience 2023-12-17 20:50:11 +08:00
Tianzhou Chen
718b75baff fix: fix docker image by generating prisma client 2023-06-17 18:03:54 +08:00
CorrectRoadH
933fb6f280 feat: to select table directly in the sidebar (#106) 2023-05-31 15:47:32 +08:00
Steven
a126e630c8 chore: add eslint-config-prettier dependency 2023-05-19 20:09:00 +08:00
Steven
3c057cfa8b chore: add prettier and format code files 2023-05-19 20:05:38 +08:00
CorrectRoadH
79d02af91c feat: support multiple select table (#82) 2023-05-13 15:01:42 +08:00
Cheese
700c4bf8d1 feat: tidb cloud serverless tier support (#85)
* feat: tidb cloud serverless tier support

* clearify: check the engine type before call the tidb connection change function

* delete: unused type declare
2023-05-12 10:39:00 +08:00
Tianzhou (天舟)
c8d6fafdfa feat: account and payment (#75) 2023-05-05 18:56:14 +08:00
Tianzhou Chen
0306b10902 chore: add enduser column to record enduser info
Also pass the enduser info to OpenAI for abuse detection.
2023-05-02 16:51:19 +08:00
Tianzhou Chen
fa0cbfa381 feat: Use separate /setting route page instead of modal
Better extensibility as we may overlay additional modal in setting
2023-04-30 23:45:05 +08:00
Tianzhou Chen
ea7a48a26b chore: use prettier for project and apply to all files 2023-04-29 22:49:07 +08:00
Tianzhou Chen
4f02a6f9ad chore: use explicit prisma-build
This is only used for building on vercel. Since there is no prerun hook to execute migration so we have to do the migration on build time.
2023-04-25 22:15:02 +08:00
Steven
daac415d35 chore: update dockerfile 2023-04-24 23:57:15 +08:00
CorrectRoadH
a82308bd8b feat: make select component scrollable (#58)
* implmemnt scroll select #56

* limit the max height

* mix two solutio to implment final effect
2023-04-24 14:50:54 +08:00
Tianzhou (天舟)
c74302a4a6 chore: add vercel-build script for CI/CD (#63)
* chore: update readme

* chore: change to USAGE_DATABASE_URL

* chore: add vercel-build
2023-04-24 01:48:26 +08:00
Tianzhou Chen
aabb9a0ce5 feat: add prisma stub and init schema 2023-04-24 00:48:45 +08:00
boojack
c1e5957038 chore: use copy-to-clipboard (#43) 2023-04-20 10:40:48 +08:00
steven
9a47f87550 chore: update select style 2023-04-14 16:39:57 +08:00
boojack
70b37211cd chore: move encrypt to connection (#34) 2023-04-14 14:28:49 +08:00
Jorge Thomas - Akrista
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
steven
80e4d7c353 chore: update code block component 2023-04-14 14:09:32 +08:00
Steven
d43fefc7f3 feat: implement Dropdown kit component 2023-04-14 08:10:25 +08:00
Steven
6bec306c47 chore: remove tauri deps 2023-04-13 22:11:28 +08:00
steven
e14b69cf4c chore: update modal kit component 2023-04-13 15:15:03 +08:00
steven
63ece9d969 feat: implement Popover kit component 2023-04-12 17:00:21 +08:00
Steven
2783bca24d chore: remove daisyui and update button style 2023-04-11 23:36:43 +08:00
Steven
bcd7bece81 feat: implement Dialog kit component 2023-04-11 23:07:18 +08:00
steven
8e43e7b0ac feat: add Tooltip kit component 2023-04-11 11:31:01 +08:00
Steven
be0f2fe442 chore: update tauri config 2023-04-10 22:51:45 +08:00
Steven
eafe130842 feat: implement select kit 2023-04-07 13:39:18 +08:00
boojack
4742f8b83c feat: add i18n deps (#18) 2023-04-06 10:59:45 +08:00
boojack
a3d6aed097 feat: add tauri deps (#15) 2023-04-01 21:33:54 +08:00
boojack
83eaa71fb6 chore: add data storage banner (#4)
* chore: stash

* chore: add data storage banner

* chore: update
2023-03-29 10:02:19 +08:00
boojack
0a878caf4f feat: implement token counter (#3) 2023-03-29 00:11:39 +08:00
steven
65f2100f50 feat: use drawer instead of modal for sql query 2023-03-28 16:43:15 +08:00
steven
a41f42b32b feat: support execute sql 2023-03-28 11:26:30 +08:00
steven
ad56250e52 chore: update message loader 2023-03-27 16:21:38 +08:00
steven
9c9204494d feat: implement markdown codeblock 2023-03-27 11:36:45 +08:00
Steven
ca73de6c8b feat: implement delete connection/chat 2023-03-27 01:06:28 +08:00
steven
1c84e9a1df feat: implement streaming response 2023-03-24 11:49:41 +08:00
Steven
0863351ccc feat: use next edge api 2023-03-23 23:35:19 +08:00
steven
9969c7fa2a feat: implement postgres connector 2023-03-23 17:51:31 +08:00
steven
39df26a08f feat: implement connection sidebar 2023-03-23 16:18:13 +08:00
steven
eb978bd669 feat: implement mysql connector 2023-03-23 16:12:16 +08:00
Steven
7187b9c027 chore: update devDependencies 2023-03-21 00:30:01 +08:00
Steven
6daa459e57 chore: rename to sqlchat 2023-03-20 13:42:47 +08:00
Steven
990d7d83fe feat: add message renderer style 2023-03-19 21:25:51 +08:00
Steven
208c894db8 feat: update chat view layout 2023-03-19 00:42:35 +08:00
Steven
5c341f1610 chore: use react-icons instead of lucide-react 2023-03-17 07:56:17 +08:00