Skip to content

feats(completions): complete insert, drop/alter table, ignore many situations, improve WHERE#400

Merged
juleswritescode merged 15 commits intomainfrom
fix/annoying-completions
May 24, 2025
Merged

feats(completions): complete insert, drop/alter table, ignore many situations, improve WHERE#400
juleswritescode merged 15 commits intomainfrom
fix/annoying-completions

Conversation

@juleswritescode
Copy link
Copy Markdown
Collaborator

@juleswritescode juleswritescode commented May 20, 2025

I got carried away a bit!

This PR adds support for INSERT INTO completions and for DROP TABLE/ALTER TABLE statements.

It also flips the completions filtering from disallowlisting to allowlisting, so we'll have way fewer unwanted completions.

Screen.Recording.2025-05-24.at.13.57.06.mov

fn between_parentheses() {
let input = "insert into instruments ()";

// insert into (|) <- right in the parentheses
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

that must hurt

@juleswritescode juleswritescode changed the title feats(completions): complete insert, drop/alter table, blurb [WIP] feats(completions): complete insert, drop/alter table, blurb May 20, 2025
@juleswritescode juleswritescode changed the title [WIP] feats(completions): complete insert, drop/alter table, blurb feats(completions): complete insert, drop/alter table, ignore many situations May 24, 2025
@juleswritescode juleswritescode requested a review from psteinroe May 24, 2025 12:08
Copy link
Copy Markdown
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

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

at this point we might have the best sql autocomplete!

@juleswritescode juleswritescode changed the title feats(completions): complete insert, drop/alter table, ignore many situations feats(completions): complete insert, drop/alter table, ignore many situations, improve WHERE May 24, 2025
@juleswritescode juleswritescode merged commit 62ce45d into main May 24, 2025
7 checks passed
@juleswritescode juleswritescode deleted the fix/annoying-completions branch October 28, 2025 15:24
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