feat(editor): 支持 SELECT * 展开为字段列表
* ✨ feat(editor): 支持将 SELECT * 展开为字段列表 - 新增右键菜单及 `Mod+Shift+X` 快捷键,可展开 `*` 和 `别名.*` - 基于语义分析识别单表来源、别名及原始引用符,并按数据库方言处理字段名转义 - 优先读取本地或远程表字段元数据,单表纯星号查询可回退使用执行结果字段 - 增加字段加载失败提示及多语言文案 - 补充星号展开、结果匹配和快捷键注册测试 * fix(editor): selectStar 回退加词边界检查并记录加载失败 --------- Co-authored-by: t8y2 <t8y2@users.noreply.github.com> Co-authored-by: skyler <1156263951@qq.com>
This commit is contained in:
18 files changed
+473
-17
No files matched your search
@@ -947,6 +947,8 @@ export default {
|
||||
uppercaseSelection: "Convert to uppercase",
|
||||
lowercaseSelection: "Convert to lowercase",
|
||||
delimitedList: "Convert to delimited list",
|
||||
expandSelectStar: "Expand * to columns",
|
||||
expandSelectStarUnavailable: "Unable to load columns for this table",
|
||||
findReplace: "Find/Replace",
|
||||
deleteEmptyLines: "Delete empty lines",
|
||||
selectAll: "Select all",
|
||||
@@ -5256,6 +5258,7 @@ export default {
|
||||
shortcutSaveSql: "Save SQL",
|
||||
shortcutAcceptCompletion: "Accept completion",
|
||||
shortcutFormatSql: "Format SQL",
|
||||
shortcutExpandSelectStar: "Expand * to columns",
|
||||
shortcutToggleLineComment: "Toggle line comment",
|
||||
shortcutIndentMore: "Indent more",
|
||||
shortcutIndentLess: "Indent less",
|
||||
|
||||
@@ -927,6 +927,8 @@ export default withEnglishFallback({
|
||||
lowercaseSelection: "Convertir a minusculas",
|
||||
selectAll: "Seleccionar todo",
|
||||
delimitedList: "Convertir a lista delimitada",
|
||||
expandSelectStar: "Expandir * a columnas",
|
||||
expandSelectStarUnavailable: "No se pudieron cargar las columnas de esta tabla",
|
||||
findReplace: "Buscar/Reemplazar",
|
||||
deleteEmptyLines: "Eliminar líneas vacías",
|
||||
},
|
||||
@@ -4991,6 +4993,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "Guardar SQL",
|
||||
shortcutAcceptCompletion: "Aceptar completado",
|
||||
shortcutFormatSql: "Formatear SQL",
|
||||
shortcutExpandSelectStar: "Expandir * a columnas",
|
||||
shortcutToggleLineComment: "Alternar comentario de línea",
|
||||
shortcutIndentMore: "Aumentar sangría",
|
||||
shortcutIndentLess: "Reducir sangría",
|
||||
|
||||
@@ -925,6 +925,8 @@ export default withEnglishFallback({
|
||||
lowercaseSelection: "Converti in minuscolo",
|
||||
selectAll: "Seleziona tutto",
|
||||
delimitedList: "Converti in lista delimitata",
|
||||
expandSelectStar: "Espandi * in colonne",
|
||||
expandSelectStarUnavailable: "Impossibile caricare le colonne di questa tabella",
|
||||
findReplace: "Trova/Sostituisci",
|
||||
deleteEmptyLines: "Elimina righe vuote",
|
||||
},
|
||||
@@ -4991,6 +4993,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "Salva SQL",
|
||||
shortcutAcceptCompletion: "Accetta completamento",
|
||||
shortcutFormatSql: "Formatta SQL",
|
||||
shortcutExpandSelectStar: "Espandi * in colonne",
|
||||
shortcutToggleLineComment: "Attiva/disattiva commento di riga",
|
||||
shortcutIndentMore: "Aumenta rientro",
|
||||
shortcutIndentLess: "Riduci rientro",
|
||||
|
||||
@@ -945,6 +945,8 @@ export default withEnglishFallback({
|
||||
lowercaseSelection: "小文字に変換",
|
||||
selectAll: "すべて選択",
|
||||
delimitedList: "区切り文字付きリストに変換",
|
||||
expandSelectStar: "* を列に展開",
|
||||
expandSelectStarUnavailable: "このテーブルの列を読み込めません",
|
||||
findReplace: "検索/置換",
|
||||
deleteEmptyLines: "空行を削除",
|
||||
},
|
||||
@@ -5013,6 +5015,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "SQLを保存",
|
||||
shortcutAcceptCompletion: "補完を受け入れる",
|
||||
shortcutFormatSql: "SQLをフォーマット",
|
||||
shortcutExpandSelectStar: "* を列に展開",
|
||||
shortcutToggleLineComment: "行コメントを切り替え",
|
||||
shortcutIndentMore: "インデントを増やす",
|
||||
shortcutIndentLess: "インデントを減らす",
|
||||
|
||||
@@ -867,6 +867,8 @@ export default withEnglishFallback({
|
||||
uppercaseSelection: "대문자로 변환",
|
||||
lowercaseSelection: "소문자로 변환",
|
||||
delimitedList: "구분자 목록으로 변환",
|
||||
expandSelectStar: "*을(를) 열로 확장",
|
||||
expandSelectStarUnavailable: "이 테이블의 열을 불러올 수 없습니다",
|
||||
findReplace: "찾기/바꾸기",
|
||||
deleteEmptyLines: "빈 줄 삭제",
|
||||
selectAll: "모두 선택",
|
||||
@@ -4784,6 +4786,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "SQL 저장",
|
||||
shortcutAcceptCompletion: "완성 수락",
|
||||
shortcutFormatSql: "SQL 서식",
|
||||
shortcutExpandSelectStar: "*을(를) 열로 확장",
|
||||
shortcutToggleLineComment: "줄 주석 전환",
|
||||
shortcutIndentMore: "들여쓰기 늘리기",
|
||||
shortcutIndentLess: "들여쓰기 줄이기",
|
||||
|
||||
@@ -926,6 +926,8 @@ export default withEnglishFallback({
|
||||
lowercaseSelection: "Converter para minúsculas",
|
||||
selectAll: "Selecionar tudo",
|
||||
delimitedList: "Converter para lista delimitada",
|
||||
expandSelectStar: "Expandir * em colunas",
|
||||
expandSelectStarUnavailable: "Não foi possível carregar as colunas desta tabela",
|
||||
findReplace: "Localizar/substituir",
|
||||
deleteEmptyLines: "Excluir linhas vazias",
|
||||
},
|
||||
@@ -4993,6 +4995,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "Salvar SQL",
|
||||
shortcutAcceptCompletion: "Aceitar autocompletar",
|
||||
shortcutFormatSql: "Formatar SQL",
|
||||
shortcutExpandSelectStar: "Expandir * em colunas",
|
||||
shortcutToggleLineComment: "Alternar comentário de linha",
|
||||
shortcutIndentMore: "Aumentar recuo",
|
||||
shortcutIndentLess: "Reduzir recuo",
|
||||
|
||||
@@ -948,6 +948,8 @@ export default withEnglishFallback({
|
||||
uppercaseSelection: "转为大写",
|
||||
lowercaseSelection: "转为小写",
|
||||
delimitedList: "转换为带分隔符的列表",
|
||||
expandSelectStar: "将 * 展开为字段",
|
||||
expandSelectStarUnavailable: "无法读取该表的字段信息",
|
||||
findReplace: "查找/替换",
|
||||
deleteEmptyLines: "删除空行",
|
||||
selectAll: "全选",
|
||||
@@ -5253,6 +5255,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "保存 SQL",
|
||||
shortcutAcceptCompletion: "接受补全",
|
||||
shortcutFormatSql: "格式化 SQL",
|
||||
shortcutExpandSelectStar: "将 * 展开为字段",
|
||||
shortcutToggleLineComment: "切换行注释",
|
||||
shortcutIndentMore: "增加缩进",
|
||||
shortcutIndentLess: "减少缩进",
|
||||
|
||||
@@ -925,6 +925,8 @@ export default withEnglishFallback({
|
||||
lowercaseSelection: "轉為小寫",
|
||||
selectAll: "全選",
|
||||
delimitedList: "轉換為帶分隔符的清單",
|
||||
expandSelectStar: "將 * 展開為欄位",
|
||||
expandSelectStarUnavailable: "無法讀取此資料表的欄位資訊",
|
||||
findReplace: "查找/取代",
|
||||
deleteEmptyLines: "刪除空行",
|
||||
},
|
||||
@@ -4443,6 +4445,7 @@ export default withEnglishFallback({
|
||||
shortcutSaveSql: "儲存 SQL",
|
||||
shortcutAcceptCompletion: "接受補全",
|
||||
shortcutFormatSql: "格式化 SQL",
|
||||
shortcutExpandSelectStar: "將 * 展開為欄位",
|
||||
shortcutToggleLineComment: "切換行註解",
|
||||
shortcutIndentMore: "增加縮排",
|
||||
shortcutIndentLess: "減少縮排",
|
||||
|
||||
Reference in new issue
Block a user