pystratum_mysql.helper package

Submodules

pystratum_mysql.helper.MySqlDataTypeHelper module

class pystratum_mysql.helper.MySqlDataTypeHelper.MySqlDataTypeHelper[source]

Bases: pystratum_common.helper.DataTypeHelper.DataTypeHelper

Utility class for deriving information based on a MySQL data type.

column_type_to_python_type(data_type_info: Dict[str, Any]) → str[source]

Returns the corresponding Python data type of a MySQL data type.

Parameters:data_type_info (dict) – The MySQL data type metadata.
Return type:str
column_type_to_python_type_hint(data_type_info: Dict[str, Any]) → str[source]

Returns the corresponding Python data type hinting of a MySQL data type.

Parameters:data_type_info (dict) – The MySQL data type metadata.
Return type:str

pystratum_mysql.helper.MySqlRoutineLoaderHelper module

class pystratum_mysql.helper.MySqlRoutineLoaderHelper.MySqlRoutineLoaderHelper(io: pystratum_backend.StratumStyle.StratumStyle, dl: pystratum_mysql.MySqlMetadataDataLayer.MySqlMetadataDataLayer, routine_filename: str, routine_file_encoding: str, pystratum_old_metadata: Optional[Dict[KT, VT]], replace_pairs: Dict[str, Any], rdbms_old_metadata: Optional[Dict[KT, VT]], sql_mode: str, character_set: str, collate: str)[source]

Bases: pystratum_common.helper.RoutineLoaderHelper.RoutineLoaderHelper

Class for loading a single stored routine into a MySQL instance from a (pseudo) SQL file.

Module contents