Skip to contents

Replaces asset_url of every native row by native_url() of its hash, looked up by the row's current URL in map. A row with no mapping is an ERROR, never passed through: a release must not silently keep pointing at a versioned path.

Usage

native_store_rewrite(native_ref, map, ...)

Arguments

native_ref

a native_asset (v8 shape)

map

data frame asset_url (current URL), hash

...

passed to native_url() (base, pmtiles_base)

Value

native_ref with store URLs on its native rows, and content_hash set to the store hash on those rows