home / docs / sections

sections: internals:datasette-set-column-metadata

This data as json

id page ref title content breadcrumbs references
internals:datasette-set-column-metadata internals datasette-set-column-metadata await .set_column_metadata(self, database_name, resource_name, column_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. column-name - string The column 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 column. Any previous column-level metadata entry with the same key will be overwritten. Internally upserts the value into the the metadata_columns table inside the internal database . ["Internals for plugins", "Datasette class", "Getting and setting metadata"] []
Powered by Datasette · Queries took 1.471ms