pub fn write_tile(tr: &Transaction, tile_id: TmsTileId, tile_data: Vec<u8>) -> rusqlite::Result<()> {
    let mut insert_tile =
        tr.prepare_cached("INSERT INTO tiles (zoom_level, tile_column, tile_row, tile_data) VALUES (?1, ?2, ?3, ?4)")?;
    insert_tile.execute(params![tile_id.z(), tile_id.x(), tile_id.y(), tile_data])?;
    Ok(())
}
/// Writes the given tile data into the database.
///
/// **Note:** `tile_data` must be GZIP-compressed if Mapbox Vector Tile PBF is being stored.
Writes the given tile data into the database.
Note:** `tile_data` must be GZIP-compressed if Mapbox Vector Tile PBF is being stored.
Writes the given tile data into the database . Note : ** ` tile_data ` must be GZIP - compressed if Mapbox Vector Tile PBF is being stored .
pub fn write_tile(tr: &Transaction, tile_id: TmsTileId, tile_data: Vec<u8>) -> rusqlite::Result<()> {
    let mut insert_tile =
        tr.prepare_cached("INSERT INTO tiles (zoom_level, tile_column, tile_row, tile_data) VALUES (?1, ?2, ?3, ?4)")?;
    insert_tile.execute(params![tile_id.z(), tile_id.x(), tile_id.y(), tile_data])?;
    Ok(())
}
pub fn write_tile ( tr : & Transaction , tile_id : TmsTileId , tile_data : Vec < u8 > ) -> rusqlite :: Result < ( ) > { let mut insert_tile = tr . prepare_cached ( " " ) ? ; insert_tile . execute ( params ! [ tile_id z ( ) tile_id x ( ) tile_id y ( ) tile_data ] ) ? ; Ok ( ( ) ) }
Writes the given tile data into the database.
Writes the given tile data into the database .
tr
&Transaction
tile_id
TmsTileId
tile_data
Vec<u8>