xmunoz / sodapy

Python client for the Socrata Open Data API
MIT License
402 stars 114 forks source link

Support to pass in variables to query. #49

Closed kgpavinash closed 5 years ago

kgpavinash commented 5 years ago

I am not sure if this is possible but it would be really nice to have this functionality:

client = Socrata(....) var x = .... result = client.get(some_identifier, query='SELECT * WHERE something = %s, (x))

Is there a way to pass in variables to the sql query?

kgpavinash commented 5 years ago

Actually I just realized that the query is a string and that I can append the variables to it earlier.