Skip to content

Commit 81cde06

Browse files
committed
Taking out optic-update code as it is deferred to 3.1.0
1 parent bc5fba1 commit 81cde06

File tree

1 file changed

+0
-202
lines changed

1 file changed

+0
-202
lines changed

lib/plan-builder-generated.js

Lines changed: 0 additions & 202 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,13 +6746,6 @@ class PlanValueOption extends types.ServerType {
67466746
super(ns, fn, args);
67476747
}
67486748

6749-
}
6750-
class PlanRowColTypes extends types.ServerType {
6751-
6752-
constructor(ns, fn, args) {
6753-
super(ns, fn, args);
6754-
}
6755-
67566749
}
67576750
class PlanExprCol extends types.ServerType {
67586751

@@ -6788,13 +6781,6 @@ class PlanParamBinding extends types.ServerType {
67886781
super(ns, fn, args);
67896782
}
67906783

6791-
}
6792-
class PlanDocDescriptor extends types.ServerType {
6793-
6794-
constructor(ns, fn, args) {
6795-
super(ns, fn, args);
6796-
}
6797-
67986784
}
67996785
class PlanCase extends types.ServerType {
68006786

@@ -6858,13 +6844,6 @@ class PlanAggregateCol extends types.ServerType {
68586844
super(ns, fn, args);
68596845
}
68606846

6861-
}
6862-
class PlanTransformDef extends types.ServerType {
6863-
6864-
constructor(ns, fn, args) {
6865-
super(ns, fn, args);
6866-
}
6867-
68686847
}
68696848
class PlanXsValueMap extends types.ServerType {
68706849

@@ -6886,13 +6865,6 @@ class PlanCondition extends types.ServerType {
68866865
super(ns, fn, args);
68876866
}
68886867

6889-
}
6890-
class PlanDocColsIdentifier extends types.ServerType {
6891-
6892-
constructor(ns, fn, args) {
6893-
super(ns, fn, args);
6894-
}
6895-
68966868
}
68976869
class PlanSampleByOption extends types.ServerType {
68986870

@@ -6963,13 +6935,6 @@ iri(...args) {
69636935
return new types.SemIri('op', 'iri', checkedArgs);
69646936
}
69656937
}
6966-
class PlanSchemaDef extends types.ServerType {
6967-
6968-
constructor(ns, fn, args) {
6969-
super(ns, fn, args);
6970-
}
6971-
6972-
}
69736938
class PlanColumn extends types.ServerType {
69746939

69756940
constructor(ns, fn, args) {
@@ -7426,93 +7391,6 @@ where(...args) {
74267391
whereDistinct(...args) {
74277392
bldrbase.checkMaxArity('PlanModifyPlan.whereDistinct', args.length, 0);
74287393
return new PlanModifyPlan(this, 'op', 'where-distinct', args);
7429-
}
7430-
/**
7431-
* Inserts or overwrites the documents identified by the uri column with the data supplied by the other document descriptor columns. Provides a client interface to a server function. See {@link http://docs.marklogic.com/ModifyPlan.prototype.write|ModifyPlan.prototype.write}
7432-
* @method planBuilder.ModifyPlan#write
7433-
* @since 2.1.1
7434-
* @param { PlanDocColsIdentifier } [docCols] -
7435-
* @returns { planBuilder.ModifyPlan }
7436-
*/
7437-
write(...args) {
7438-
const paramdef = ['doc-cols', [PlanDocColsIdentifier], false, false];
7439-
const checkedArgs = bldrbase.makeSingleArgs('PlanModifyPlan.write', 0, paramdef, args);
7440-
return new PlanModifyPlan(this, 'op', 'write', checkedArgs);
7441-
}
7442-
/**
7443-
* This method deletes a document from the database. If the document does not exist, this method does not throw an error. Provides a client interface to a server function. See {@link http://docs.marklogic.com/ModifyPlan.prototype.remove|ModifyPlan.prototype.remove}
7444-
* @method planBuilder.ModifyPlan#remove
7445-
* @since 2.1.1
7446-
* @param { PlanDocIdentifier } [removeCol] -
7447-
* @returns { planBuilder.ModifyPlan }
7448-
*/
7449-
remove(...args) {
7450-
const paramdef = ['remove-col', [PlanDocColsIdentifier, PlanColumn, types.XsString], false, false];
7451-
const checkedArgs = bldrbase.makeSingleArgs('PlanModifyPlan.remove', 0, paramdef, args);
7452-
return new PlanModifyPlan(this, 'op', 'remove', checkedArgs);
7453-
}
7454-
/**
7455-
* Gets an early lock on documents that will be updated later in the pipeline with an operation like remove() or write(). Documents are always locked, but for complex pipelines, it can be beneficial to lock the document early, so to minimize the potential for lock contention. Provides a client interface to a server function. See {@link http://docs.marklogic.com/ModifyPlan.prototype.lockForUpdate|ModifyPlan.prototype.lockForUpdate}
7456-
* @method planBuilder.ModifyPlan#lockForUpdate
7457-
* @since 2.1.1
7458-
* @param { PlanDocIdentifier } [lockUriCol] -
7459-
* @returns { planBuilder.ModifyPlan }
7460-
*/
7461-
lockForUpdate(...args) {
7462-
const paramdef = ['lock-uri-col', [PlanDocColsIdentifier, PlanColumn, types.XsString], false, false];
7463-
const checkedArgs = bldrbase.makeSingleArgs('PlanModifyPlan.lockForUpdate', 0, paramdef, args);
7464-
return new PlanModifyPlan(this, 'op', 'lock-for-update', checkedArgs);
7465-
}
7466-
/**
7467-
* Provides a client interface to a server function.
7468-
* @method planBuilder.ModifyPlan#transformDoc
7469-
* @since 2.1.1
7470-
* @param { PlanDocIdentifier } [transformDocCol] -
7471-
* @param { PlanTransformDef } [transformDef] -
7472-
* @returns { planBuilder.ModifyPlan }
7473-
*/
7474-
transformDoc(...args) {
7475-
const namer = bldrbase.getNamer(args, 'transform-doc-col');
7476-
const paramdefs = [['transform-doc-col', [PlanDocColsIdentifier, PlanColumn, types.XsString], true, false], ['transformDef', [PlanTransformDef], true, false]];
7477-
const checkedArgs = (namer !== null) ?
7478-
bldrbase.makeNamedArgs(namer, 'PlanModifyPlan.transformDoc', 2, new Set(['transform-doc-col', 'transformDef']), paramdefs, args) :
7479-
bldrbase.makePositionalArgs('PlanModifyPlan.transformDoc', 2, false, paramdefs, args);
7480-
return new PlanModifyPlan(this, 'op', 'transform-doc', checkedArgs);
7481-
7482-
}
7483-
/**
7484-
* Provides a client interface to a server function.
7485-
* @method planBuilder.ModifyPlan#joinDocCols
7486-
* @since 2.1.1
7487-
* @param { PlanDocColsIdentifier } [cols] -
7488-
* @param { PlanColumnName } [docIdCol] -
7489-
* @returns { planBuilder.ModifyPlan }
7490-
*/
7491-
joinDocCols(...args) {
7492-
const namer = bldrbase.getNamer(args, 'cols');
7493-
const paramdefs = [['cols', [PlanDocColsIdentifier], false, false], ['doc-id-col', [PlanColumn, types.XsString], true, false]];
7494-
const checkedArgs = (namer !== null) ?
7495-
bldrbase.makeNamedArgs(namer, 'PlanModifyPlan.joinDocCols', 2, new Set(['cols', 'doc-id-col']), paramdefs, args) :
7496-
bldrbase.makePositionalArgs('PlanModifyPlan.joinDocCols', 2, false, paramdefs, args);
7497-
return new PlanModifyPlan(this, 'op', 'join-doc-cols', checkedArgs);
7498-
7499-
}
7500-
/**
7501-
* Provides a client interface to a server function.
7502-
* @method planBuilder.ModifyPlan#validateDoc
7503-
* @since 2.1.1
7504-
* @param { PlanColumnName } [validateDocCol] -
7505-
* @param { PlanSchemaDef } [schemaDef] -
7506-
* @returns { planBuilder.ModifyPlan }
7507-
*/
7508-
validateDoc(...args) {
7509-
const namer = bldrbase.getNamer(args, 'validate-doc-col');
7510-
const paramdefs = [['validate-doc-col', [PlanColumn, types.XsString], true, false], ['schemaDef', [PlanSchemaDef], true, false]];
7511-
const checkedArgs = (namer !== null) ?
7512-
bldrbase.makeNamedArgs(namer, 'PlanModifyPlan.validateDoc', 2, new Set(['validate-doc-col', 'schemaDef']), paramdefs, args) :
7513-
bldrbase.makePositionalArgs('PlanModifyPlan.validateDoc', 2, false, paramdefs, args);
7514-
return new PlanModifyPlan(this, 'op', 'validate-doc', checkedArgs);
7515-
75167394
}
75177395
/**
75187396
* This function flattens an array value into multiple rows.Then performs a op:join-inner on the rest of the rows. Provides a client interface to a server function. See {@link http://docs.marklogic.com/ModifyPlan.prototype.unnestInner|ModifyPlan.prototype.unnestInner}
@@ -8225,58 +8103,6 @@ fromSearch(...args) {
82258103
bldrbase.makePositionalArgs('PlanBuilder.fromSearch', 1, false, paramdefs, args);
82268104
return new PlanAccessPlan(null, 'op', 'from-search', checkedArgs);
82278105

8228-
}
8229-
/**
8230-
* This function constructs document rows with rows provided by a parameter. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.fromParam|op.fromParam}
8231-
* @method planBuilder#fromParam
8232-
* @since 2.1.1
8233-
* @param { XsString } [paramName] - The paramName parameter specifies the placeholder parameter supplying the rows.
8234-
* @param { XsString } [qualifier] - Specifies a name for qualifying the column names.
8235-
* @param { PlanRowColTypes } [rowColTypes] - Describes the columns with an array of JavaScript objects. It's a combinations of column, type and nullable. The 'column' is the column name, which is required. The 'type' is the optional type of the column, which can be an atomic type or the default of none. The 'nullable' is an optional boolean defaulting to false. If your rows contains only uri, doc, collections, metadata, permissions, quality and temporalCollection columns, you could simply use op.docColTypes instead.
8236-
* @returns { planBuilder.AccessPlan }
8237-
*/
8238-
fromParam(...args) {
8239-
const namer = bldrbase.getNamer(args, 'param-name');
8240-
const paramdefs = [['param-name', [types.XsString], true, false], ['qualifier', [types.XsString], false, false], ['row-col-types', [PlanRowColTypes], true, true]];
8241-
const checkedArgs = (namer !== null) ?
8242-
bldrbase.makeNamedArgs(namer, 'PlanBuilder.fromParam', 3, new Set(['param-name', 'qualifier', 'row-col-types']), paramdefs, args) :
8243-
bldrbase.makePositionalArgs('PlanBuilder.fromParam', 3, false, paramdefs, args);
8244-
return new PlanAccessPlan(null, 'op', 'from-param', checkedArgs);
8245-
8246-
}
8247-
/**
8248-
* This function constructs document rows from the docsDescriptors. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.fromDocDescriptors|op.fromDocDescriptors}
8249-
* @method planBuilder#fromDocDescriptors
8250-
* @since 2.1.1
8251-
* @param { PlanDocDescriptor } [docDescriptor] - An array of document descriptors. Each document descriptor describes a document. A document descriptor contains a combination of uri, doc, collections, metadata, permissions, quality and temporalCollection. This is a simpler form of op.fromParam.
8252-
* @param { XsString } [qualifier] - Specifies a name for qualifying the column names.
8253-
* @returns { planBuilder.AccessPlan }
8254-
*/
8255-
fromDocDescriptors(...args) {
8256-
const namer = bldrbase.getNamer(args, 'doc-descriptor');
8257-
const paramdefs = [['doc-descriptor', [PlanDocDescriptor], true, true], ['qualifier', [types.XsString], false, false]];
8258-
const checkedArgs = (namer !== null) ?
8259-
bldrbase.makeNamedArgs(namer, 'PlanBuilder.fromDocDescriptors', 1, new Set(['doc-descriptor', 'qualifier']), paramdefs, args) :
8260-
bldrbase.makePositionalArgs('PlanBuilder.fromDocDescriptors', 1, false, paramdefs, args);
8261-
return new PlanAccessPlan(null, 'op', 'from-doc-descriptors', checkedArgs);
8262-
8263-
}
8264-
/**
8265-
* This function matches and returns the uri, content, and score for documents. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.fromDocUris|op.fromDocUris}
8266-
* @method planBuilder#fromDocUris
8267-
* @since 2.1.1
8268-
* @param { PlanQueryDef } [querydef] - Qualifies a set of documents. The query can be a cts.query or as an array of document URI string literals.
8269-
* @param { XsString } [qualifier] - Specifies a name for qualifying the column names.
8270-
* @returns { planBuilder.AccessPlan }
8271-
*/
8272-
fromDocUris(...args) {
8273-
const namer = bldrbase.getNamer(args, 'querydef');
8274-
const paramdefs = [['querydef', [types.CtsQuery, types.XsString], true, false], ['qualifier', [types.XsString], false, false]];
8275-
const checkedArgs = (namer !== null) ?
8276-
bldrbase.makeNamedArgs(namer, 'PlanBuilder.fromDocUris', 1, new Set(['querydef', 'qualifier']), paramdefs, args) :
8277-
bldrbase.makePositionalArgs('PlanBuilder.fromDocUris', 1, false, paramdefs, args);
8278-
return new PlanAccessPlan(null, 'op', 'from-doc-uris', checkedArgs);
8279-
82808106
}
82818107
/**
82828108
* This function returns a filter definition as input for a WHERE operation. As with a cts:query or sem:store, the filter definition cannot be used in an Optic Boolean expression but, instead, must be the only argument to the WHERE call. Add a separate WHERE call to filter based on an Optic Boolean expression. The condition must be a valid simple SQL Boolean expression expressed as a string. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.sqlCondition|op.sqlCondition}
@@ -8891,34 +8717,6 @@ resolveFunction(...args) {
88918717
bldrbase.makePositionalArgs('PlanBuilder.resolveFunction', 2, false, paramdefs, args);
88928718
return new PlanFunction('op', 'resolve-function', checkedArgs);
88938719

8894-
}
8895-
/**
8896-
* Constructs a document column identifier object for columns of uri, doc, collections, metadata, permissions, quality and temporalCollection. The document column identifier object can be passed to the prototype.joinDocCols or prototype.write. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.docCols|op.docCols}
8897-
* @method planBuilder#docCols
8898-
* @since 2.1.1
8899-
* @param { XsString } [qualifier] - Specifies a name for qualifying the column names.
8900-
* @param { XsString } [names] - An array of columns names, a combination of uri, doc, collections, metadata, permissions, quality and temporalCollection.
8901-
* @returns { planBuilder.PlanDocColsIdentifier }
8902-
*/
8903-
docCols(...args) {
8904-
const namer = bldrbase.getNamer(args, 'qualifier');
8905-
const paramdefs = [['qualifier', [types.XsString], false, false], ['names', [types.XsString], false, true]];
8906-
const checkedArgs = (namer !== null) ?
8907-
bldrbase.makeNamedArgs(namer, 'PlanBuilder.docCols', 0, new Set(['qualifier', 'names']), paramdefs, args) :
8908-
bldrbase.makePositionalArgs('PlanBuilder.docCols', 0, false, paramdefs, args);
8909-
return new PlanDocColsIdentifier('op', 'doc-cols', checkedArgs);
8910-
8911-
}
8912-
/**
8913-
* Provides the 3rd parameter for op.fromParam for row column types. Provides a client interface to a server function. See {@link http://docs.marklogic.com/op.docColTypes|op.docColTypes}
8914-
* @method planBuilder#docColTypes
8915-
* @since 2.1.1
8916-
8917-
* @returns { planBuilder.PlanRowColTypes }
8918-
*/
8919-
docColTypes(...args) {
8920-
bldrbase.checkMaxArity('PlanBuilder.docColTypes', args.length, 0);
8921-
return new PlanRowColTypes('op', 'doc-col-types', args);
89228720
}
89238721
}
89248722

0 commit comments

Comments
 (0)