mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-27 18:15:49 +08:00
chore: change tidbserverless engine type to TiDB
engine type should not be specific to product line
This commit is contained in:
@ -55,7 +55,7 @@ const engines = [
|
||||
defaultPort: "1433",
|
||||
},
|
||||
{
|
||||
type: Engine.TiDBServerless,
|
||||
type: Engine.TiDB,
|
||||
name: "TiDB Serverless",
|
||||
defaultPort: "4000",
|
||||
},
|
||||
@ -310,7 +310,7 @@ const CreateConnectionModal = (props: Props) => {
|
||||
onChange={(value) => setPartialConnection({ password: value })}
|
||||
/>
|
||||
</div>
|
||||
{connection.engineType === Engine.TiDBServerless ? (
|
||||
{connection.engineType === Engine.TiDB ? (
|
||||
<div className="w-full flex flex-col">
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">{t("connection.tidb-serverless-ssl-hint")}</label>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@ const EngineIcon = (props: Props) => {
|
||||
return <img src="/db-postgres.png" className={className} alt="postgres" />;
|
||||
} else if (engine === Engine.MSSQL) {
|
||||
return <img src="/db-sqlserver.png" className={className} alt="sqlserver" />;
|
||||
} else if (engine === Engine.TiDBServerless) {
|
||||
} else if (engine === Engine.TiDB) {
|
||||
return <img src="/db-tidb.png" className={className} alt="tidb" />;
|
||||
} else {
|
||||
return <Icon.DiDatabase className={className} />;
|
||||
|
Reference in New Issue
Block a user