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

Improve row decoding in v3 API #102

Merged
merged 5 commits into from Jul 30, 2023
Merged

Improve row decoding in v3 API #102

merged 5 commits into from Jul 30, 2023

Conversation

simolus3
Copy link
Contributor

In the v3 API, we're using the simple query protocol when there are no variables in the query. Unfortunately, rows are always returned in the textual format with that protocol. As the binary decoder is more efficient and supports more types, we'd like to use that one instead.

For users that know they won't need any rows, I've added the schemaOnly parameter to execute. When enabled and there are no parameters, we can still use the simple query protocol as an optimization.

This fixes #101.

lib/postgres_v3_experimental.dart Outdated Show resolved Hide resolved
lib/postgres_v3_experimental.dart Outdated Show resolved Hide resolved
@isoos isoos merged commit 5ab8093 into isoos:master Jul 30, 2023
1 check passed
@isoos
Copy link
Owner

isoos commented Jul 30, 2023

published as 2.6.2

@simolus3 simolus3 deleted the fix-pg-notify branch July 30, 2023 21:40
@simolus3
Copy link
Contributor Author

Awesome, thanks!

@isoos
Copy link
Owner

isoos commented Jul 30, 2023

Thanks for the great work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants