Skip to content

Adds DropTable builder #30

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
Sep 5, 2024
Merged

Adds DropTable builder #30

merged 1 commit into from
Sep 5, 2024

Conversation

belchior
Copy link
Owner

@belchior belchior commented Sep 1, 2024

Adds DropTable builder

Builder to contruct a drop index command. Available only for the crate features postgresql and sqlite

Basic API

use sql_query_builder as sql;

let query = sql::DropTable::new()
  .drop_table("users")
  .as_string();

let expected = "DROP TABLE users";

assert_eq!(expected, query);

Output

DROP TABLE users

@belchior belchior self-assigned this Sep 1, 2024
@belchior belchior added the enhancement New feature or request label Sep 1, 2024
@belchior belchior linked an issue Sep 1, 2024 that may be closed by this pull request
@belchior belchior changed the title adds DropTable builder Adds DropTable builder Sep 1, 2024
@belchior belchior force-pushed the adds-drop-table-builder branch from b1d578a to 4770958 Compare September 4, 2024 09:22
@belchior belchior merged commit 7e3a245 into main Sep 5, 2024
1 check passed
@belchior belchior deleted the adds-drop-table-builder branch September 5, 2024 10:21
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
Development

Successfully merging this pull request may close these issues.

Add builder DropTable
1 participant