def sync_type(ks_name, type_model, connection=None):
 if (not _allow_schema_modification()):
  return
 if (not issubclass(type_model, UserType)):
  raise CQLEngineException('Types must be derived from base UserType.')
 _sync_type(ks_name, type_model, connection=connection)

def sync_type ( ks_name , type_model , connection = None ) : if ( not _allow_schema_modification ( ) ) : return if ( not issubclass ( type_model , UserType ) ) : raise CQLEngineException ( 'Types must be derived from base UserType.' ) _sync_type ( ks_name , type_model , connection = connection )
inspects the type_model and creates / updates the corresponding type .