Closed smaspe closed 3 years ago
Yep, it should be easy to implement using import_params
and export_params
.
Do you prefer to have comment in the beginning, at the end or somewhere in the middle of query? :)
beginning is fine :)
So, for import
, you'd recommend adding a key to import_params
and use it here: https://github.com/badoo/pyexasol/blob/da486a18313d3cd4b40280ade66f5f21b0c2f120/pyexasol/http_transport.py#L161
for export
, use the same idea here: https://github.com/badoo/pyexasol/blob/da486a18313d3cd4b40280ade66f5f21b0c2f120/pyexasol/http_transport.py#L105
And add a bit of documentation here: https://github.com/badoo/pyexasol/blob/da486a18313d3cd4b40280ade66f5f21b0c2f120/docs/HTTP_TRANSPORT.md#parameters
Would that be sufficient?
comment
for export_params
, import_params
.\n
, */
or other ways for SQL injection.Thank you.
Live in 0.16.1
. Enjoy! :)
That was fast! thanks :)
For purposes of auditing and profiling, I would like to add comments to some queries.
(For clarity, this type of comments: https://docs.exasol.com/sql_references/basiclanguageelements.htm#Comments_in_SQL)
For cases where the query is directly executed, like when running
connection.execute("SELECT * FROM FOO")
, this is easy.However, for
import_*
andexport_*
function, as well as for metadata access functions, the actual query is built in pyexasol, without possibility for us to add comments to it.Is that something that you'd be willing to integrate in pyexasol? If so, I'd be willing to help