Commit graph

26 commits

Author SHA1 Message Date
Chris Anderson f8e8686537 fixed db spec 2009-02-27 10:58:48 -08:00
Matt Aimonetti 80317f31a5 fixed the uuid count for the latest version of couchdb
also avoided CONSTANTS warnings, cleaned up the attachment specs, added missing fixtures
2009-02-25 00:22:11 -08:00
Matt Aimonetti fe489f2d38 removed CouchRest::Model, added more specs and fixed a bug with casted CR::ExtendedDocument 2009-02-24 22:51:13 -08:00
Matt Aimonetti 08c7f2107c moved stuff around and cleaned up some deprecation notices [save/save_doc] 2009-02-02 16:10:07 -08:00
Chris Anderson 55cf741859 fix rebase end balance 2009-02-02 14:56:37 -08:00
Matt Aimonetti 84e2bf94e4 slight change of API, CR::Document now uses <action>_doc instead of <action>, also added #create! and #recreate! to Document instances 2009-02-02 14:50:30 -08:00
Matt Lyon b915f7f708 - Added Database#delete_attachment, for removing them directly
- Modified Database#fetch_attachment to take a doc as its first argument +as well as+ a docid, to be consistent with the other attachment methods.
- Refactored the attachment uri generation used by #fetch_attachment, #put_attachment, and #delete_attachment to a common private method, #uri_for_attachment
2009-02-02 01:25:14 -08:00
Matt Lyon 571cd257e0 database replication methods, no conflict resolution provided 2009-02-02 01:25:13 -08:00
Matt Lyon 0519fc5765 patch restclient locally instead of hoping/waiting for an upstream patch. 2009-01-16 11:31:42 -08:00
Antony Blakey 36945d5a13 Add bulk save deferal option to db.delete / doc.destroy, just like on save. 2009-01-09 20:29:08 +10:30
Matt Lyon 9faa9daaca support for couchdb's support for the COPY and MOVE verbs. depends on my commit to RestClient, currently only in b5d75acc68
I have considered adding this to the CouchRest::Document class as well ("@doc.copy new-id" and such) but haven't yet.
2009-01-05 00:44:12 -08:00
Matt Lyon e15581b1dd fix temp_view -> slow_view stuff for couchdb trunk 2009-01-04 23:00:59 -08:00
Chris Anderson 7aaffe5d63 change count to limit 2009-01-04 21:00:36 -08:00
Chris Anderson c488aab338 Merge branch 'janl/master' 2008-12-31 15:16:32 -08:00
Nolan Darilek d8d5645ebd Make bulk saving more flexible.
* Database#save(doc, true) caches the doc in a database-specific bulk
cache.
* Database#save(doc, false), default, saves normally, bulk saving and
emptying the cache if one exists.
* The cache is automatically saved on Database#save if it excedes a
configurable limit, 50 by default.
* Database#bulk_save without arguments saves and clears the bulk save
cache.
2008-12-14 23:17:35 -06:00
Nolan Darilek dd7f109878 Add support for database compaction. 2008-12-14 17:29:15 -06:00
Jan Lehnardt 7461e3fede s/localhost/127.0.0.1/ 2008-12-14 12:05:02 +01:00
Chris Anderson 19a70ffd7d got view queries happening correctly 2008-11-21 16:21:20 -08:00
Chris Anderson 0769c2690f on the road toward design docs 2008-11-08 16:28:58 -08:00
Chris Anderson 6851c7a2be views accept blocks 2008-10-14 15:08:17 -07:00
Chris Anderson 254eb20161 view blocks flow 2008-10-14 01:07:48 -07:00
Chris Anderson 54a0afdf8e added block yields to db.view 2008-10-13 16:46:48 -07:00
Chris Anderson 7a92723260 include-docs support 2008-10-08 12:32:22 -07:00
Chris Anderson e2f7163816 multi-key support for views, temp-views, and alldocs 2008-10-08 12:19:28 -07:00
Chris Anderson 2b7e49c9c6 put attachments 2008-09-30 17:22:54 -07:00
Chris Anderson 902e1bed26 moved specs so the autotest filemapping works better 2008-09-30 16:21:28 -07:00
Renamed from spec/database_spec.rb (Browse further)