Skip to content

Support rename column clause#68

Open
shakatoday wants to merge 7 commits into
fukamachi:masterfrom
shakatoday:support-rename-column-clause
Open

Support rename column clause#68
shakatoday wants to merge 7 commits into
fukamachi:masterfrom
shakatoday:support-rename-column-clause

Conversation

@shakatoday

Copy link
Copy Markdown

Status Quo

To rename a column, CHANGE COLUMN only works on MySQL. Whereas, developers could tend to use libraries based on cl-dbi together with sxql. Therefore, it might be nice to support the way to rename a column in PostgreSQL and SQLite as well.

Proposal

This pull request adds supports for RENAME COLUMN in sxql. All MySQL, PostgreSQL, and SQLite (>= 3.25.0) can run RENAME COLUMN, which corresponds to rename-column clause in this pull request.

This pull request also provided 3 related test cases.

Any comments and modifications are welcomed. Thank you!

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.

1 participant