First thanks for the great meeting today John that is amazing and shows what can be done
second for the life of me I can’t figure out attachments in Couch/ Pouch Db. The basic framework is perfect for something I want to do if I can figure this out.
What does the Attachment in the details show and where or how can that be used.
The attachments in CouchDB and PouchDB are very powerful feature that we are still working on to fully implement.
As the native implementation is just to have an a list of attachments for a db document. However this works without any associations, so it is like having a folder with files. So if you have like one photo thumbnail, and other related docs you still have to maintain links to the right attachments somewhere.
So that is why we are thinking instead of supporting just a list of attachments that we actually allow to define “file” fields as regular document fields and each of those can link to an attachment. @Hyperbytes might advice as well
Furthermore attachments are powerful because they are maintained in the database so delete together with the documents but also synchronized fully with all connected clients!
So that would be as an alternative to a _attachment field?
Not really thought about attachments much yet as I knew you were working on some form of implementation but off the top of my head as an idea if you want simple attachments.
What about converting to base64 and attaching as a blob of text,potentially nested? Would need base64 and back routines obviously.