From ff56e3aecd4dc1a62dbb31ed2e14400cb4f12226 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Fri, 23 Jan 2015 13:28:04 -0600 Subject: [PATCH] v0.9.2 --- docs-md/coverage.html | 66 +++++++++++++++++++++---------------------- docs/History.html | 4 +++ docs/coverage.html | 66 +++++++++++++++++++++---------------------- 3 files changed, 70 insertions(+), 66 deletions(-) diff --git a/docs-md/coverage.html b/docs-md/coverage.html index 309fcb0d..811bbff7 100644 --- a/docs-md/coverage.html +++ b/docs-md/coverage.html @@ -7283,14 +7283,14 @@
  • * @borrows patio.Dataset#leftJoin as leftJoin
  • * */
  • constructor: function (options, fromDb) {
  • -
  • 2783 if (this.synced) {
  • -
  • 2783 this.__emitter = new EventEmitter();
  • -
  • 2783 this._super(arguments);
  • -
  • 2783 this.patio = patio || require("./index");
  • -
  • 2783 fromDb = isBoolean(fromDb) ? fromDb : false;
  • -
  • 2783 this.__changed = {};
  • -
  • 2783 this.__values = {};
  • -
  • 2783 if (fromDb) {
  • +
  • 2793 if (this.synced) {
  • +
  • 2793 this.__emitter = new EventEmitter();
  • +
  • 2793 this._super(arguments);
  • +
  • 2793 this.patio = patio || require("./index");
  • +
  • 2793 fromDb = isBoolean(fromDb) ? fromDb : false;
  • +
  • 2793 this.__changed = {};
  • +
  • 2793 this.__values = {};
  • +
  • 2793 if (fromDb) {
  • 1535 this._hook("pre", "load");
  • 1535 this.__isNew = false;
  • 1535 this.__setFromDb(options, true);
  • @@ -7299,8 +7299,8 @@
  • 1535 this._static.emit("load", this);
  • }
  • } else {
  • -
  • 1248 this.__isNew = true;
  • -
  • 1248 this.__set(options);
  • +
  • 1258 this.__isNew = true;
  • +
  • 1258 this.__set(options);
  • }
  • } else {
  • 0 throw new ModelError("Model " + this.tableName + " has not been synced");
  • @@ -7308,15 +7308,15 @@
  • },
  • __set: function (values, ignore) {
  • -
  • 1372 values = values || {};
  • -
  • 1372 this.__ignore = ignore === true;
  • -
  • 1372 Object.keys(values).forEach(function (attribute) {
  • +
  • 1382 values = values || {};
  • +
  • 1382 this.__ignore = ignore === true;
  • +
  • 1382 Object.keys(values).forEach(function (attribute) {
  • 6019 var value = values[attribute];
  • //check if the column is a constrained value and is allowed to be set
  • 6019 !ignore && this._checkIfColumnIsConstrained(attribute);
  • 6019 this[attribute] = value;
  • }, this);
  • -
  • 1372 this.__ignore = false;
  • +
  • 1382 this.__ignore = false;
  • },
  • __setFromDb: function (values, ignore) {
  • @@ -7571,7 +7571,7 @@
  • },
  • synced: function () {
  • -
  • 11513 return this._static.synced;
  • +
  • 11523 return this._static.synced;
  • }
  • }
  • @@ -9545,18 +9545,18 @@
  • 1var virtualRow = function (name) {
  • -
  • 1214 var DOUBLE_UNDERSCORE = '__';
  • +
  • 1253 var DOUBLE_UNDERSCORE = '__';
  • -
  • 1214 var parts = name.split(DOUBLE_UNDERSCORE);
  • -
  • 1214 var table = parts[0], column = parts[1];
  • -
  • 1214 var ident = column ? QualifiedIdentifier.fromArgs([table, column]) : Identifier.fromArgs([name]);
  • -
  • 1214 var prox = methodMissing(ident, function (m) {
  • +
  • 1253 var parts = name.split(DOUBLE_UNDERSCORE);
  • +
  • 1253 var table = parts[0], column = parts[1];
  • +
  • 1253 var ident = column ? QualifiedIdentifier.fromArgs([table, column]) : Identifier.fromArgs([name]);
  • +
  • 1253 var prox = methodMissing(ident, function (m) {
  • 3 return function () {
  • 3 var args = argsToArray(arguments);
  • 3 return SQLFunction.fromArgs([m, name].concat(args));
  • };
  • }, column ? QualifiedIdentifier : Identifier);
  • -
  • 1214 var ret = createFunctionWrapper(prox, function (m) {
  • +
  • 1253 var ret = createFunctionWrapper(prox, function (m) {
  • 663 var args = argsToArray(arguments);
  • 663 if (args.length) {
  • 657 return SQLFunction.fromArgs([name].concat(args));
  • @@ -9566,8 +9566,8 @@
  • }, function () {
  • 0 return SQLFunction.fromArgs(arguments);
  • });
  • -
  • 1214 ret["__proto__"] = ident;
  • -
  • 1214 return ret;
  • +
  • 1253 ret["__proto__"] = ident;
  • +
  • 1253 return ret;
  • };
  • 1var DATE_METHODS = ["getDate", "getDay", "getFullYear", "getHours", "getMilliseconds", "getMinutes", "getMonth", "getSeconds",
  • @@ -10050,7 +10050,7 @@
  • });
  • 1exports.sql = methodMissing(sql, function (name) {
  • -
  • 1214 return virtualRow(name);
  • +
  • 1253 return virtualRow(name);
  • });
  • 1var OPERTATOR_INVERSIONS = {
  • @@ -10862,13 +10862,13 @@
  • * @return {patio.sql.Expression} an expression.
  • */
  • fromArgs: function (args) {
  • -
  • 2613 var ret, Self = this;
  • -
  • 2613 try {
  • -
  • 2613 ret = new Self();
  • +
  • 2652 var ret, Self = this;
  • +
  • 2652 try {
  • +
  • 2652 ret = new Self();
  • } catch (ignore) {
  • }
  • -
  • 2613 this.apply(ret, args);
  • -
  • 2613 return ret;
  • +
  • 2652 this.apply(ret, args);
  • +
  • 2652 return ret;
  • },
  • /**
  • @@ -11670,7 +11670,7 @@
  • * @property {String} value <b>READ ONLY</b> the column or table this identifier represents.
  • */
  • constructor: function (value) {
  • -
  • 16388 this.__value = value;
  • +
  • 16466 this.__value = value;
  • },
  • /**
  • @@ -17505,10 +17505,10 @@
  • *
  • */
  • constructor: function () {
  • -
  • 2783 if (comb.isUndefinedOrNull(this.__associations)) {
  • -
  • 2680 this.__associations = {};
  • +
  • 2793 if (comb.isUndefinedOrNull(this.__associations)) {
  • +
  • 2685 this.__associations = {};
  • }
  • -
  • 2783 this._super(arguments);
  • +
  • 2793 this._super(arguments);
  • },
  • reload: function () {
  • diff --git a/docs/History.html b/docs/History.html index aca064cd..be898d42 100644 --- a/docs/History.html +++ b/docs/History.html @@ -364,6 +364,10 @@ +

    0.9.2

    +

    0.9.1