sections: internals:datasette-set-resource-metadata
This data as json
id | page | ref | title | content | breadcrumbs | references |
---|---|---|---|---|---|---|
internals:datasette-set-resource-metadata | internals | datasette-set-resource-metadata | await .set_resource_metadata(self, database_name, resource_name, key, value) | database_name - string The database the metadata entry belongs to. resource_name - string The resource (table, view, or canned query) the metadata entry belongs to. key - string The metadata entry key to insert (ex title , description , etc.) value - string The value of the metadata entry to insert. Adds a new metadata entry for the specified "resource". Any previous resource-level metadata entry with the same key will be overwritten. Internally upserts the value into the the metadata_resources table inside the internal database . | ["Internals for plugins", "Datasette class", "Getting and setting metadata"] | [] |