prepare (statement, callback) {
    if (typeof callback === 'function') {
      this._prepare(statement, callback)
      return this
    }

    return new shared.Promise((resolve, reject) => {
      this._prepare(statement, err => {
        if (err) return reject(err)
        resolve(this)
      })
    })
  }
/**
   * Prepare a statement.
   *
   * @param {String} statement SQL statement to prepare.
   * @param {basicCallback} [callback] A callback which is called after preparation has completed, or an error has occurred. If omited, method returns Promise.
   * @return {PreparedStatement|Promise}
   */
Prepare a statement.
@param {String} statement SQL statement to prepare.
@param {basicCallback} [callback] A callback which is called after preparation has completed, or an error has occurred. If omited, method returns Promise.
Prepare a statement . @param { String } statement SQL statement to prepare . @param { basicCallback } [ callback ] A callback which is called after preparation has completed or an error has occurred . If omited method returns Promise .
prepare (statement, callback) {
    if (typeof callback === 'function') {
      this._prepare(statement, callback)
      return this
    }
    return new shared.Promise((resolve, reject) => {
      this._prepare(statement, err => {
        if (err) return reject(err)
        resolve(this)
      })
    })
  }
prepare ( statement , callback ) { if ( typeof callback === 'function' ) { this . _prepare ( statement , callback ) return this } return new shared . Promise ( ( resolve , reject ) => { this . _prepare ( statement , err => { if ( err ) return reject ( err ) resolve ( this ) } ) } ) }
Prepare a statement.
Prepare a statement .