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
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ Promise resolve an array of deleted tuples.
77
77
78
78
**update(spaceId: Number or String, indexId: Number or String, key: tuple, ops) : Promise(Array of tuples)**
79
79
80
-
Ops: http://tarantool.org/doc/book/box/box_space.html(search for update here).
80
+
Ops: http://tarantool.org/doc/book/box/box_space.html(search for update here).
81
81
82
82
Promise resolve an array of updated tuples.
83
83
@@ -87,12 +87,14 @@ So it's insert. More you can read here: http://tarantool.org/doc/book/box/box_sp
87
87
88
88
Promise resolve a new tuple.
89
89
90
-
**upsert(spaceId: Number or String, tuple: tuple) : Promise(Tuple)**
90
+
**upsert(spaceId: Number or String, key: tuple, ops: array of operations, tuple: tuple) : Promise()**
91
91
92
-
So it's insert. More you can read here: http://tarantool.org/doc/book/box/box_space.html
92
+
About operation: https://github.com/tarantool/tarantool/issues/905
93
93
94
-
Promise resolve a new tuple.
94
+
Ops: http://tarantool.org/doc/book/box/box_space.html (search for update here).
95
95
96
+
Promise resolve nothing.
97
+
Knowing issues if it cannot be updated by your ops it wouldn't return error just only at tarantool side but not at protocol. See https://github.com/tarantool/tarantool/issues/966
96
98
97
99
**replace(spaceId: Number or String, tuple: tuple) : Promise(Tuple)**
98
100
@@ -145,6 +147,12 @@ Then just a use **npm test** and it will use mocha and launch test.
145
147
146
148
It's ok you can do whatever you need. I add log options for some technical information it can be help for you. If i don't answer i just miss email :( it's a lot emails from github so please write me to newbiecraft@gmail.com directly if i don't answer in one day.
147
149
150
+
##Changelog
151
+
152
+
###0.3.0
153
+
Add upsert operation.
154
+
Key is now can be just a number.
155
+
148
156
##ToDo
149
157
150
158
Test **eval** methods and make benchmarks and improve performance.
0 commit comments