FhirStream.js
/**
     * Prepares the select statement and stores it on the instance.
     * @returns {Promise<FhirStream>} Resolves with the instance
     */
Prepares the select statement and stores it on the instance.
@returns {Promise} Resolves with the instance
Prepares the select statement and stores it on the instance . @returns { Promise } Resolves with the instance
prepare()
    {
        let { sql, params } = this.builder.compile();
        this.params = params;
        return new Promise((resolve, reject) => {
            this.statement = this.db.prepare(sql, params, prepareError => {
                if (prepareError) {
                    return reject(prepareError);
                }
                resolve(this);
            });
        });
    }
prepare ( ) { let { sql , params } = this . builder . compile ( ) ; this . params = params ; return new Promise ( ( resolve , reject ) => { this . statement = this . db . prepare ( sql , params , prepareError => { if ( prepareError ) { return reject ( prepareError ) ; } resolve ( this ) ; } ) ; } ) ; }
Prepares the select statement and stores it on the instance.
Prepares the select statement and stores it on the instance .