Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

async.each javascript

drop_mviews(mviews, callback) {
  var _this9 = this;

  async.each(mviews, function (view, next) {
   var query = util.format('DROP MATERIALIZED VIEW IF EXISTS "%s";', view);
   _this9._driver.execute_definition_query(query, next);
  }, function (err) {
   if (err) callback(buildError('model.tablecreation.matviewdrop', err));else callback();
  });
 }
Source by www.tabnine.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
3+9 =