connect
($options as object()) as xs:anyURI
Connect to a NoSQL Database KVStore |
delete
($db as xs:anyURI, $key as xs:string) as xs:boolean
Delete the key/value pair associated with the key. |
get-binary
($db as xs:anyURI, $key as object()) as object()? external
Get the value as base64Binary and version associated with the key. |
get-text
($db as xs:anyURI, $key as object()) as object()?
Get the value as string and version associated with the key. |
get
($db as xs:anyURI, $key as xs:string) as xs:string
Get the value as string and version associated with the key. |
multi-get-binary
($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string, $direction as xs:string) as object()* external
Returns the descendant key/value pairs associated with the $parent-key. |
multi-get-text
($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string, $direction as xs:string) as object()*
Returns the descendant key/value pairs associated with the $parent-key. |
multi-remove
($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string) as xs:int external
Removes the descendant Key/Value pairs associated with the $parent-key. |
put-binary
($db as xs:anyURI, $key as object(), $value as xs:base64Binary) as xs:long external
Put a key/value pair, inserting or overwriting as appropriate. |
put-text
($db as xs:anyURI, $key as object(), $string-value as xs:string) as xs:long
Put a key/value pair, inserting or overwriting as appropriate. |
put
($db as xs:anyURI, $key as xs:string, $value as xs:string) as xs:long
Put a key/value pair, inserting or overwriting as appropriate. |
remove
($db as xs:anyURI, $key as object()) as xs:boolean external
Removes the key/value pair associated with the key. |
declare %an:sequential function nosql:connect($options as object()) as xs:anyURI
{ "store-name" : "kvstore", "helper-host-ports" : ["localhost:5000"]}
declare %an:sequential function nosql:delete($db as xs:anyURI, $key as xs:string) as xs:boolean
declare %an:sequential function nosql:get-binary($db as xs:anyURI, $key as object()) as object()? external
{ "value":"value as base64Binary", "version":"xs:long" }
declare %an:sequential function nosql:get-text($db as xs:anyURI, $key as object()) as object()?
{ "value":"value as string", "version":"xs:long" }
declare %an:sequential function nosql:get($db as xs:anyURI, $key as xs:string) as xs:string
{ "value":"value as string", "version":"xs:long" }
declare %an:sequential function nosql:multi-get-binary($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string, $direction as xs:string) as object()* external
{ "value":"value as base64Binary", "version":"xs:long" }
declare %an:sequential function nosql:multi-get-text($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string, $direction as xs:string) as object()*
{ "value":"value as base64Binary", "version":"xs:long" }
declare %an:sequential function nosql:multi-remove($db as xs:anyURI, $parent-key as object(), $sub-range as object(), $depth as xs:string) as xs:int external
{ "prefix" : "a" }
or by start-end: {"start": "a", "start-inclusive": true, "end" : "z", "end-inclusive": true}
. For this case start-inclusive and end-inclusive are optional and they default to true.declare %an:sequential function nosql:put-binary($db as xs:anyURI, $key as object(), $value as xs:base64Binary) as xs:long external
{ "major": ["major-key1","major-key2","major-key3"], "minor": ["minor-key1","minor-key2","minor-key3"] }
declare %an:sequential function nosql:put-text($db as xs:anyURI, $key as object(), $string-value as xs:string) as xs:long
{ "major": ["major-key1","major-key2","major-key3"], "minor": ["minor-key1","minor-key2","minor-key3"] }
declare %an:sequential function nosql:put($db as xs:anyURI, $key as xs:string, $value as xs:string) as xs:long
declare %an:sequential function nosql:remove($db as xs:anyURI, $key as object()) as xs:boolean external
$nosql:depth-CHILDREN_ONLY as xs:string
$nosql:depth-DESCENDANTS_ONLY as xs:string
$nosql:depth-PARENT_AND_CHILDREN as xs:string
$nosql:depth-PARENT_AND_DESCENDANTS as xs:string
$nosql:direction-REVERSE as xs:string
$nosql:direction-FORWARD as xs:string