pwtools.sql.find_sqltype

pwtools.sql.find_sqltype(val)[source]

Find sqlite data type which matches the type of val.

Parameters:

val (any python type)

Returns:

sqltype – String with sql type which can be used to set up a sqlile table

Return type:

str