Skip to content

Makes the default values clause available to insert command#19

Merged
belchior merged 1 commit into
mainfrom
default-values-clause
Sep 29, 2023
Merged

Makes the default values clause available to insert command#19
belchior merged 1 commit into
mainfrom
default-values-clause

Conversation

@belchior
Copy link
Copy Markdown
Owner

@belchior belchior commented Sep 27, 2023

New features

The method default_values() are now available in the Insert builder.

use sql_query_builder as sql;

let insert_query = sql::Insert::new()
  .insert_into("users")
  .default_values()
  .as_string();

Output

INSERT INTO users DEFAULT VALUES;

@belchior belchior self-assigned this Sep 27, 2023
@belchior belchior linked an issue Sep 27, 2023 that may be closed by this pull request
@belchior belchior linked an issue Sep 29, 2023 that may be closed by this pull request
@belchior belchior merged commit f344ada into main Sep 29, 2023
@belchior belchior deleted the default-values-clause branch September 29, 2023 09:37
@belchior belchior changed the title Makes the default values clause available to standard syntax Makes the default values clause available to insert command Sep 29, 2023
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 default_values method to Insert builder

1 participant