Git Product home page Git Product logo

Comments (5)

littleK0i avatar littleK0i commented on September 13, 2024

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? :)

from pyexasol.

smaspe avatar smaspe commented on September 13, 2024

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?

from pyexasol.

littleK0i avatar littleK0i commented on September 13, 2024
  1. Extra argument comment for export_params, import_params.
  2. Additional condition in query builders for EXPORT and IMPORT to use the extra argument.
  3. Validation, to make sure comment will not contain \n, */ or other ways for SQL injection.
  4. Documentation.
  5. A few lines in http_transport examples.

Thank you.

from pyexasol.

littleK0i avatar littleK0i commented on September 13, 2024

Live in 0.16.1. Enjoy! :)

from pyexasol.

smaspe avatar smaspe commented on September 13, 2024

That was fast! thanks :)

from pyexasol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.