martin/martin-mbtiles/.sqlx
Yuri Astrakhan 8b34cd374c
Add metadat copy/apply-diff, new testing framework (#921)
* Fix metadata copying
* Introduce a new metadata field `agg_tiles_hash_after_apply` for diff
files
* Added a lot of new info and debug logging
* Simplified Copying interface - not much value in having all the
complex builder pattern here it seems, might as well use a simple
object.

## Testing
* Generate SQLite DBs in memory on the fly to validate just what we need
* Use `insta` for validating DB content

There is now a function `dump(connection) -> Vec<Entry>` to dump the
content of the entire SQLite DB into text with `serde`. At many steps
through the testing, the DB content is validated with the corresponding
.snap file with `insta` crate (which makes this process mega-simple,
including a simple way to "bless" (update) any changes).

## Discovered bugs
* Seems like normalized files do not get copied properly - they contain
extras that should be removed.
2023-10-10 11:10:17 -04:00
..
query-0a4540e8c33c71222a68ff5ecc1a167b406de9961ac3cc69649c6152a6d7a9b7.json Add ability to copy to existing mbtiles files (#778) 2023-07-27 18:54:49 +00:00
query-4d952966a8d8a030d2467c0701a6e16068c9897dd25d0ebd32929db9960596b4.json Add ability to set mbtiles metadata value (#817) 2023-08-17 11:36:46 -07:00
query-5b298df51dccbf0d8a22433a99febc59c27dbf204d09a9c1fb0b3bf9aaad284b.json Upgrade sqlx to v0.7 (#743) 2023-07-04 08:05:23 -04:00
query-77b2f46851c4e991230ec6a5d33aaca18373bbdd548a8378ae7fbeed351b4b87.json Add metadat copy/apply-diff, new testing framework (#921) 2023-10-10 11:10:17 -04:00
query-85b46712c445679053e768cc98b22ea61633c21afb45d3d2b9aeec068d72cce0.json Add metadat copy/apply-diff, new testing framework (#921) 2023-10-10 11:10:17 -04:00
query-176e99c6945b0789119d0d21a99de564de47dde1d588f17e68ec58115ac73a39.json Add ability to copy to existing mbtiles files (#778) 2023-07-27 18:54:49 +00:00
query-386a375cf65c3e5aef51deffc99d23bd852ba445c1058aed380fe83bed618c29.json Upgrade sqlx to v0.7 (#743) 2023-07-04 08:05:23 -04:00
query-428a035a55a07cbb9daac42c3ab05f2a7999788167f41c685af3ca6f5a1359f4.json add encoding=UTF8 pragma, refactoring (#919) 2023-10-03 21:20:41 -04:00
query-809e89c3b223e28c6716d405e13ba30fbf018805fe9ca2acd2b2e225183d1f13.json Cleanup mbtiles, rename TileCopierOptions, testing (#916) 2023-10-01 23:28:43 -04:00
query-7341bfc10beb4719811556a57ae8098085994c8fba93e0293359afd43079c50c.json Cleanup mbtiles, rename TileCopierOptions, testing (#916) 2023-10-01 23:28:43 -04:00
query-60264fa07915878b3f7ba0067f48c3a379e96acbdf5fc52d14e29bc726fefab7.json Upgrade sqlx to v0.7 (#743) 2023-07-04 08:05:23 -04:00
query-748436831449877b242d6e167a2f8fe1b1e7b6fb87c4e04ad7406a2bbfd35bec.json Upgrade sqlx to v0.7 (#743) 2023-07-04 08:05:23 -04:00
query-c8ef3dc53f1f6fd80e266aab2bf007c66a1cc45bdfcdc38f93d6ba759125a9aa.json Add ability to set mbtiles metadata value (#817) 2023-08-17 11:36:46 -07:00
query-d6ac76a234c97d0dc1fc4331d8b2cd90903d5401f8f0956245e5163bedd23a4d.json Upgrade sqlx to v0.7 (#743) 2023-07-04 08:05:23 -04:00
query-f547ff198e3bb604550a3f191e4ad8c695c4c2350f294aefd210eccec603d905.json Add ability to copy to existing mbtiles files (#778) 2023-07-27 18:54:49 +00:00