datasette / datasette-extract

Import unstructured data (text and images) into structured tables
Apache License 2.0
129 stars 3 forks source link

Database actions button doesn't appear #23

Open andrewsanchez opened 2 months ago

andrewsanchez commented 2 months ago

After running datasette install datasette-extract, the database actions button doesn't appear. I tried datasette serve reddit.db -m metadata.json with the following metadata.json:

{
    "databases": {
        "reddit": {
            "plugins": {
                "datasette-extract": {}
            }
        }
    }
}

I'm not sure if the metadata.json is required to activate the plugin, but I tried it with and without the -m flag.

Somebody else on YouTube mentioned this as well: CleanShot 2024-04-13 at 09 12 10@2x

To reproduce:

➜ datasette install datasette-extract
➜ sqlite-utils create-table my.db people \
     id integer \
     name text \
     height float \
     photo blob --pk id
➜ datasette serve my.db

Notice the actions button doesn't appear.

andrewsanchez commented 2 months ago

Running datasette like this datasette serve -o --root my.db solves the problem when running locally!

ref: https://docs.datasette.io/en/stable/authentication.html#actors