tarantool / tarantool/doc

[2pt] feedback: space_object:frommap() | Tarantool

Open
#2,335 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

add details server
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

Product: Tarantool
Since: 2.4
Audience/target: dev
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/frommap/
SME: @ Totktonada

Details

Missing info on behavior in case of an error.

<…>ь кортеж); если {table = true}, то возвращается таблица.

**|возвращает:кортеж или таблица.

тип возвращаемого значения:
 кортеж или таблица

Возможные ошибки: отсутствует объект спейса space_object, или в спейсе нет формата; «unknown field» (неизвестное поле).|**
Пример:
COPYformat1 = {{name='a',type='unsigned'},{name='b',typ<…>

https://www.tarantool.io/ru/doc/latest/reference/reference_lua/box_space/frommap/

При ошибках frommap возвращает nil, err (см. https://github.com/tarantool/tarantool/commit/f89b5ab0a2fc0cd4b5787603def77067d5539e3f)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the English root document for box_space:frommap() and compare it with the Russian page and the linked Tarantool commit f89b5ab0a2fc0cd4b5787603def77067d5539e3f. Document the error behavior described in the issue, including that frommap returns nil and err, and ensure the possible-errors section is accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.