You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Space constraints are needed to ensure that tuples in a space satisfy the specified conditions. Normal constraints define a function that defines the correctness of a tuple. Foreign keys describe the relationship between tables by requiring an external tuple in another spacer with specific fields.
The usual constraints are set for a tuple field or the entire tuple and refer by name to a function from space _func. To be safe for now, it's made to be a Lua function, with the body text right in the _func space.
Constraints for fields work much faster, constraints for tuples are much more versatile.
Definition of done
describe how constraints for fields work
describe how constraints for tuples work
The text was updated successfully, but these errors were encountered:
art-dr
added
feature
A new functionality
reference
[location] Tarantool manual, Reference part
server
[area] Task relates to Tarantool's server (core) functionality
sql
[location] SQL manual
labels
Jan 25, 2022
You're right, the reference somehow slipped out of this task's scope. And the same for foreign keys (#2628). Thanks for noting this.
However, I think a new issue will be easier to plan and track. I'll file it and link to this one.
Related dev. issue(s): tarantool/tarantool#6436
Product: Tarantool
Since: 2.10.0
SME: @ alyapunov
Details
https://docs.google.com/document/d/1EtqfFSIMi6fDqj2y-9WgpunkHsszU65p6LfNly5E9Ag/
Space constraints are needed to ensure that tuples in a space satisfy the specified conditions. Normal constraints define a function that defines the correctness of a tuple. Foreign keys describe the relationship between tables by requiring an external tuple in another spacer with specific fields.
The usual constraints are set for a tuple field or the entire tuple and refer by name to a function from
space _func
. To be safe for now, it's made to be a Lua function, with the body text right in the_func
space.Constraints for fields work much faster, constraints for tuples are much more versatile.
Definition of done
The text was updated successfully, but these errors were encountered: