Module helper

Source

FunctionsΒ§

convert_expr_to_scalar_value
Convert an MySQL expression to a scalar value. It automatically handles the conversion of strings to numeric values.
convert_value
Convert [ParamValue] into Value according to param type. It will try it’s best to do type conversions if possible
covert_bytes_to_timestamp πŸ”’
fix_placeholder_types
Give placeholder that cast to certain type data_type the same data type as is cast to
format_placeholder
Returns the placeholder string β€œ$i”.
replace_placeholders
Replace all the β€œ?” placeholder into β€œ$i” in SQL, returns the new SQL and the last placeholder index.
transform_placeholders
Transform all the β€œ?” placeholder into β€œ$i”. Only works for Insert,Query and Delete statements.
visit_placeholders πŸ”’