comparison load_db.py @ 2:fb8484ee54d8 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit 4a3c9f195ba5d899b1a1ce5e80281cdf230f456a
author iuc
date Mon, 23 Oct 2017 13:27:42 -0400
parents 8a33b442ecd9
children 33d61c89fb8d
comparison
equal deleted inserted replaced
1:8a33b442ecd9 2:fb8484ee54d8
164 def getValueType(val): 164 def getValueType(val):
165 if val or 0. == val: 165 if val or 0. == val:
166 try: 166 try:
167 int(val) 167 int(val)
168 return 'INTEGER' 168 return 'INTEGER'
169 except: 169 except ValueError:
170 try: 170 try:
171 float(val) 171 float(val)
172 return 'REAL' 172 return 'REAL'
173 except: 173 except ValueError:
174 return 'TEXT' 174 return 'TEXT'
175 return None 175 return None
176 176
177 177
178 def get_column_def(file_path, table_name, skip=0, comment_char='#', 178 def get_column_def(file_path, table_name, skip=0, comment_char='#',