benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 113 forks source link

Atomic attachment handling #1

Closed sendtopms closed 15 years ago

sendtopms commented 15 years ago

Currently attachment handling is 2 step process

  1. Create a document first
  2. add the attachment and store it back I am suggesting to add a function or extend the Doc to handle attachment so that attachment can be added to couch db while creating the document at first time. Otherwise it would be 2 network calls. Is it possible?
benoitc commented 15 years ago

mixed in my last comment 2 codes :) Inline attachments will be added this week. Need to add the proper bits in the code to handel _attachments member and encode in base64.

sendtopms commented 15 years ago

It is great. I can't wait to test it. Keep up good work. I am planning to use your couchbeam for my application. I just replaced erlang_couch with couch beam, it is worked with trivial modification. Thanks....

sendtopms commented 15 years ago

Please let me know if Inline attachement is done

benoitc commented 15 years ago

this is in latest head tagged 0.1.2. - benoît