CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 23 Aug 2025 12:27:38 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091213233203
location: https://web.archive.org/web/20091213233203/https://github.com/danlarkin/clojure-couchdb
server-timing: captures_list;dur=0.575893, exclusion.robots;dur=0.020463, exclusion.robots.policy;dur=0.008382, esindex;dur=0.009384, cdx.remote;dur=15.463665, LoadShardBlock;dur=136.391347, PetaboxLoader3.datanode;dur=75.484004, PetaboxLoader3.resolve;dur=41.476952
x-app-server: wwwb-app212
x-ts: 302
x-tr: 232
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 23 Aug 2025 12:27:38 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 13 Dec 2009 23:32:02 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "c51adfe3e050dd2493da27963319a34d"
x-archive-orig-x-runtime: 130ms
x-archive-orig-content-length: 24751
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 13 Dec 2009 23:32:03 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 13 Dec 2009 23:32:03 GMT", ; rel="memento"; datetime="Sun, 13 Dec 2009 23:32:03 GMT", ; rel="last memento"; datetime="Sun, 13 Dec 2009 23:32:03 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_13_20091213232917_crawl102-c/52_13_20091213233142_crawl101.arc.gz
server-timing: captures_list;dur=0.821659, exclusion.robots;dur=0.025185, exclusion.robots.policy;dur=0.011433, esindex;dur=0.014581, cdx.remote;dur=6.317904, LoadShardBlock;dur=88.103136, PetaboxLoader3.datanode;dur=102.491947, PetaboxLoader3.resolve;dur=146.255704, load_resource;dur=180.167330
x-app-server: wwwb-app212
x-ts: 200
x-tr: 374
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
danlarkin's clojure-couchdb at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | clojure library for Apache CouchDB edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/danlarkin/clojure-couchdb.git
Give this clone URL to anyone.
git clone git://github.com/danlarkin/clojure-couchdb.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:danlarkin/clojure-couchdb.git
|
name | age | message | |
---|---|---|---|
![]() |
LICENSE | Fri May 22 15:25:07 -0700 2009 | big refactoring to accept a document-map anywhe... [danlarkin] |
![]() |
README.markdown | Fri May 22 21:36:56 -0700 2009 | add simple description and dependencies list to... [danlarkin] |
![]() |
src/ | Tue May 26 17:56:15 -0700 2009 | change usage of clojure.http.client/encode-body... [danlarkin] |
![]() |
test/ | Mon Jul 06 15:37:43 -0700 2009 | update tests to run with latest version of cloj... [danlarkin] |
README.markdown
clojure-couchdb
Simple clojure library to interface with Apache CouchDB.
Depends on clojure-contrib and clojure-http-client (hopefully soon a part of contrib).
Database Functions:
database-list
user=> (database-list)
["foo" "bar" "some-db" "another-database"]
database-info
user=> (database-info "foo")
{:instance_start_time "1242496720047538", :disk_size 4096, :compact_running false, :purge_seq 0, :update_seq 0, :doc_del_count 0, :doc_count 0, :db_name "foo"}
database-create
user=> (database-create "new-db")
"new-db"
database-delete
user=> (database-delete "new-db")
true
database-compact
user=> (database-compact "foo")
true
Document Functions:
document-list
user=> (document-list "some-db")
("doc1" "doc2" "another-doc" "yet-another-doc")
document-get
user=> (document-get "some-db" "doc1")
{:bar [1 2 3], :_rev "1-2326402976", :_id "doc1"}
user=> (document-get "some-db" "doc1" "1-2326402976")
{:bar [1 2 3], :_rev "1-2326402976", :_id "doc1"}
document-create
user=> (document-create "some-db" {:foo 42})
{:foo 42, :_id "5bc3673322f38a4998aca23976acd4c6", :_rev "1-1799037045"}
user=> (document-create "some-db" {:foo 42} "my-doc")
{:foo 42, :_id "my-doc", :_rev "1-2310851567"}
document-update
user=> (let [doc (document-get "some-db" "my-doc")]
(document-update "some-db" (assoc doc :bam true) "my-doc"))
{:foo 42, :bam true, :_id "my-doc", :_rev "2-1148768398"}
document-revisions
user=> (document-revisions "some-db" "my-doc")
{"2-1148768398" "available", "1-2310851567" "available"}
document-delete
user=> (document-delete "some-db" "my-doc")
true
Attachment Functions
attachment-list
user=> (attachment-list "some-db" "my-doc")
{"my-attachment" {:length 28, :content_type "text/plain", :stub true}, "f" {:length 3, :content_type "cntnt/type", :stub true}
attachment-create
user=> (attachment-create "some-db" "my-doc" "new-attachment" "PAYLOAD" "text/plain")
"new-attachment"
attachment-get
user=> (attachment-get "some-db" "my-doc" "new-attachment")
{:body-seq ("PAYLOAD"), :content-type "text/plain"}
attachment-delete
user=> (attachment-delete "some-db" "my-doc" "new-attachment")
true
This feature is coming soon. Sit tight!