connect
($options as object()) as xs:anyURI external
: Connect to the Couchbase server and return an opaque identifier : representing the established connection. |
connect
($host as xs:string, $username as xs:string?, $password as xs:string?, $bucket as xs:string) as xs:anyURI
: Connect to the Couchbase server and return an opaque identifier : representing the established connection. |
create-view
($db as xs:anyURI, $doc-name as xs:string, $view-names as xs:string*) as xs:string* external
: Create a document/view. |
create-view
($db as xs:anyURI, $doc-name as xs:string, $view-names as xs:string*, $options as object()*) as xs:string* external
: Create a document/view. |
delete-view
($db as xs:anyURI, $doc as xs:string*) as xs:string* external
: Delete a document/view. |
flush
($db as xs:anyURI) as empty-sequence() external
: Remove all key/value pairs from the cluster : : @param $db connection reference : : @error cb:LCB0002 if any error occurs in the communication with : the server. |
get-binary
($db as xs:anyURI, $key as xs:string*) as xs:base64Binary* external
: Return the values of the given keys (type xs:string) as base64Binary. |
get-binary
($db as xs:anyURI, $key as xs:string*, $options as object()) as xs:base64Binary* external
: Return the values of the given keys (type xs:string) as base64Binary. |
get-text
($db as xs:anyURI, $key as xs:string*) as xs:string* external
: Return the values of the given keys (type xs:string) as string. |
get-text
($db as xs:anyURI, $key as xs:string*, $options as object()) as xs:string* external
: Return the values of the given keys (type xs:string) as string. |
put-binary
($db as xs:anyURI, $key as xs:string*, $value as xs:base64Binary*) as empty-sequence()
: Store the given key-value bindings. |
put-binary
($db as xs:anyURI, $key as xs:string*, $value as xs:base64Binary*, $options as object()) as empty-sequence() external
: Store the given key-value bindings. |
put-text
($db as xs:anyURI, $key as xs:string*, $value as xs:string*) as empty-sequence()
: Store the given key-value bindings. |
put-text
($db as xs:anyURI, $key as xs:string*, $value as xs:string*, $options as object()) as empty-sequence() external
: Store the given key-value bindings. |
remove
($db as xs:anyURI, $key as xs:string*) as empty-sequence() external
: Remove the values matching the given keys (xs:string) from the server. |
touch
($db as xs:anyURI, $key as xs:string*, $exp-time as xs:integer) as empty-sequence() external
: Refresh the expiration time of the given keys. |
view
($db as xs:anyURI, $path as xs:string*) as object()*
: Retrieve the content of existing views. |
view
($db as xs:anyURI, $path as xs:string*, $options as object()) as object()*
: Retrieve the content of existing views. |
declare %an:sequential function cb:connect($options as object()) as xs:anyURI external
: { : "host": "localhost:8091", : "username" : null, : "password" : null, : "bucket" : "default" : } :
declare %an:sequential function cb:connect($host as xs:string, $username as xs:string?, $password as xs:string?, $bucket as xs:string) as xs:anyURI
declare %an:sequential function cb:create-view($db as xs:anyURI, $doc-name as xs:string, $view-names as xs:string*) as xs:string* external
declare %an:sequential function cb:create-view($db as xs:anyURI, $doc-name as xs:string, $view-names as xs:string*, $options as object()*) as xs:string* external
declare %an:sequential function cb:delete-view($db as xs:anyURI, $doc as xs:string*) as xs:string* external
declare %an:sequential function cb:flush($db as xs:anyURI) as empty-sequence() external
declare %an:sequential function cb:get-binary($db as xs:anyURI, $key as xs:string*) as xs:base64Binary* external
declare %an:sequential function cb:get-binary($db as xs:anyURI, $key as xs:string*, $options as object()) as xs:base64Binary* external
declare %an:sequential function cb:get-text($db as xs:anyURI, $key as xs:string*) as xs:string* external
declare %an:sequential function cb:get-text($db as xs:anyURI, $key as xs:string*, $options as object()) as xs:string* external
declare %an:sequential function cb:put-binary($db as xs:anyURI, $key as xs:string*, $value as xs:base64Binary*) as empty-sequence()
declare %an:sequential function cb:put-binary($db as xs:anyURI, $key as xs:string*, $value as xs:base64Binary*, $options as object()) as empty-sequence() external
declare %an:sequential function cb:put-text($db as xs:anyURI, $key as xs:string*, $value as xs:string*) as empty-sequence()
declare %an:sequential function cb:put-text($db as xs:anyURI, $key as xs:string*, $value as xs:string*, $options as object()) as empty-sequence() external
declare %an:sequential function cb:remove($db as xs:anyURI, $key as xs:string*) as empty-sequence() external
declare %an:sequential function cb:touch($db as xs:anyURI, $key as xs:string*, $exp-time as xs:integer) as empty-sequence() external
declare %an:sequential function cb:view($db as xs:anyURI, $path as xs:string*) as object()*
declare %an:sequential function cb:view($db as xs:anyURI, $path as xs:string*, $options as object()) as object()*