feat: implement postgres connector

This commit is contained in:
steven
2023-03-23 17:51:31 +08:00
parent 39df26a08f
commit 9969c7fa2a
8 changed files with 222 additions and 16 deletions

View File

@ -77,7 +77,8 @@ const ConnectionSidebar = () => {
</button>
))}
<button
className="w-10 h-10 !mt-5 ml-2 p-2 bg-gray-50 rounded-full text-gray-500 cursor-pointer hover:opacity-100"
className="tooltip tooltip-right w-10 h-10 !mt-5 ml-2 p-2 bg-gray-50 rounded-full text-gray-500 cursor-pointer"
data-tip="Create Connection"
onClick={() => toggleCreateConnectionModal(true)}
>
<Icon.Ai.AiOutlinePlus className="w-auto h-full mx-auto" />
@ -130,7 +131,7 @@ const ConnectionSidebar = () => {
) : (
<Icon.Io5.IoChatbubbleOutline className="w-5 h-auto mr-2 opacity-80 shrink-0" />
)}
<span className="truncate">{chat.title}</span>
<span className="truncate">{chat.title || "SQL Chat"}</span>
</div>
))}
<button

View File

@ -60,9 +60,7 @@ const CreateConnectionModal = (props: Props) => {
onChange={(e) => setPartialConnection({ engineType: e.target.value as Engine })}
>
<option value={Engine.MySQL}>MySQL</option>
<option className="hidden" value={Engine.PostgreSQL}>
PostgreSQL
</option>
<option value={Engine.PostgreSQL}>PostgreSQL</option>
</select>
</div>
<div className="w-full flex flex-col">