You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# It is possible to bind only one value. The it must be provided as a singleton list.
257
-
# This is because in JSONiq, an item is the same a sequence of one item.
258
-
rumble.bind('$c', [42])
259
-
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
260
-
261
-
# For convenience and code readability, you can also use bindOne().
262
-
rumble.bindOne('$c', 42)
263
-
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
264
-
265
221
```
266
222
# How to learn JSONiq, and more query examples
267
223
268
224
Even more queries can be found [here](https://colab.research.google.com/github/RumbleDB/rumble/blob/master/RumbleSandbox.ipynb) and you can look at the [JSONiq documentation](https://www.jsoniq.org) and tutorials.
269
225
270
226
# Last updates
271
227
272
-
## Version 0.1.0 alpha 12
273
-
- Allow to bind JSONiq variables to Python values (mapping Python lists to sequences of items). This makes it possible to manipulate Python values directly with JSONiq and even without any knowledge of Spark at all.
274
-
- renamed bindDataFrameAsVariable() to bind(), which can be used both with DataFrames and Python lists.
275
-
- add bindOne() for binding a single value to a JSONiq variable.
276
-
277
228
## Version 0.1.0 alpha 11
278
229
- Fix an issue when feeding a DataFrame output by rumble.jsoniq() back to a new JSONiq query (as a variable).
0 commit comments