Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Feb 27, 2023

Prepared statements can now send parameters in binary as well as in the default text format. To do this, wrap the binary data in an instance of the binary_param class, which is just a wrapper of std::string_view used to signal to the exec_prepared() function that this parameter should be sent in binary.

You can mix and match any number of parameters in text or binary format.

It isn't possible any more to use exec_prepared() without any parameters, but that wasn't use (and doesn't make much sense anyway), so no loss there.

Prepared statements can now send parameters in binary as well as in the
default text format. To do this, wrap the binary data in an instance of
the binary_param class, which is just a wrapper of std::string_view used
to signal to the exec_prepared() function that this parameter should be
sent in binary.

You can mix and match any number of parameters in text or binary format.

It isn't possible any more to use exec_prepared() without any
parameters, but that wasn't use (and doesn't make much sense anyway), so
no loss there.
@joto
Copy link
Collaborator Author

joto commented Feb 27, 2023

Closing because it needs other changes first.

@joto joto closed this Feb 27, 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.

1 participant