Replies: 2 comments
-
Playing around with this I see the .take() method lets you play around with the result including trying to deserialize it into an expected type, e.g.
For these two queries it gives the following output:
|
Beta Was this translation helpful? Give feedback.
-
This is not specific to the Rust SDK. The query and the bindings are simply forwarded to SurrealDB. Trying to correctly determine if parameters are unused on the SDK side is not always efficient because parameters may contain subqueries and such subqueries may refer to other parameters only known by the server. If this is a feature you really want to see, I suggest opening a feature request for this to be implemented on the compute layer. |
Beta Was this translation helpful? Give feedback.
-
To my surprise neither of the bellow statement fail. In the first one I bound two values while the statement only used one in the second one I forgot to bind any value. Neither cases failed. I am bit surprised why? And I am even more interested how to avoid such mistakes?
Beta Was this translation helpful? Give feedback.
All reactions