(close bucket)
(close bucket time type)
Closes the bucket connection
Closes the bucket connection
(content->map json-document)
Returns the content of a JsonDocument as a map
Returns the content of a JsonDocument as a map
(counter! bucket k)
(counter! bucket k delta initial)
Increment or decrement a counter. If only key given, will take initial value as 0 (if not exists) and increment with 1
Increment or decrement a counter. If only key given, will take initial value as 0 (if not exists) and increment with 1
(create-json-document id json-map)
Creates a JsonDocument from a json-map
Creates a JsonDocument from a json-map
(create-primary-index bucket)
Create a primary index for bucket.
Create a primary index for bucket.
(document->map jsondocument)
Converts a JsonDocument to a map
Converts a JsonDocument to a map
(expression exp-1)
(expression {:keys [as asc and desc eq gt gte i is-null is-not-null le lt lte
like ne or s-as sub]
:as all}
exp-2)
(get bucket id)
(get bucket id format)
Retrieves a document from the bucket. By default :json map document is returned. :raw is the string json
Retrieves a document from the bucket. By default :json map document is returned. :raw is the string json
(get-and-lock bucket id seconds)
Retrieves and locks the document for n seconds
Retrieves and locks the document for n seconds
(get-and-touch! bucket id)
(get-and-touch! bucket id expiry)
Retrieve and touch a JsonDocument by its unique ID with the default key/value timeout.
Retrieve and touch a JsonDocument by its unique ID with the default key/value timeout.
(lookup-in bucket id [:as paths])
Retrieves sub-document values. To lookup particular objects / values in a document, pass a vector of paths. Vectors in the response are converted from [n] to <n> as brackets are not valid in keywords. The DocumentFragment used to execute the request also has an .exists method that returns true or false for a given path. This has not been implemented. Instead you will get a {:keyword nil} response for a noneixstent path. If the document does not exist, an empty map {} is returned.
Retrieves sub-document values. To lookup particular objects / values in a document, pass a vector of paths. Vectors in the response are converted from [n] to <n> as brackets are not valid in keywords. The DocumentFragment used to execute the request also has an .exists method that returns true or false for a given path. This has not been implemented. Instead you will get a {:keyword nil} response for a noneixstent path. If the document does not exist, an empty map {} is returned.
(manager bucket)
Returns the manager giving a bucket
Returns the manager giving a bucket
(map-clause v)
Process the Expression vector for the Select/select function.
Process the Expression vector for the Select/select function.
(p-query bucket query-map query-params)
(p-query bucket query-map query-params mode)
Execute parameterized N1ql query. Defaults to ad-hoc mode false. Use utility function ad-hoc to set ad-hoc mode in the optional 4th parameter. The query parameters are a map, but do not use keywords as the key. Only strings are supported.
Execute parameterized N1ql query. Defaults to ad-hoc mode false. Use utility function ad-hoc to set ad-hoc mode in the optional 4th parameter. The query parameters are a map, but do not use keywords as the key. Only strings are supported.
(process-where-clause where)
Chain Expression's from the Couchbase BNR DSL together.
Chain Expression's from the Couchbase BNR DSL together.
(query bucket stmt)
(query bucket stmt n1ql-params)
Execute simple N1ql query.
Execute simple N1ql query.
(query-rows->map result)
Convert JSON Iterator to a vector of maps.
Convert JSON Iterator to a vector of maps.
(read-json data)
Reads a JSON value from input String. If data is nil, then nil is returned.
Reads a JSON value from input String. If data is nil, then nil is returned.
(remove! bucket id)
Remove the id from the bucket
Remove the id from the bucket
(replace! bucket id json-map)
Save or delete a document from the bucket
Save or delete a document from the bucket
(simple-query->map result)
Converts a DefaultN1qlQueryResult to a map
Converts a DefaultN1qlQueryResult to a map
(statement input)
Build a Couchbase Statement from a Clojure map. Leave String or Statement instances untouched.
Build a Couchbase Statement from a Clojure map. Leave String or Statement instances untouched.
(touch! bucket id expiry)
Renews the expiration time of a document with the default key/value timeout
Renews the expiration time of a document with the default key/value timeout
(v-query bucket design-doc view-name)
(v-query bucket design-doc view-name option)
Queries a view on the bucket.
Queries a view on the bucket.
Wrapper of clojure.data.json/json-str.
Wrapper of clojure.data.json/json-str.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close