Clearing Rules
Rules suggestions:
Triggers on:
saving - db entity
updating - db entity
Code source: src/Service/Database/GenerateSuggestedRule.php
The functionality:
gets DB structure and additional data
according to DB platforms the process analyze and generates array with suggestions
Possible templates is located in file:
config/rules/generator_patterns.yaml
Patterns has 4 levels of checking:
term - just check is term in column name: str_contains
column_pattern - check with more flexible pattern: preg_match_all
column_pattern_precision - it precision of result
table_pattern - pattern for checking is table could be processed, ex: employee > name
Rules which must be applied are describing in array: rule
Example:
Example of generated rule array:
\
\
Last updated