def _sqltype(_type):
    """ Returns the corresponding Sqlite datatype given a Python type.

        >>> _sqltype(int)
        'INTEGER'
        >>> _sqltype(object)
        'BLOB'
    """
    if int == _type:
        return 'INTEGER'
    if float == _type:
        return 'REAL'
    if str == _type:
        return 'TEXT'
    if bytes == _type:
        return 'BLOB'
    return 'BLOB'
