Skip to content
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

feat: add raw_sql API #3007

Merged
merged 1 commit into from
Feb 18, 2024
Merged

feat: add raw_sql API #3007

merged 1 commit into from
Feb 18, 2024

Conversation

abonander
Copy link
Collaborator

@abonander abonander commented Jan 23, 2024

This is meant to be much easier to discover than the current approach of directly invoking Executor methods.

In addition, I'm improving documentation for the query*() functions across the board.

This also deprecates .execute_many() and .fetch_many() on these types because only the SQLite driver actually ever supported multiple statements in a single query string with the prepared statement interface, and that's just a consequence of the fact that it handles all statements as prepared statements.

@abonander abonander force-pushed the ab/raw-sql-api branch 3 times, most recently from c6ab5a0 to ea75b92 Compare January 23, 2024 04:08
@jplatte
Copy link
Contributor

jplatte commented Jan 26, 2024

Not sure how useful this piece of feedback is, but from what I could gather when skimming the diff, this (mainly the updated documentation) is a massive QoL improvement and while I didn't personally need it, I can see how it will make SQLx a lot more approachable for some people!

@abonander abonander force-pushed the ab/raw-sql-api branch 3 times, most recently from 7cb8f6c to 300da2a Compare January 31, 2024 07:13
@abonander abonander force-pushed the ab/raw-sql-api branch 7 times, most recently from 367d65a to d138ced Compare February 16, 2024 06:06
@abonander abonander marked this pull request as ready for review February 16, 2024 06:06
@abonander abonander force-pushed the ab/raw-sql-api branch 2 times, most recently from b5dabaf to 06aa038 Compare February 16, 2024 06:22
This is meant to be much easier to discover than the current approach of directly invoking `Executor` methods.

In addition, I'm improving documentation for the `query*()` functions across the board.
@abonander
Copy link
Collaborator Author

Changed some tests to use raw_sql to make sure it works.

@abonander abonander merged commit ca518b7 into main Feb 18, 2024
64 checks passed
@abonander abonander deleted the ab/raw-sql-api branch February 18, 2024 23:38
kukabi pushed a commit to helikon-labs/sqlx that referenced this pull request Feb 22, 2024
This is meant to be much easier to discover than the current approach of directly invoking `Executor` methods.

In addition, I'm improving documentation for the `query*()` functions across the board.
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.

2 participants