Schema Module to check and clean values entered into AuroraDB methods.
use Schema;
# clean value
my $entity="WhateverIsHere";
$entity=$Schema::CLEAN{entity}->($entity);
Module to check and clean values entered into AuroraDB-methods or for users that uses the AuroraDB-class.
Will also set default-values if input value is wrong in some way or missing.
This module is used everywhere in the AuroraDB-module when cleaning and checking of values are needed, so that the definition of it is in one place. The module is also used by the various parts of the AURORA-system when handling these kinds of values.
The various data-structures in order of appearance are:
CLEAN_GLOBAL HASH that defines various global cleaning routines. These are more general cleaning methods that are reused elsewhere, like in the CLEAN-hash of this same module, but also in other modules like SysSchema and also in the AURORA-system itself.
CLEAN Defines various fundamental cleaning routines. Most of these are connected to cleaning needs in the AuroraDB-module. But is it used throughout the AURORA-system. Most of these cleaning methods should not be directly involved in cleaning data placed at specific locations in the AURORA metadata domain. A more suitable place for these are in the SysSchema-module.
CHECK HASH that defines check-routines. Eg. for checking if a UTF-8 string contains wide characters (utf8wide).