Hi Flo,
maybe update handler functions are what you're looking for:
http://docs.couchdb.org/en/1.6.1/couchapp/ddocs.html#update-functions
Good luck & best
Sebastian
On Sun, Feb 21, 2016 at 6:23 PM, Florian Lohoff <[email protected]> wrote:
> On Sun, Feb 21, 2016 at 05:38:29PM +0100, Sebastian Rothbucher wrote:
> > Hi Flo,
> >
> > Exactly, you can't rely on prev versions - you'die have to keep your
> > own deleted and history 4 that...
>
> So either i can t
>
> - do a replication middleware e.g. _changes feed listener
> writing into a secondary database so in case an update/delete i can
> fetch the old version from the secondary database before actually
> applying the chage.
> - write a middleware updating the database through the middleware only
> and generating "changes" documents or the like.
>
> I'd wish there were something like include_docs but
> include_old_docs in the changes feed.
>
> Flo
> --
> Florian Lohoff [email protected]
> We need to self-defend - GnuPG/PGP enable your email today!
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIVAwUBVsnyjpDdQSDLCfIvAQpDIRAAiK1sklo9uN/ifX8T9J4IgBViA90BA8p9
> G38CeBkhTPgFRs2dL+g+UwrvgIyTiP8/lvyV3ectYAx+QeTbw/s+128qeF2hCkm2
> 9FUYSxdrePH1487NZ+tGx0fONycPVsRpHxA3o53ZrCjePkUickULeTmp5xKVlEnY
> n73gq/QE83RWcfodUVldPxiu70UGiqLLeOPOi7b5Va4RhxlgycdQhoZXEiF3GxA3
> j0KESBMvLZxVXAYXLG0psi6b3ZN/rKmKocnggPFDtrr83k5vhF/NV5VhO55NhEU8
> DSsLmwUQdtbvOY2/xwgVXZCUpXiqvuzz636FbT5Vpm8z7hB2Z43GIq5BOJEyGX7W
> joqp7G+10gBxDatqnw6vgEiTz1RSdve4Smr9esMR0s3ODlkqOj3ZaY3F3z4Lk7f/
> 73nBnbIE6AffBGr3mf9Q404SrFzdbT2qsShb+kxTyWOtgKxKTgPYbbBEuDh//GzM
> qLchjLc+1myxiRm5UchfraEk3KUnlAifrLbJOL+bW6CI+g5Xd3u5XMtJWJS53YrV
> yYm/F9T7f+ZDQz71V1r91MnjirCS1ksJH+WqZ1EcjOJtSBQUF6Bd6MOYMn1wa9Bg
> G6a2NC3sDd4I+6X3NBP9pAY55SF3YLO9RQ/zXOz4Yw7QTf3Ww+vz/QQNxKs9AfhG
> p6+SzVpbgvo=
> =Qz4d
> -----END PGP SIGNATURE-----
>
>