lib/dataset/query.js
function () {
            var having = this.__opts.having, where = this.__opts.where;
            if (!(having || where)) {
                throw new QueryError("No current filter");
            }
            var o = {};
            if (having) {
                o.having = BooleanExpression.invert(having);
            }
            if (where) {
                o.where = BooleanExpression.invert(where);
            }
            return this.mergeOptions(o);
        }
function () {
            var having = this.__opts.having, where = this.__opts.where;
            if (!(having || where)) {
                throw new QueryError("No current filter");
            }
            var o = {};
            if (having) {
                o.having = BooleanExpression.invert(having);
            }
            if (where) {
                o.where = BooleanExpression.invert(where);
            }
            return this.mergeOptions(o);
        }
function ( ) { var having = this . __opts . having , where = this . __opts . where ; if ( ! ( having || where ) ) { throw new QueryError ( "No current filter" ) ; } var o = { } ; if ( having ) { o . having = BooleanExpression . invert ( having ) ; } if ( where ) { o . where = BooleanExpression . invert ( where ) ; } return this . mergeOptions ( o ) ; }
Inverts the current filter.

@example
DB.from("items").filter({category : 'software'}).invert()
//=> SELECT * FROM items WHERE (category != 'software')

@example
DB.from("items").filter({category : 'software', id : 3}).invert()
//=> SELECT * FROM items WHERE ((category != 'software') OR (id != 3))

@return {patio.Dataset} a cloned dataset with the filter inverted.
Inverts the current filter .