sections: internals:datasette-set-database-metadata
This data as json
id | page | ref | title | content | breadcrumbs | references |
---|---|---|---|---|---|---|
internals:datasette-set-database-metadata | internals | datasette-set-database-metadata | await .set_database_metadata(self, database_name, key, value) | database_name - string The database 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 database. Any previous database-level metadata entry with the same key will be overwritten. Internally upserts the value into the the metadata_databases table inside the internal database . | ["Internals for plugins", "Datasette class", "Getting and setting metadata"] | [] |