couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Young (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-259) Ability to store abitrary data in attachment stubs
Date Thu, 16 Jan 2014 18:31:25 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13873711#comment-13873711
] 

Benjamin Young commented on COUCHDB-259:
----------------------------------------

Some work on this was done in a couple Github PRs:
https://github.com/apache/couchdb/pull/54
https://github.com/apache/couchdb/pull/51

> Ability to store abitrary data in attachment stubs
> --------------------------------------------------
>
>                 Key: COUCHDB-259
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-259
>             Project: CouchDB
>          Issue Type: Wish
>          Components: Database Core
>    Affects Versions: 0.8.1
>            Reporter: Sho Fukamachi
>            Assignee: Dave Cottlehuber
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message