lib/marklogic.js
function ExtlibsWrapper(extlibs, name, dir) {
  if (!(this instanceof ExtlibsWrapper)) {
    return new ExtlibsWrapper(extlibs, name, dir);
  }
  this.extlibs = extlibs;
  this.name    = name;
  this.dir     = dir;
}
function ExtlibsWrapper(extlibs, name, dir) {
  if (!(this instanceof ExtlibsWrapper)) {
    return new ExtlibsWrapper(extlibs, name, dir);
  }
  this.extlibs = extlibs;
  this.name    = name;
  this.dir     = dir;
}
function ExtlibsWrapper ( extlibs , name , dir ) { if ( ! ( this instanceof ExtlibsWrapper ) ) { return new ExtlibsWrapper ( extlibs , name , dir ) ; } this . extlibs = extlibs ; this . name = name ; this . dir = dir ; }
Provides functions that maintain query snippet extensions
on the REST server. The client must have been created for a user with the
rest-admin role.
@namespace config.query.snippet
 
Reads a query snippet library installed on the server.
@method config.query.snippet#read
@since  1.0
@param {string} moduleName - the filename without a path for the query snippet library
@returns {ResultProvider} an object whose result() function takes
a success callback that receives the source code for the library
 
Installs a query snippet library on the server.
@method config.query.snippet#write
@since  1.0
@param {string} moduleName - the filename without a path for the query snippet library;
the filename must end in an extension registered in the server's mime type mapping table
for the mime type of the source code format; at present, the extension should be ".xqy"
@param {object[]} [permissions] - the permissions controlling which users can read, update, or
execute the query snippet library
@param {string} source - the source code for the query snippet library; at present,
the source code must be XQuery
 
Deletes a query snippet library from the server.
@method config.query.snippet#remove
@since  1.0
@param {string} moduleName - the filename without a path for the query snippet library
 
Lists the custom query libraries installed on the server.
@method config.query.snippet#list
@since  1.0
@returns {ResultProvider} an object whose result() function takes
a success callback that receives the list of replacement libraries
Provides functions that maintain query snippet extensions on the REST server . The client must have been created for a user with the rest - admin role .