A JavaScript (Node.js) library for communicating with Db2 for IBM i, with support for queries, procedures, and much more. Uses traditional callback-style syntax
MIT License
38
stars
23
forks
source link
Making sure data remains until Buffer is deleted in JS environment #87
The data stored in the Buffer is freed, but we want to retain that data until the Buffer no longer has any references. Copy the data to a new array of data, then pass a Finalizer function to the Buffer, which will run when the Buffer is deleted to also delete the underlying data.
The data stored in the Buffer is freed, but we want to retain that data until the Buffer no longer has any references. Copy the data to a new array of data, then pass a Finalizer function to the Buffer, which will run when the Buffer is deleted to also delete the underlying data.
Fixes #86