pydrill icon indicating copy to clipboard operation
pydrill copied to clipboard

Pass SQL parameters to PyDrill queries

Open e-compagno opened this issue 5 years ago • 0 comments

Is there any plan to extend drill.query() so that sql parameters can be passed?

In general, this is done with an additional argument in cursor.execute, as

cursor.execute("SELECT ?, ?, ? FROM table", (var1, var2, var3))

e-compagno avatar Oct 05 '20 17:10 e-compagno