Skip to content

Adds Mysql syntax to DropTable builder #51

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

Merged
merged 1 commit into from
Apr 19, 2025
Merged

Adds Mysql syntax to DropTable builder #51

merged 1 commit into from
Apr 19, 2025

Conversation

belchior
Copy link
Owner

Builder API

let query = sql::DropTable::new()
  // at least one of methods
  .drop_table("users_name_idx")
  .drop_table_if_exists("users_login_idx")
  .as_string();

let expected_query = "DROP TABLE IF EXISTS users_name_idx, users_login_idx";

assert_eq!(expected_query, query);

Reference

@belchior belchior changed the title Mysql drop table Adds Mysql syntax to DropTable builder Apr 19, 2025
@belchior belchior changed the base branch from main to mysql April 19, 2025 17:44
@belchior belchior self-assigned this Apr 19, 2025
@belchior belchior added the enhancement New feature or request label Apr 19, 2025
@belchior belchior merged commit dbb97ff into mysql Apr 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant