Liking cljdoc? Tell your friends :D

clarango.utilities.uri-utility


build-resource-uriclj

(build-resource-uri type)
(build-resource-uri type resource-key)
(build-resource-uri type resource-key collection-name)
(build-resource-uri type resource-key collection-name db-name)

Build a URI to access a resource in ArangoDB. Uses the defaults set in the clarango-connection for the parts of the URI that are not specified by arguments.

First argument must be the resource type as a string. E.g. 'document' OR 'simple/first-example' if you want to access the first-example method in the simple namespace without appending a collection name (in this case you should explicitely pass nil as collection-name) OR 'document/?collection=' if you need the collection name appended as a parameter.

Build a URI to access a resource in ArangoDB. Uses the defaults set in the clarango-connection 
for the parts of the URI that are not specified by arguments.

First argument must be the resource type as a string. E.g. 'document' 
OR 'simple/first-example' if you want to access the first-example method in the simple namespace without 
appending a collection name (in this case you should explicitely pass nil as collection-name)
OR 'document/?collection=' if you need the collection name appended as a parameter.
sourceraw docstring

connect-url-partsclj

(connect-url-parts & parts)

Builds a string out of different parts. Adds a '/' between the string parts if not present. Apart from strings or keywords this method accepts also maps as arguments but then expects that they contain either a :database-name or a :collection-name in their metadata and that is used to build the url string.

Builds a string out of different parts. Adds a '/' between the string parts if not present.
Apart from strings or keywords this method accepts also maps as arguments but then expects that they contain
either a :database-name or a :collection-name in their metadata and that is used to build the url string.
sourceraw docstring

get-default-collection-or-graphclj

(get-default-collection-or-graph type)

In case the type parameter is 'graph', returns the default graph that was set in core. In all other cases returns the default collection.

In case the type parameter is 'graph', returns the default graph that was set in core.
In all other cases returns the default collection.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close