simonw / datasette-graphql

Datasette plugin providing an automatic GraphQL API for your SQLite databases
https://datasette-graphql-demo.datasette.io/
Apache License 2.0
101 stars 6 forks source link

Don't expose FTS tables #39

Closed simonw closed 4 years ago

simonw commented 4 years ago
GraphiQL

Datasette has a concept of "hidden" tables which I can reuse here.

simonw commented 4 years ago

https://datasette.readthedocs.io/en/stable/internals.html#database-introspection

await db.hidden_table_names() - list of strings

List of tables which Datasette "hides" by default - usually these are tables associated with SQLite's full-text search feature, the SpatiaLite extension or tables hidden using the Hiding tables feature.