-
Notifications
You must be signed in to change notification settings - Fork 7
Client: support execute and prepare #74
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
Conversation
c109717 to
c5c62e4
Compare
c5c62e4 to
bb47ab2
Compare
83c5c9d to
8f68bcb
Compare
8f68bcb to
6169cf5
Compare
Data contains a pair of iterators, which are considered to be light - let's copy iterator before decoding data to allow to decode the same data several times (or it can be decoded, and then encoded to send to another tarantool from router).
6169cf5 to
6fece40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks great, and very clean!
There was an explicit request that we promised to fulfill: please add some examples to the ./examples. Maybe a separate example or as part of the Simple one.
The patch provides client with execute and prepare requests. Execute allows to pass an SQL statement or id of a prepared statement and parameters for it. Response body is populated with sql fields. Co-authored-by: AnastasMIPT <[email protected]>
6fece40 to
21776e2
Compare
|
@CuriousGeorgiy Added a new example. Please check if it clearly explains all capabilities of SQL in tntcxx. |
decc45b to
ba39ffd
Compare
The commit introduces new example `Sql`, which demonstrates usage of prepare and execute requests - in other words, it shows how to use SQL with tntcxx. The example is designed to cover all possible sql metadata fields.
ba39ffd to
cd8b81e
Compare
The patch provides client with execute and prepare requests. Execute allows to pass an SQL statement or id of a prepared statement and parameters for it. Response body is populated with sql fields.
Closes #34