mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 16:40:35 +00:00
Add a function that will be used to convert expressions received from the parser to restrictions. Currently parser creates relations with expressions inside and then those relations are converted to restrictions. Once this function is implemented we will be able to skip creating relations altogether and convert straight from expression to restriction. This will allow us to remove the relation class. Further functionality will be implemented in the following commits. This commit implements converting single column relations to expressions. The code is mostly taken from functions in single_column_relation.hh, because we are replicating functionality of the functions called single_column_relation::new_XX_restriction. Signed-off-by: cvybhu <jan.ciolek@scylladb.com>