Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-259

Ability to store abitrary data in attachment stubs

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.8.1
    • None
    • Database Core
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      I suggest the ability to store arbitrary data in line with single attachments to a doc. The mooted use is to store metadata about that attachment.

      For example, a current attachment:

      m['_attachments']
      => {"yamanote.jpg"=>{"content_type"=>"image/jpeg", "stub"=>true, "length"=>382613}}

      Desired behaviour is to be able to insert persistent metadata like so:

      m['_attachments']
      => {"yamanote.jpg"=>{"content_type"=>"image/jpeg", "stub"=>true, "length"=>382613, "width" => 800, "height" => 600, "md5" => "95de7a118ee28824afa8d2ad8fe5819f"}}

      And many other use cases according to media type.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sho Sho Fukamachi
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: