fix: Add remote database connection timeout record (#9868)

This commit is contained in:
ssongliu 2025-08-05 19:15:00 +08:00 committed by GitHub
parent e3a9f2dfb7
commit d3e2c8e9d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 15 additions and 15 deletions

View file

@ -260,6 +260,7 @@ type DatabaseInfo struct {
ClientCert string `json:"clientCert"`
SkipVerify bool `json:"skipVerify"`
Timeout uint `json:"timeout"`
Description string `json:"description"`
}

View file

@ -18,5 +18,6 @@ type Database struct {
ClientCert string `json:"clientCert"`
SkipVerify bool `json:"skipVerify"`
Timeout uint `json:"timeout"`
Description string `json:"description"`
}

View file

@ -325,6 +325,7 @@ func (u *DatabaseService) Update(req dto.DatabaseUpdate) error {
upMap["port"] = req.Port
upMap["username"] = req.Username
upMap["password"] = pass
upMap["timeout"] = req.Timeout
upMap["description"] = req.Description
upMap["ssl"] = req.SSL
upMap["client_key"] = req.ClientKey

View file

@ -19,7 +19,7 @@ import (
)
var AddTable = &gormigrate.Migration{
ID: "20250729-add-table",
ID: "20250805-add-table",
Migrate: func(tx *gorm.DB) error {
return tx.AutoMigrate(
&model.AppDetail{},

View file

@ -572,7 +572,7 @@ const message = {
longQueryTime: 'threshold(s)',
thresholdRangeHelper: 'Please enter the correct threshold (1 - 600).',
timeout: 'Timeout',
timeout: 'Timeout(s)',
timeoutHelper: 'Idle connection timeout period. 0 indicates that the connection is on continuously.',
maxclients: 'Max clients',
requirepassHelper:

View file

@ -559,7 +559,7 @@ const message = {
longQueryTime: 'しきい値',
thresholdRangeHelper: '正しいしきい値1-600を入力してください',
timeout: 'タイムアウト',
timeout: 'タイムアウト(s)',
timeoutHelper: 'アイドル接続タイムアウト期間0接続が継続的にオンになっていることを示します',
maxclients: 'マックスクライアント',
requirepassHelper:

View file

@ -556,7 +556,7 @@ const message = {
longQueryTime: '임계값(s)',
thresholdRangeHelper: '올바른 임계값을 입력하십시오 (1 - 600).',
timeout: '타임아웃',
timeout: '타임아웃(s)',
timeoutHelper: '유휴 연결의 타임아웃 기간. 0 연결이 지속적으로 유지됨을 의미합니다.',
maxclients: '최대 클라이언트',
requirepassHelper:

View file

@ -571,7 +571,7 @@ const message = {
longQueryTime: 'Ambang (saat)',
thresholdRangeHelper: 'Sila masukkan ambang yang betul (1 - 600).',
timeout: 'Tamat masa',
timeout: 'Tamat masa(saat)',
timeoutHelper: 'Tempoh tamat masa sambungan tidak aktif. 0 menunjukkan sambungan sentiasa aktif.',
maxclients: 'Klien maksimum',
requirepassHelper:

View file

@ -568,7 +568,7 @@ const message = {
longQueryTime: 'limite (segundos)',
thresholdRangeHelper: 'Por favor, insira o limite correto (1 - 600).',
timeout: 'Tempo limite',
timeout: 'Tempo limite(segundos)',
timeoutHelper: 'Período de timeout de conexão ociosa. 0 indica que a conexão permanece ativa continuamente.',
maxclients: 'Máximo de clientes',
requirepassHelper:

View file

@ -563,7 +563,7 @@ const message = {
longQueryTime: 'порог (сек)',
thresholdRangeHelper: 'Пожалуйста, введите корректный порог (1 - 600).',
timeout: 'Таймаут',
timeout: 'Таймаут(сек)',
timeoutHelper: 'Период таймаута неактивного подключения. 0 означает, что подключение постоянно активно.',
maxclients: 'Макс. клиентов',
requirepassHelper:

View file

@ -579,7 +579,7 @@ const message = {
longQueryTime: 'eşik(saniye)',
thresholdRangeHelper: 'Lütfen doğru eşik değerini girin (1 - 600).',
timeout: 'Zaman ımı',
timeout: 'Zaman ımı(saniye)',
timeoutHelper: 'Boştaki bağlantı zaman ımı süresi. 0, bağlantının sürekli ık olduğunu gösterir.',
maxclients: 'Maksimum istemci',
requirepassHelper:

View file

@ -554,7 +554,7 @@ const message = {
longQueryTime: '閾值()',
thresholdRangeHelper: '請輸入正確的閾值(1 - 600)',
timeout: '超時時間',
timeout: '超時時間()',
timeoutHelper: '空閑連接超時時間0表示不斷開',
maxclients: '最大連接數',
requirepassHelper: '留空代表沒有設置密碼修改需要單獨保存並且重啟容器',

View file

@ -552,7 +552,7 @@ const message = {
longQueryTime: '阈值()',
thresholdRangeHelper: '请输入正确的阈值(1 - 600)',
timeout: '超时时间',
timeout: '超时时间()',
timeoutHelper: '空闲连接超时时间0表示不断开',
maxclients: '最大连接数',
requirepassHelper: '留空代表没有设置密码修改需要单独保存并且重启容器',

View file

@ -115,7 +115,7 @@
:current-page="searchInfo.page"
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
:pager-count="3"
:pager-count="5"
:page-sizes="[6, 8, 10, 12, 14]"
small
layout="total, sizes, prev, pager, next"

View file

@ -134,7 +134,6 @@ const onOpenDialog = async (
title,
rowData: { ...rowData },
};
params.rowData.timeout = 30;
dialogRef.value!.acceptParams(params);
};

View file

@ -134,7 +134,6 @@ const onOpenDialog = async (
title,
rowData: { ...rowData },
};
params.rowData.timeout = 30;
dialogRef.value!.acceptParams(params);
};

View file

@ -134,7 +134,6 @@ const onOpenDialog = async (
title,
rowData: { ...rowData },
};
params.rowData.timeout = 30;
dialogRef.value!.acceptParams(params);
};

View file

@ -119,7 +119,7 @@
</div>
</el-form>
</DrawerPro>
<SnapRecover ref="recoverRef" @close="handleClose" />
<SnapRecover ref="recoverRef" />
</template>
<script setup lang="ts">