Skip to content

adds methods window and where_and #20

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
Nov 25, 2023

Conversation

belchior
Copy link
Owner

@belchior belchior commented Nov 25, 2023

New features

Added window method on Select builder

use sql_query_builder as sql;

let query = sql::Select::new()
  .window("win")
  .as_string();

Added where_and method on Select, Delete and Update Builders

use sql_query_builder as sql;

let select_query = sql::Select::new()
  .from("carts")
  .where_clause("login = $1")
  .where_and("session_id = $2")
  .where_and("created_at >= current_date")
  .as_string();

@belchior belchior self-assigned this Nov 25, 2023
@belchior belchior linked an issue Nov 25, 2023 that may be closed by this pull request
@belchior belchior merged commit fb14c80 into main Nov 25, 2023
@belchior belchior deleted the adds-methods-window-and-where_and branch November 25, 2023 14:27
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.

[postgresql] Adds window method to Select builder
1 participant