Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: Support CQL file execution #537

Open
millerjp opened this issue Nov 3, 2024 · 0 comments
Open

[feat]: Support CQL file execution #537

millerjp opened this issue Nov 3, 2024 · 0 comments
Assignees
Labels
cql console enhancement New feature or request
Milestone

Comments

@millerjp
Copy link
Contributor

millerjp commented Nov 3, 2024

It is comon that people execute cql files against the DB.

Allow users to select a file containing lots of CQL statements to execute against the DB and run against the DB.

This is essentially a very large multi-statment query like we run in the enhanced console. What we should do here is essentially pipe the CQL file into our enhanced cql statement prompt and execute the statments as BAU.

We should expose this via Right Click on a cluster and execute the selected CQL file.

Also add it somewhere near the CQL prompt area.

When running the CQL file users should also have the ability to terminate its execution.

The CQL history for this action should be a pointer to the file as the number of statments could be very high. If they click onto the cql file, in the history we should open the file in the CQL view (the one we use for looking at schemas etc..). Make sure the UX show its a CQL file being looked at in a prominent fashion.

Note - this file could be very large e.g lots of create statments and inserts to populate a DB. Test this with large files with 1000s of DML statements and various DDLs and make sure to test batch statments in the CQL file.

@millerjp millerjp added the enhancement New feature or request label Nov 3, 2024
@millerjp millerjp added this to the v1.0.0-release milestone Nov 3, 2024
@millerjp millerjp modified the milestones: v1.0.0-release, RightClick, v1.1.0-release Dec 3, 2024
@millerjp millerjp modified the milestones: v1.1.0-release, RightClick Dec 23, 2024
@millerjp millerjp changed the title [feat]: Support CQL file execution [feat]: Support CQL file execution and editing Feb 2, 2025
@millerjp millerjp changed the title [feat]: Support CQL file execution and editing [feat]: Support CQL file execution Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cql console enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants