Giter VIP home page Giter VIP logo

Comments (9)

sagiegurari avatar sagiegurari commented on May 27, 2024

wasn't planning to since I prefer async lib, but I can do that since I see many wanted it for orabledb.
so guess in around a day or 2 I'll publish something.

from simple-oracledb.

lucasmartinez avatar lucasmartinez commented on May 27, 2024

Great job. Your library helped me a lot. I would like to use Promise in all my server functions to standarize the way my product is developed having Promise in front aplication and in my backend too. This way the code in front and backend are the same.

from simple-oracledb.

sagiegurari avatar sagiegurari commented on May 27, 2024

All done and published (version 0.1.95)
Please check on your end that it works good.

from simple-oracledb.

sagiegurari avatar sagiegurari commented on May 27, 2024

version 0.1.97 now also automatically promisify any extension on top simple-oracledb, for example oracledb-upsert

from simple-oracledb.

lucasmartinez avatar lucasmartinez commented on May 27, 2024

Bravo. Great Job.

from simple-oracledb.

lucasmartinez avatar lucasmartinez commented on May 27, 2024

One more question. Is there any way to log all executed querys ? Now I have a custom function to show in the console the execute query or PL/SQL block. But I would like to activate some DEBUG flag globally to show or hide the executed query by any function.

from simple-oracledb.

sagiegurari avatar sagiegurari commented on May 27, 2024

I can add it. should be very simple.
will do it probably tomorrow using the debug flag https://github.com/sagiegurari/simple-oracledb/#debug

from simple-oracledb.

lucasmartinez avatar lucasmartinez commented on May 27, 2024

Great. I suggest to add some debug level to show the sentence ( one debug level ) and bind values ( another debug level ). maybe some extra values like connected user, date, hour, etc.

from simple-oracledb.

sagiegurari avatar sagiegurari commented on May 27, 2024

if you are now running with the NODE_DEBUG flag, all SQLs that go through the connection.execute (that means also all extended connection operations such as query/insert/batchXXX etc...) will be printed with bind params.
However, it does not cover the connection.queryStream function found in the oracledb connection object since I don't use it in simple-oracledb (although funny thing is that I wrote it for oracledb via pull request).
Hope it solves your issue.
If there are problems with that debug printing, please open a new issue.

from simple-oracledb.

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.