mapnik/mapnik — pull request #943 by springmeyer (2011-11-04 00:04:16+00:00)
Title: Sqlite refactor

Hi All,

I plan to merge this shortly (and to close #928), but I've queued this up as a pull request to allow for review in case anyone has questions or comments. Basically I've fixed up usage of `key_field` allowing all tests to pass for sqlite and along the way also:

* vastly simplified bind() function by refactoring out code
* moved to shared_ptr for resultsets for consistency
* fixed usage of sqlite_open_v2
* new hpp files for resultsets, db connection, utility functions, and prepared statement for indexing
* fixes to the auto indexing (open new handle, write to separate db to avoid touching main db)
* utility function/fallback to calculate the whole table extent if no index or metadata is present