We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related dev. issue(s): tarantool/tarantool@7a5f36c
Product: Tarantool Since: 3.5 Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/ SME: @ locker
Since: 3.5
To simplify validation of tuples without needing to create or insert them, a new validate method was added to tuple.format objects.
validate
tuple.format
This method verifies that a tuple (or a Lua table representing a tuple) conforms to the format. If the tuple is invalid, an error is raised.
Example:
format = box.tuple.format.new({ {name = 'id', type = 'unsigned'}, {name = 'name', type = 'string'}, }) format:validate({1, 'A'}) -- ok format:validate({true, 'A'}) -- error
It is suggested that a new page on the same level with https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/new/ is to be created for the box.tuple.format().
box.tuple.format()
This page will contain current ticket information.
A reference to this page must be added in the note of https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/format/. This page may also be a donor of general description.
Do together with #5135
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Related dev. issue(s): tarantool/tarantool@7a5f36c
Product: Tarantool
Since: 3.5
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/
SME: @ locker
Details
Since: 3.5
To simplify validation of tuples without needing to create or insert them,
a new
validate
method was added totuple.format
objects.This method verifies that a tuple (or a Lua table representing a tuple)
conforms to the format. If the tuple is invalid, an error is raised.
Example:
TW guidelines
It is suggested that a new page on the same level with https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/new/ is to be created for the
box.tuple.format()
.This page will contain current ticket information.
A reference to this page must be added in the note of https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_tuple/format/. This page may also be a donor of general description.
Do together with #5135
The text was updated successfully, but these errors were encountered: