All URIs are relative to https://webapi.activequerybuilder.com
Method | HTTP request | Description |
---|---|---|
get_query_columns_post | POST /getQueryColumns | |
transform_sql_post | POST /transformSQL |
list[QueryColumn] get_query_columns_post(query)
Returns list of columns for the given SQL query.
import time
import webapi_active_query_builder
from webapi_active_query_builder.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = webapi_active_query_builder.ActiveQueryBuilderApi()
query = webapi_active_query_builder.SqlQuery() # SqlQuery | Information about SQL query and it's context.
try:
api_response = api_instance.get_query_columns_post(query)
pprint(api_response)
except ApiException as e:
print "Exception when calling ActiveQueryBuilderApi->get_query_columns_post: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
query | SqlQuery | Information about SQL query and it's context. |
No authorization required
- Content-Type: application/json, text/xml
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransformResult transform_sql_post(transform)
Transforms the given SQL query according to the commands provided in this request. You can add constraints, hide some of the resultset columns, chang sorting or limit rows of resultset. All transformations can only lead to reorganization or limitation of the resultset data. This means that it's impossible to get transformed SQL that reveals any other data than the data retutned by original query.
import time
import webapi_active_query_builder
from webapi_active_query_builder.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = webapi_active_query_builder.ActiveQueryBuilderApi()
transform = webapi_active_query_builder.Transform() # Transform | SQL transformation parameters and commands.
try:
api_response = api_instance.transform_sql_post(transform)
pprint(api_response)
except ApiException as e:
print "Exception when calling ActiveQueryBuilderApi->transform_sql_post: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
transform | Transform | SQL transformation parameters and commands. |
No authorization required
- Content-Type: application/json, text/xml
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]