We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Sorry if this question is stupid, but does this library support Promise? How to use it
Thanks
The text was updated successfully, but these errors were encountered:
function promiseCopy(data) { return new Promise((resolve, reject) => { copy(data, function (err, result) { if (err) { return reject(err) } resolve(result) }) }) } promiseCopy({ source: { tableName: 'source_table_name', // required }, destination: { tableName: 'destination_table_name', // required }, log: true, // default false create: true // create destination table if not exist }).then(function (results) { // do stuff }).catch(function (err) { //handle error })
Sorry, something went wrong.
No branches or pull requests
Hi,
Sorry if this question is stupid, but does this library support Promise? How to use it
Thanks
The text was updated successfully, but these errors were encountered: