Skip to content

New tabs DML (Data Manipulation Language)#259

Merged
debba merged 3 commits into
TabularisDB:mainfrom
capvalen:New-DML-tabs
May 29, 2026
Merged

New tabs DML (Data Manipulation Language)#259
debba merged 3 commits into
TabularisDB:mainfrom
capvalen:New-DML-tabs

Conversation

@capvalen
Copy link
Copy Markdown

Summary
I've added new tabs for the SQL commands, placing them in the context menu of the Generate SQL tool: They are SELECT *, SELECT [fields], UPDATE, and DELETE.

The changes are located in the same Generate SQL modal.
image

Changes:

  1. I added tabs for each stamment
  2. I've added the "Run in Console" option button, copied from your code, which I found earlier.
  3. I added the translation keys to all the localization files (en, es, de, fr, it, ja, ru, zh). Were added to each generateSQL
    section: Keys: The tabCreateTable, tabSelectAll, tabSelectFields, tabUpdate, tabDelete and runInConsole

The result are:

  1. The tabs are funcionality
image
  1. Click button: Run in console
image
  1. It creates the navigation with sql statemment
image

Coded in Manjaro Linux.

I hope you add it to the repository. These are features that were missing and are very useful.
Thanks.

Ps. I used AI because I'm new to React. But I did run the necessary tests.

state: {
initialQuery: displayedSql,
queryName: `${tableName} – ${tab}`,
undefined,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Stray undefined property in navigation state

The undefined identifier is being used as a shorthand property name, which evaluates to { undefined: undefined }. This is likely a leftover from removing a property and should be deleted.

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented May 27, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
src/components/modals/GenerateSQLModal.tsx 128 Stray undefined property in navigation state — likely a leftover from removing a property, evaluates to { undefined: undefined }
Files Reviewed (12 files)
  • src/components/modals/GenerateSQLModal.tsx — 1 issue (unchanged, carried forward)
  • src/components/ui/SqlPreview.tsx — no issues (unchanged, carried forward)
  • src/i18n/locales/de.json — no issues (unchanged, carried forward)
  • src/i18n/locales/en.json — no issues (unchanged, carried forward)
  • src/i18n/locales/es.json — no issues (unchanged, carried forward)
  • src/i18n/locales/fr.json — no issues (unchanged, carried forward)
  • src/i18n/locales/it.json — no issues (unchanged, carried forward)
  • src/i18n/locales/ja.json — no issues (unchanged, carried forward)
  • src/i18n/locales/ru.json — no issues (unchanged, carried forward)
  • src/i18n/locales/zh.json — no issues (unchanged, carried forward)
  • src/utils/queryParameters.ts — no issues
  • tests/utils/queryParameters.test.ts — no issues

Fix these issues in Kilo Cloud


Reviewed by kimi-k2.6 · 152,263 tokens

@debba
Copy link
Copy Markdown
Collaborator

debba commented May 27, 2026

Hi @capvalen , thanks for this .
Let me review it, and for sure will merge it, maybe we will do some adjustments if required.

debba added 2 commits May 27, 2026 11:56
Replace the '?' placeholders in the generated UPDATE statement with
:named parameters derived from column names, so the SQL binds correctly
when opened in the query editor. Add a toBindParamName helper that
sanitises identifiers into valid :param names, with unit tests.
@debba
Copy link
Copy Markdown
Collaborator

debba commented May 27, 2026

Hey @capvalen, I pushed a couple of small changes on top of your branch:

  • The SQL preview now spaces the line numbers the same way the query editor does (dropped the lineDecorationsWidth override).
  • The generated UPDATE now uses :named params instead of ?, so they actually bind when you open the query in the editor.

Both are minor. If you're good with them, I'll go ahead and merge. Thanks!

@debba debba merged commit 49f6f89 into TabularisDB:main May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants