Giter Site home page Giter Site logo

Comments (2)

dlwicksell avatar dlwicksell commented on May 31, 2024

Lock and unlock are different from a transaction. Transactions are not supported by NodeM, for technical reasons. Though you can use NodeM, with the function API, to call MUMPS code that uses fully ACID transactions.

Your error is because the lock and unlock APIs require an argument which is a JavaScript object, containing the name of the global, and optionally, the global subscripts, that you wish to lock or unlock. E.g.

db.lock({global: 'dlw'});
db.unlock({global: 'dlw', subscripts: [1, 2, 3]});

Or you can call unlock with no arguments, and it will release all of the locks in the current process. The documentation for this is the same as the Caché documentation, which is linked in the README.md file at the root of NodeM.

from nodem.

wpoosanguansit avatar wpoosanguansit commented on May 31, 2024

Thank you for your help. I definitely have got a lot to unlearn and learn. It would be great if there would be a place where newbies like me can pick up on what is a recommended way to work with the library.

from nodem.

Related Issues (15)

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.