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_digits(number_digits, min_digits=0, max_digits=20)¶
Validates number of rounding digits is within the min/max value.
- Parameters:
- Returns:
True or False, based on if the number of rounding digits is within the min/max value and if it is an integer
- Return type: