home / docs / sections

sections: internals:datasette-resolve-table

This data as json

id page ref title content breadcrumbs references
internals:datasette-resolve-table internals datasette-resolve-table .resolve_table(request) request - Request object A request object This assumes that the regular expression for your route declares both a database and a table named group. It returns a ResolvedTable named tuple instance with the following fields: db - Database The database object table - string The name of the table (or view) is_view - boolean True if this is a view, False if it is a table If the database or table cannot be found it raises a datasette.utils.asgi.DatabaseNotFound exception. If the table does not exist it raises a datasette.utils.asgi.TableNotFound exception - a subclass of datasette.utils.asgi.NotFound with .database_name and .table attributes. ["Internals for plugins", "Datasette class"] []
Powered by Datasette · Queries took 2.395ms