Skip to content

feat(completion): suggest PostgreSQL identity clauses - #363

Merged
Maxteabag merged 5 commits into
mainfrom
fix/344-postgres-identity
Nov 27, 2026
Merged

Maxteabag merged 5 commits into
mainfrom
fix/344-postgres-identity

Conversation

@Maxteabag

Copy link
Copy Markdown
Owner

Closes #344.

Suggest PostgreSQL identity clauses for integer columns in CREATE TABLE and ALTER TABLE ADD. Completing an identity clause inserts only the remaining words at the cursor.

Verified the SQL produced by the editor’s suggestion and acceptance methods against PostgreSQL 17.12. Both forms generated IDs 1 and 2, reported YES/ALWAYS in information_schema and rejected explicit ID 99 with SQLSTATE 428C9. The completion suite passed 287 tests on the initial revision. The earlier terminal recording was made with the prototype.

@Maxteabag
Maxteabag merged commit e1d3a3f into main Nov 27, 2026
23 checks 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.

[ Feature Request ] GENERATED ALWAYS AS IDENTITY

1 participant