ravendb
Version:
RavenDB client for Node.js
26 lines • 894 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompareExchangeValueIncludesToken = void 0;
const QueryToken_js_1 = require("./QueryToken.js");
const index_js_1 = require("../../../Exceptions/index.js");
class CompareExchangeValueIncludesToken extends QueryToken_js_1.QueryToken {
_path;
constructor(path) {
super();
if (!path) {
(0, index_js_1.throwError)("InvalidArgumentException", "Path cannot be null");
}
this._path = path;
}
static create(path) {
return new CompareExchangeValueIncludesToken(path);
}
writeTo(writer) {
writer
.append("cmpxchg('")
.append(this._path)
.append("')");
}
}
exports.CompareExchangeValueIncludesToken = CompareExchangeValueIncludesToken;
//# sourceMappingURL=CompareExchangeValueIncludesToken.js.map