lib/dataset/sql.js
function (type) {
            var sql = [("" + type).toUpperCase()];
            try {
                this._static[sql + "_CLAUSE_METHODS"].forEach(function (m) {
                    if (m.match("With")) {
                        this[m](sql);
                    } else {
                        var sqlRet = this[m]();
                        if (sqlRet) {
                            sql.push(sqlRet);
                        }
                    }
                }, this);
            } catch (e) {
                throw e;
            }
            return sql.join("");
        }
function (type) {
            var sql = [("" + type).toUpperCase()];
            try {
                this._static[sql + "_CLAUSE_METHODS"].forEach(function (m) {
                    if (m.match("With")) {
                        this[m](sql);
                    } else {
                        var sqlRet = this[m]();
                        if (sqlRet) {
                            sql.push(sqlRet);
                        }
                    }
                }, this);
            } catch (e) {
                throw e;
            }
            return sql.join("");
        }
function ( type ) { var sql = [ ( "" + type ) . toUpperCase ( ) ] ; try { this . _static [ sql + "_CLAUSE_METHODS" ] . forEach ( function ( m ) { if ( m . match ( "With" ) ) { this [ m ] ( sql ) ; } else { var sqlRet = this [ m ] ( ) ; if ( sqlRet ) { sql . push ( sqlRet ) ; } } } , this ) ; } catch ( e ) { throw e ; } return sql . join ( "" ) ; }
Prepares an SQL statement by calling all clause methods for the given statement type.
Prepares an SQL statement by calling all clause methods for the given statement type .