[clouchdb-cvs] CVS clouchdb/public_html

peddy peddy at common-lisp.net
Mon Sep 6 22:21:27 UTC 2010


Update of /project/clouchdb/cvsroot/clouchdb/public_html
In directory cl-net:/tmp/cvs-serv5199/public_html

Modified Files:
	index.html 
Log Message:

Cleanup, rename db-name to name, other changes lin changlog.txt


--- /project/clouchdb/cvsroot/clouchdb/public_html/index.html	2009/11/27 22:49:28	1.12
+++ /project/clouchdb/cvsroot/clouchdb/public_html/index.html	2010/09/06 22:21:27	1.13
@@ -580,7 +580,7 @@
 </p>
 <pre class="code">
 ;; Create the database named in the current connection settings
-(set-connection :db-name "tvland")
+(set-connection :name "tvland")
 (create-db)
 <b>=></b> ((:|ok| . T))
 
@@ -593,7 +593,7 @@
 
 ;; Create named db, if it already exists, drop it and 
 ;; recreate it. Specify db using a db structure.
-(create-db (make-db :db-name "tvland") :if-exists :recreate)
+(create-db (make-db :name "tvland") :if-exists :recreate)
 <b>=></b> ((:|ok| . T))
 </pre>
 
@@ -625,7 +625,7 @@
 </p>
 <pre class="code">
 ;; Create then delete the database named in the current connection settings
-(set-connection :db-name "tvland")
+(set-connection :name "tvland")
 (create-db)
 <b>=></b> ((:|ok| . T))
 (delete-db)
@@ -746,7 +746,7 @@
 
 <p>[Function]<br />
 <a name="sym-set-connection"><b>set-connection</b></a> &key host
-db-name protocol port document-update-fn document-fetch-fn => db structure
+name protocol port document-update-fn document-fetch-fn => db structure
 </p>
 <blockquote>
 <p>
@@ -829,7 +829,7 @@
 
 <p>[Macro]<br /> 
 <a name="sym-with-connection"><b>with-connection</b></a> (&key db
-host db-name protocol port document-update-fn document-fetch-fn)
+host name protocol port document-update-fn document-fetch-fn)
 &body body => value returned by evaluation of body
 </p>
 <blockquote>
@@ -851,13 +851,13 @@
 </p>
 <pre class="code">
 ;; Get document from specified host and database
-(with-connection (:host "cornichon.cucumber.net" :db-name "rfc")
+(with-connection (:host "cornichon.cucumber.net" :name "rfc")
   (get-document "2616"))
 
 ;; Copy document identified by "someid" from database "otherdb" to 
 ;; current database, use "copy-of-someid" for copied document ID.
 (put-document
-  (with-connection (:db-name "otherdb")
+  (with-connection (:name "otherdb")
     (get-document "someid"))
   :id "copy-of-someid")
 </pre>
@@ -873,7 +873,7 @@
     database. Database is created using the current connection
     information in *clouchdb*, with a name that should not conflict
     with existing database names. The database is deleted before
-    returning. This is so for mostly useful for testing.
+    returning.
   </p>
 <pre class="code">
 (with-temp-db 





More information about the clouchdb-cvs mailing list