Skip to content

Allow naming a saved SQL entry during the initial save #2235

Description

@openai0229

Chat2DB Edition

Chat2DB Community

User Problem

When a SQL console is saved for the first time, Chat2DB persists it with the current workspace or database-derived title. The user cannot enter a meaningful name during the save action, so saved SQL entries are difficult to identify until they are renamed separately.

Concrete Use Case

An engineer prepares several maintenance queries for the same database. When saving each query, they need to assign names such as Check replication lag or Archive expired orders before the entries appear in the saved SQL list.

Product Area

SQL editor

Proposed Outcome

The first manual save of a SQL console should request a name, prefilled with a sensible default. Confirming should save the SQL under that name, while cancelling should leave it unsaved. Later saves should continue updating the same saved record without prompting again.

Alternatives Considered

Save with the generated title, find the entry in the saved SQL list, and rename it afterward. This adds an avoidable second step and is error-prone when several entries have similar generated names.

Contribution

I can provide product feedback

Submission Checklist

  • I searched existing issues and Discussions for duplicates.
  • I selected the affected Chat2DB edition.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions