Module: validation¶
This module provides functions used to validate various data types used within the library.
Functions¶
Type validation module.
- wwdtm.validation.check_database_version(connect_dict=None, database_connection=None)¶
Checks current database version against minimum database version.
- Parameters:
- Returns:
True or False, based on if the current database version meets the library's minimum database version
- Return type:
- wwdtm.validation.valid_int_id(int_id)¶
Validates an ID value as a signed 32-bit integer used in ID fields in MySQL tables.
- wwdtm.validation.valid_rounding_decimal_places(number_decimal_places, min_decimal_places=0, max_decimal_places=20)¶
Validates that number of decimal places is within the min/max values.
- Parameters:
- Returns:
True or False, based on if the number of decimal places is within the min/max value and if it is an integer
- Return type: