|
|
@@ -124,13 +124,6 @@ class HS2Api(Api):
|
|
|
functions = snippet['properties'].get('functions', None)
|
|
|
database = snippet.get('database') or 'default'
|
|
|
|
|
|
- if settings:
|
|
|
- settings = [{'key': s.rsplit('=', 1)[0], 'value': s.rsplit('=', 1)[1]} for s in settings] # TODO integrate with new binding
|
|
|
- if file_resources:
|
|
|
- file_resources = [{'type': 'JAR', 'path': f} for f in file_resources] # TODO support FILE ARCHIVE
|
|
|
- if functions:
|
|
|
- functions = [{'name': f.rsplit(' ', 1)[0], 'class_name': f.rsplit(' ', 1)[1]} for f in functions] # TODO protect for index out of bounds
|
|
|
-
|
|
|
query = hql_query(statement, query_type=QUERY_TYPES[0], settings=settings, file_resources=file_resources, functions=functions, database=database)
|
|
|
|
|
|
try:
|