Skip to content
Snippets Groups Projects
Commit 1e099019 authored by Mergen Imeev's avatar Mergen Imeev Committed by Vladimir Davydov
Browse files

box: introduce SQL_EXPR to field constraints

After this patch, it will be possible to use the SQL_EXPR functions not
only for tuple constraints, but also for field constraints.

Needed for #6986

@TarantoolBot document
Title: SQL_EXPR functions

Now it is possible to create functions with `SQL_EXPR` language. The
`body` field of the function definition is the SQL expression.
Currently, these functions can only be used as constraints on tuples and
fields, as there is no interface to define argument names and types
otherwise.

If the SQL_EXPR function is set as a constraint on a field, the function
will throw a validation error if more than one variable is used in the
function. However, the variable name of the only variable will only be
checked if the SQL_EXPR function was created as a field constraint from
SQL.
parent b54c8b3b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment