vim: refactor database handling
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 30 Sep 2013 21:06:48 +0000 (16:06 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 20 Nov 2013 13:23:29 +0000 (07:23 -0600)
commit85b3dc9f0f33f7af1acb111738d3a1b37befcc01
tree346fbcf58a15e5aadb33d099731e144abba1d525
parent47e1f39c56963812ebb4711ee9c62d267b7f7a85
vim: refactor database handling

To minimize memory usage we need to destroy the queries and the
databases, so we should keep track of them.

Each buffer gets a database connection that is destroyed when the buffer
is destroyed, and all the queries along with it.

Ideally notmuch should destroy the queries when the database is
destroyed, but it's not doing that at the moment.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
vim/notmuch.vim