20centaurifux / severin-monger

Clojure connection pooling for MongoDB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

severin-monger

Introduction

severin-monger provides connection pooling for MongoDB by implementing the severin API.

A created resource holds a database connection (com.mongodb.MongoClient), a database instance (com.mongodb.DB) and the URI.

Installation

The library can be installed from Clojars using Leiningen:

Clojars Project

Usage

(use 'severin.pool.monger)

(def pool (severin.core/make-pool))

(severin.core/with-pool pool [db "monger://localhost/test"]
  (monger.core/find (:db r) "foobar" {}))

About

Clojure connection pooling for MongoDB.

License:GNU General Public License v3.0


Languages

Language:Clojure 100.0%