cldellow / datasette-ui-extras

Add editing UI and other power-user features to Datasette.
Apache License 2.0
12 stars 1 forks source link

be able to see table/view definition #33

Open cldellow opened 1 year ago

cldellow commented 1 year ago

I hid this in #22

...and now I regret it, as it's useful to see a view definition. eg on https://dux.fly.dev/cooking/questions

If the default HTML had an ID like schema-definitions, we could expose it via a similar trick as the advanced export, eg make it so https://dux.fly.dev/cooking/questions#schema-definitions showed the schema.

That would require a change in Datasette's default template.

Alternative idea: if we do #54, we'll expose a way to edit views. You'll be able to see the schema there.