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

Support full TRUNCATE syntax (cascade, identity) #438

Closed
maxrothman opened this issue Oct 17, 2022 · 2 comments
Closed

Support full TRUNCATE syntax (cascade, identity) #438

maxrothman opened this issue Oct 17, 2022 · 2 comments
Assignees

Comments

@maxrothman
Copy link

Postgres’ TRUNCATE command supports two additional options that are not supported in HoneySQL: CASCADE/RESTRICT, and RESTART IDENTITY/CONTINUE IDENTITY. It’d be great to have them supported!

Doc link: https://www.postgresql.org/docs/current/sql-truncate.html

@kolstae
Copy link

kolstae commented Nov 4, 2022

Also the ability to truncate multiple tables would be great.

@seancorfield
Copy link
Owner

:truncate now accepts either a table name or a sequence with a table name followed by options that should work for all the various database-specific syntax allowed here. It does not allow for truncating multiple tables (I do not plan to support that).

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

No branches or pull requests

3 participants