[ckan-dev] Catch Select-Queries On Datastore
Hakan Solmaz
hakansolmaz06 at outlook.com
Thu Mar 28 15:42:20 UTC 2019
Hi everyone,
I set up the datastore with datapusher in my local ckan-instance. So if I upload e.g. a CSV file over the UI it is converted into a database table. As we know, you can use the UI to query a subset of a dataset. My aim is to store this Select-Queries inside the datastore in an additional database table . So to this I should hook into ckan and "catch" the Select queries. Ckan has Datastore API and there is datastore_search method. This method returns query_dict. This is just a dictionary and this should be converted into a sql query. Is there another option to this? Is there a method in CKAN that already has these queries as SQL queries?
Kind Regards,
Hakan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20190328/2a80cf43/attachment.html>
More information about the ckan-dev
mailing list