lib/dataset/sql.js
function () {
            var values = this.__opts.values, ret = [];
            if (isArray(values)) {
                ret.push(values.length === 0 ? " DEFAULT VALUES" : " VALUES " + this.literal(values));
            } else if (isInstanceOf(values, Dataset)) {
                ret.push(" " + this._subselectSql(values));
            } else if (isInstanceOf(values, LiteralString)) {
                ret.push(" " + values.toString(this));
            } else {
                throw new QueryError("Unsupported INSERT values type, should be an array or dataset");
            }
            return ret.join("");
        }
function () {
            var values = this.__opts.values, ret = [];
            if (isArray(values)) {
                ret.push(values.length === 0 ? " DEFAULT VALUES" : " VALUES " + this.literal(values));
            } else if (isInstanceOf(values, Dataset)) {
                ret.push(" " + this._subselectSql(values));
            } else if (isInstanceOf(values, LiteralString)) {
                ret.push(" " + values.toString(this));
            } else {
                throw new QueryError("Unsupported INSERT values type, should be an array or dataset");
            }
            return ret.join("");
        }
function ( ) { var values = this . __opts . values , ret = [ ] ; if ( isArray ( values ) ) { ret . push ( values . length === 0 ? " DEFAULT VALUES" : " VALUES " + this . literal ( values ) ) ; } else if ( isInstanceOf ( values , Dataset ) ) { ret . push ( " " + this . _subselectSql ( values ) ) ; } else if ( isInstanceOf ( values , LiteralString ) ) { ret . push ( " " + values . toString ( this ) ) ; } else { throw new QueryError ( "Unsupported INSERT values type, should be an array or dataset" ) ; } return ret . join ( "" ) ; }
SQL fragment specifying the values to insert.
SQL fragment specifying the values to insert .