Skip to main content

create_cache_tables

Function create_cache_tables 

Source
pub async fn create_cache_tables<T>(conn: &mut T, strict: bool) -> MbtResult<()>
where for<'e> &'e mut T: SqliteExecutor<'e>,
Expand description

Create the tile-cache table and the standard tiles view (if they don’t already exist).

  • tile_cache(zoom_level, tile_column, tile_row, fetched, expires, etag, tile_data) clustered on (zoom_level, tile_column, tile_row), blob stored inline.
  • tiles view: a spec-compatible (zoom_level, tile_column, tile_row, tile_data) view so the file can still be read as a normal MBTiles file.

See the cache module for the read/write API.