tarantool / crud

Easy assess to data stored in vshard cluster
BSD 2-Clause "Simplified" License
40 stars 15 forks source link

Support use_tomap everywhere #367

Open DifferentialOrange opened 1 year ago

DifferentialOrange commented 1 year ago

crud.pairs has use_tomap option allowing to return tuples as key-value maps instead of arrays, since there is no way to do unflatten_rows while calling pairs.

But this feature seems useful by itself. @WeCodingNow had reported that he uses crud.pairs():totable() instead of crud.select since it is impossible to write an oneliner that returns tuples as key-value maps with crud.select. There doesn't seem to be any harm in implementing use_tomap, so let's support it.