crud
crud copied to clipboard
Easy assess to data stored in vshard cluster
Despite all the retries and checks, sometimes vshard cluster fails to start from config. For example, see https://github.com/tarantool/crud/actions/runs/8541312165/job/23400336786 Log sample: ``` router | 2024-03-26 17:43:18.344 [446474] main/140/main/crud.storage_info storage_info.lua:77 E> Error...
I tried to call insert with crud with unexisted bucket_id and i get follow error: ``` Failed to get router replicaset: nil ``` I found error code: https://github.com/tarantool/crud/blob/master/crud/common/call.lua#L201 I think...
I call crud.get via go-tarantool using the primary key in this way: `client.Do(crud.MakeGetRequest("users").Key([]any{reqUser.Token}), pool.ANY)` As a result, I look at the `tnt_stats_op_total` metric and see that **one call** and **two...
Consider a space `test` with the following format: ``` > crud.select('test')['metadata'] [ {'name': 'id', 'type': 'unsigned'}, {'name': 'bucket_id', 'type': 'unsigned'}, {'type': 'double', 'name': 'data', 'is_nullable': false} ] ``` When trying...
Follows #350 Update conditions support field number ids (moreover, due to compatibility with older Tarantool, all non-number identificators are converted to number ones, see https://github.com/tarantool/crud/blob/3f2db887d13c00a0f1f402f59fba795fb39e5703/crud/common/utils.lua#L591-L618). Select/pairs are not, see #241...
`*_many` operations errors have `operation_data` field to help identify which exact records had errors. This info is used to automatize these processes: for example, in tt-ee `tt crud import`. But...
Let's consider the space with multipart unique key. One can be obtained from the playground with the following patch. ``` diff --git a/doc/playground.lua b/doc/playground.lua index d4e547f..86293a7 100755 --- a/doc/playground.lua +++...
Bug with CRUD 1.4.1 when calling crud.get(space_name, {{}, {}}, { timeout = 0.25 }), causes a bunch of fiber leak errors. MacOS 13 Ventura, Tarantool EE 2.11
Sometimes it is not possible to determine (using returned success list) which tuple is not inserted, because it can be changed by a trigger. In this case returned success list...
``` tarantool> box.info.version --- - 1.10.15-0-ge14d0b4 ... tarantool> crud.update('customers', 1, {{":", "name", 2, 3, "a"}}) --- - null - line: 177 class_name: UpdateError err: 'Failed to update: Unknown UPDATE operation'...