Skip to content

Adds DropIndex Builder#31

Merged
belchior merged 2 commits into
mainfrom
adds-drop-index-builder
Sep 7, 2024
Merged

Adds DropIndex Builder#31
belchior merged 2 commits into
mainfrom
adds-drop-index-builder

Conversation

@belchior
Copy link
Copy Markdown
Owner

@belchior belchior commented Sep 7, 2024

Adds DropIndex Builder

Builder to contruct a DropIndex command. This command is available only for the crate features postgresql and sqlite

Basic API

use sql_query_builder as sql;

let query = sql::DropIndex::new()
  .drop_index("users_name_idx")
  .as_string();

let expected = "DROP INDEX users_name_idx";
assert_eq!(expected, query);

Output

DROP INDEX users_name_idx

@belchior belchior self-assigned this Sep 7, 2024
@belchior belchior added the enhancement New feature or request label Sep 7, 2024
@belchior belchior linked an issue Sep 7, 2024 that may be closed by this pull request
@belchior belchior merged commit 137e223 into main Sep 7, 2024
@belchior belchior deleted the adds-drop-index-builder branch September 7, 2024 22:16
@belchior belchior changed the title Adds drop index command Adds DropIndex Builder Oct 6, 2024
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 DropIndex

1 participant