createTable(model, cb) {
    debug('IBMiConnector.createTable ', model);
    const tableName = this.tableEscaped(model);
    const columnDefinitions = this.buildColumnDefinitions(model);
    const tasks = [];

    tasks.push((callback) => {
      const sql = `CREATE TABLE ${tableName} (${columnDefinitions})`;
      this.execute(sql, callback);
    });

    const indexes = this.buildIndexes(model);
    indexes.forEach((i) => {
      tasks.push((callback) => {
        this.execute(i, callback);
      });
    });

    async.series(tasks, cb);
  }
/**
   * Create the table for the given model
   *
   * @param {string} model The model name
   * @param {Function} [cb] The callback function
   */
Create the table for the given model
@param {string} model The model name
@param {Function} [cb] The callback function
Create the table for the given model @param { string } model The model name @param { Function } [ cb ] The callback function
createTable(model, cb) {
    debug('IBMiConnector.createTable ', model);
    const tableName = this.tableEscaped(model);
    const columnDefinitions = this.buildColumnDefinitions(model);
    const tasks = [];
    tasks.push((callback) => {
      const sql = `CREATE TABLE ${tableName} (${columnDefinitions})`;
      this.execute(sql, callback);
    });
    const indexes = this.buildIndexes(model);
    indexes.forEach((i) => {
      tasks.push((callback) => {
        this.execute(i, callback);
      });
    });
    async.series(tasks, cb);
  }
createTable ( model , cb ) { debug ( 'IBMiConnector.createTable ' , model ) ; const tableName = this . tableEscaped ( model ) ; const columnDefinitions = this . buildColumnDefinitions ( model ) ; const tasks = [ ] ; tasks . push ( ( callback ) => { const sql = ` ${ tableName } ${ columnDefinitions } ` ; this . execute ( sql , callback ) ; } ) ; const indexes = this . buildIndexes ( model ) ; indexes . forEach ( ( i ) => { tasks . push ( ( callback ) => { this . execute ( i , callback ) ; } ) ; } ) ; async . series ( tasks , cb ) ; }
Create the table for the given model
 @param {string} model The model name
 @param {Function} [cb] The callback function
Create the table for the given model @param { string } model The model name @param { Function } [ cb ] The callback function