@@ -231,7 +231,7 @@ def _insert(self, space_name, values, flags):
231
231
request = RequestInsert (self , space_name , values , flags )
232
232
return self ._send_request (request , space_name )
233
233
234
- def replace (self , space_name , values , return_tuple ):
234
+ def replace (self , space_name , values , return_tuple = True ):
235
235
'''
236
236
Execute REPLACE request.
237
237
It will throw error if there's no tuple with this PK exists
@@ -247,7 +247,7 @@ def replace(self, space_name, values, return_tuple):
247
247
'''
248
248
self ._insert (space_name , values , (BOX_RETURN_TUPLE if return_tuple else 0 ) | BOX_REPLACE )
249
249
250
- def store (self , space_name , values , return_tuple ):
250
+ def store (self , space_name , values , return_tuple = True ):
251
251
'''
252
252
Execute STORE request.
253
253
It will overwrite tuple with the same PK, if it exists, or inserts if not
@@ -263,7 +263,7 @@ def store(self, space_name, values, return_tuple):
263
263
'''
264
264
self ._insert (space_name , values , (BOX_RETURN_TUPLE if return_tuple else 0 ))
265
265
266
- def insert (self , space_name , values , return_tuple ):
266
+ def insert (self , space_name , values , return_tuple = True ):
267
267
'''
268
268
Execute INSERT request.
269
269
It will throw error if there's tuple with same PK exists.
@@ -279,7 +279,7 @@ def insert(self, space_name, values, return_tuple):
279
279
'''
280
280
self ._insert (space_name , values , (BOX_RETURN_TUPLE if return_tuple else 0 ) | BOX_ADD )
281
281
282
- def delete (self , space_name , key , return_tuple = False ):
282
+ def delete (self , space_name , key , return_tuple = True ):
283
283
'''\
284
284
Execute DELETE request.
285
285
Delete single record identified by `key` (using primary index).
@@ -298,7 +298,7 @@ def delete(self, space_name, key, return_tuple=False):
298
298
request = RequestDelete (self , space_name , key , return_tuple )
299
299
return self ._send_request (request , space_name )
300
300
301
- def update (self , space_name , key , op_list , return_tuple = False ):
301
+ def update (self , space_name , key , op_list , return_tuple = True ):
302
302
'''\
303
303
Execute UPDATE request.
304
304
Update single record identified by `key` (using primary index).
0 commit comments