home / docs / sections

sections: metadata:metadata-column-descriptions

This data as json

id page ref title content breadcrumbs references
metadata:metadata-column-descriptions metadata metadata-column-descriptions Column descriptions You can include descriptions for your columns by adding a "columns": {"name-of-column": "description-of-column"} block to your table metadata: [[[cog metadata_example(cog, { "databases": { "database1": { "tables": { "example_table": { "columns": { "column1": "Description of column 1", "column2": "Description of column 2" } } } } } }) ]]] [[[end]]] These will be displayed at the top of the table page, and will also show in the cog menu for each column. You can see an example of how these look at latest.datasette.io/fixtures/roadside_attractions . ["Metadata"] [{"href": "https://latest.datasette.io/fixtures/roadside_attractions", "label": "latest.datasette.io/fixtures/roadside_attractions"}]
Powered by Datasette · Queries took 1.37ms