Liking cljdoc? Tell your friends :D

earthen.clj-cb.bucket


ad-hocclj

(ad-hoc)
source

build-view-queryclj

(build-view-query from option)
source

closeclj

(close bucket)
(close bucket time type)

Closes the bucket connection

Closes the bucket connection
sourceraw docstring

content->mapclj

(content->map json-document)

Returns the content of a JsonDocument as a map

Returns the content of a JsonDocument as a map
sourceraw docstring

counter!clj

(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
sourceraw docstring

create-json-documentclj

(create-json-document id json-map)

Creates a JsonDocument from a json-map

Creates a JsonDocument from a json-map
sourceraw docstring

create-primary-indexclj

(create-primary-index bucket)

Create a primary index for bucket.

Create a primary index for bucket.
sourceraw docstring

document->mapclj

(document->map jsondocument)

Converts a JsonDocument to a map

Converts a JsonDocument to a map
sourceraw docstring

exprcljmultimethod

source

expressionclj

(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)
source

getclj

(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
sourceraw docstring

get-and-lockclj

(get-and-lock bucket id seconds)

Retrieves and locks the document for n seconds

Retrieves and locks the document for n seconds
sourceraw docstring

get-and-touch!clj

(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.
sourceraw docstring

lookup-inclj

(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.
sourceraw docstring

managerclj

(manager bucket)

Returns the manager giving a bucket

Returns the manager giving a bucket
sourceraw docstring

map-clauseclj

(map-clause v)

Process the Expression vector for the Select/select function.

Process the Expression vector for the Select/select function.
sourceraw docstring

p-queryclj

(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.
sourceraw docstring

process-where-clauseclj

(process-where-clause where)

Chain Expression's from the Couchbase BNR DSL together.

Chain Expression's from the Couchbase BNR DSL together.
sourceraw docstring

queryclj

(query bucket stmt)
(query bucket stmt n1ql-params)

Execute simple N1ql query.

Execute simple N1ql query.
sourceraw docstring

query-rows->mapclj

(query-rows->map result)

Convert JSON Iterator to a vector of maps.

Convert JSON Iterator to a vector of maps.
sourceraw docstring

read-jsonclj

(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.
sourceraw docstring

remove!clj

(remove! bucket id)

Remove the id from the bucket

Remove the id from the bucket
sourceraw docstring

replace!clj

(replace! bucket id json-map)

Save or delete a document from the bucket

Save or delete a document from the bucket
sourceraw docstring

simple-query->mapclj

(simple-query->map result)

Converts a DefaultN1qlQueryResult to a map

Converts a DefaultN1qlQueryResult to a map
sourceraw docstring

stale-mapclj

source

statementclj

(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.
sourceraw docstring

touch!clj

(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
sourceraw docstring

unlock-documentclj

(unlock-document bucket document)
source

v-queryclj

(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.
sourceraw docstring

write-jsonclj

Wrapper of clojure.data.json/json-str.

Wrapper of clojure.data.json/json-str.
sourceraw docstring

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

× close