Skip to content

Commit 6d52d67

Browse files
committed
Added new SchemaOptions methods.
1 parent c32f666 commit 6d52d67

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

builders.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,26 @@ SchemaOptions.prototype = {
9191
}
9292
};
9393

94+
SchemaOptions.prototype.clean = function() {
95+
return this.model.$clean();
96+
};
97+
98+
SchemaOptions.prototype.push = function(type, name, helper, first) {
99+
return this.model.$push(type, name, helper, first);
100+
};
101+
102+
SchemaOptions.prototype.next = function(type, name, helper) {
103+
return this.model.$next(type, name, helper);
104+
};
105+
106+
SchemaOptions.prototype.output = function() {
107+
return this.model.$output();
108+
};
109+
110+
SchemaOptions.prototype.stop = function() {
111+
return this.model.$stop();
112+
};
113+
94114
SchemaOptions.prototype.DB = function() {
95115
return F.database(this.error);
96116
};
@@ -2491,6 +2511,11 @@ SchemaInstance.prototype.$response = SchemaInstance.prototype.$output = function
24912511
return this;
24922512
};
24932513

2514+
SchemaInstance.prototype.$stop = function() {
2515+
this.$$async.length = 0;
2516+
return this;
2517+
};
2518+
24942519
SchemaInstance.prototype.$push = function(type, name, helper, first) {
24952520

24962521
var self = this;

changes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
- added: `MailMessage.high()` sets `high` priority of the email messsage
99
- added: `MailMessage.low()` sets `low` priority of the email messsage
1010
- added: `MailMessage.confidential()` sets `Sensitivity` header with `confidential` value
11+
- added: `SchemaBuilderEntity.$stop()` stops the async list
12+
- added: `SchemaOptions.stop()` alias to `$.model.$stop()`
13+
- added: `SchemaOptions.next()` alias to `$.model.$next()`
14+
- added: `SchemaOptions.output()` alias to `$.model.$output()`
15+
- added: `SchemaOptions.clean()` alias to `$.model.$clean()`
1116

1217
- updated: `GROUP()` by adding a new argument `url_prefix`
1318

0 commit comments

Comments
 (0)