Liking cljdoc? Tell your friends :D

jepsen.mongodb.mongo

MongoDB java driver adapter

MongoDB java driver adapter
raw docstring

admin-command!clj

(admin-command! client & command)

Runs a command on the admin database.

Runs a command on the admin database.
sourceraw docstring

cas!clj

(cas! coll doc doc')

Atomically replace doc with doc' in coll.

Atomically replace doc with doc' in coll.
sourceraw docstring

clientclj

(client node)
(client node port)

Creates a new Mongo client.

Creates a new Mongo client.
sourceraw docstring

cluster-clientclj

(cluster-client test)

Returns a mongoDB connection for all nodes in a test.

Returns a mongoDB connection for all nodes in a test.
sourceraw docstring

collectionclj

(collection db collection-name)

Gets a Mongo collection from a DB.

Gets a Mongo collection from a DB.
sourceraw docstring

create-collection!clj

(create-collection! db collection-name)

Create a collection in a database.

Create a collection in a database.
sourceraw docstring

dbclj

(db client db)

Gets a Mongo database from a client.

Gets a Mongo database from a client.
sourceraw docstring

default-client-optionsclj

(default-client-options)

MongoDB client options.

MongoDB client options.
sourceraw docstring

documentclj

(document m)

Creates a Mongo document from a map.

Creates a Mongo document from a map.
sourceraw docstring

document->mapclj

(document->map doc)

Converts a document back into a map.

Converts a document back into a map.
sourceraw docstring

drop-collection!clj

(drop-collection! collection)

Drops a collection.

Drops a collection.
sourceraw docstring

enable-secondary-readsclj

(enable-secondary-reads client)
source

find-allclj

(find-all coll)

Finds all docs in a collection.

Finds all docs in a collection.
sourceraw docstring

find-oneclj

(find-one coll id)
(find-one session coll id)

Find a document by ID. If a session is provided first, will use that session for a causally consistent read

Find a document by ID.
If a session is provided first, will use that session for a
causally consistent read
sourceraw docstring

insert!clj

(insert! coll doc)

Inserts a document.

Inserts a document.
sourceraw docstring

iterable-seqclj

(iterable-seq i)

Turns a MongoIterable into a seq.

Turns a MongoIterable into a seq.
sourceraw docstring

optimeclj

(optime session)
source

parse-resultclj

(parse-result doc)

Parses a command's result into a Clojure data structure.

Parses a command's result into a Clojure data structure.
sourceraw docstring

read-concernsclj

A map of read concern keywords to java driver constants.

A map of read concern keywords to java driver constants.
sourceraw docstring

read-with-find-and-modifyclj

(read-with-find-and-modify coll id)

Perform a read of a document by ID with findAndModify.

Perform a read of a document by ID with findAndModify.
sourceraw docstring

replace!clj

(replace! coll doc)

Replace a document by a document's :_id.

Replace a document by a document's :_id.
sourceraw docstring

run-command!clj

(run-command! db & command)

Runs an arbitrary command on a database. Command is a flat list of kv pairs, with the first pair being the command name, which will be transformed into a document. Includes a hardcoded 10 second timeout.

Runs an arbitrary command on a database. Command is a flat list of kv pairs,
with the first pair being the command name, which will be transformed into a
document. Includes a hardcoded 10 second timeout.
sourceraw docstring

server-addressclj

(server-address node)
(server-address node port)
source

start-causal-sessionclj

(start-causal-session client)
source

update-result->mapclj

(update-result->map r)

Converts an update result to a clojure map.

Converts an update result to a clojure map.
sourceraw docstring

upsert!clj

(upsert! coll doc)
(upsert! session coll doc)

Ensures the existence of the given document, a map with at minimum an :_id key.

Ensures the existence of the given document, a map with at minimum an :_id
key.
sourceraw docstring

with-read-concernclj

(with-read-concern coll read-concern)

Returns a copy of the given collection, using the given read concern keyword.

Returns a copy of the given collection, using the given read concern
keyword.
sourceraw docstring

with-write-concernclj

(with-write-concern coll write-concern)

Returns a copy of the given collection, using the given write concern keyword.

Returns a copy of the given collection, using the given write concern
keyword.
sourceraw docstring

write-concernsclj

A map of write concern keywords to java driver constants.

A map of write concern keywords to java driver constants.
sourceraw docstring

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

× close