get_type_func

felis.db.sqltypes.get_type_func(type_name)

Find the function which creates a specific SQL type by its Felis type name.

Parameters:

type_name (str) – The name of the type function to get.

Returns:

The function for the type.

Return type:

Callable

Raises:

ValueError – Raised if the type name is not recognized.

Notes

This maps the type name to the function that creates the SQL type. This is the main way to get the type functions from the type names.